如何使用 softlayer api 标记块存储 [英] How to tag a block storage using softlayer api

查看:20
本文介绍了如何使用 softlayer api 标记块存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下链接中找不到任何关于标记块存储的方法:

I can't find any method about tag a block storage in following link:

https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Iscsi

我也检查了标签的命令:

Also I checked the command of tag:

https://sldn.softlayer.com/reference/services/SoftLayer_Tag

这个命令看起来是我想要的,但我还是遇到了一些问题:

This command seems like what I want, but I still met some problems:

  1. 对于参数tagTypes,我得到的支持类型有:

  1. For the parameter tagTypes, the supported types I get are:

{'keyName': 'HARDWARE', 'description': 'Hardware'},
{'keyName': 'GUEST', 'description': 'CCI'},
{'keyName': 'ACCOUNT_DOCUMENT', 'description': 'Account Document'},
{'keyName': 'TICKET', 'description': 'Ticket'},
{'keyName': 'NETWORK_VLAN_FIREWALL', 'description': 'Vlan Firewall'},
{'keyName': 'CONTRACT', 'description': 'Contract'},
{'keyName': 'IMAGE_TEMPLATE', 'description': 'Image Template'},
{'keyName': 'APPLICATION_DELIVERY_CONTROLLER', 'description': 'Application Delivery Controller'},
{'keyName': 'NETWORK_VLAN', 'description': 'Vlan'}

不确定哪个适合块存储.

Not sure which one is proper for block storage.

  1. 我尝试使用 tagType "HARDWARE" 并且厌倦了将标签设置为块存储,响应显示您无权标记此对象"

任何人都可以提供一些建议,提前致谢.

Anyone can help to give some advice, thanks in advance.

推荐答案

我恐怕不能标记块存储,对象 Network_Storage_Iscsi 应该有一个名为 tagReference 的属性,但正如您在文档中看到的那样,它没有它:https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage_Iscsi

I am affraid that is not possbiel to tag the block storages, the object Network_Storage_Iscsi should have a property called tagReference but as you can see in documentation it does not have it: https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage_Iscsi

例如,可以标记的其他对象具有该属性,例如门票或图片模板见:

For example other objects that can be tagged have that property e.g. Tickets or image templates see:

http://sldn.softlayer.com/reference/datatypes/SoftLayer_Tickethttp://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest_Block_Device_Template_Group

另外方法:https://sldn.softlayer.com/reference/services/SoftLayer_Tag/getAllTagTypes

它应该返回 Network_Storage 作为有效类型,但它没有.

it should return Network_Storage as a valid type, but it does not.

问候

这篇关于如何使用 softlayer api 标记块存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆