如何使用软层标记块存储 api
How to tag a block storage using softlayer api
我在以下link中找不到任何关于标记块存储的方法:
https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Iscsi
我还检查了标签的命令:
https://sldn.softlayer.com/reference/services/SoftLayer_Tag
这个命令好像是我想要的,但是我还是遇到了一些问题:
对于参数tagTypes,我得到的支持类型是:
{'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'}
不确定哪个适合块存储。
- 我尝试使用 tagType "HARDWARE" 并厌倦了将标签设置为块存储,响应显示 "You do not have permissions to tag this object"
哪位大侠可以帮忙出出主意,先谢谢了。
我担心无法标记块存储,对象 Network_Storage_Iscsi 应该有一个名为 tagReference 的 属性 但正如您在文档中看到的那样,它没有:
https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage_Iscsi
例如,其他可以标记的对象具有 属性 例如门票或图片模板见:
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Ticket
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest_Block_Device_Template_Group
另外方法:https://sldn.softlayer.com/reference/services/SoftLayer_Tag/getAllTagTypes
它应该 return Network_Storage 作为有效类型,但它不是。
此致
我在以下link中找不到任何关于标记块存储的方法:
https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Iscsi
我还检查了标签的命令:
https://sldn.softlayer.com/reference/services/SoftLayer_Tag
这个命令好像是我想要的,但是我还是遇到了一些问题:
对于参数tagTypes,我得到的支持类型是:
{'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'}
不确定哪个适合块存储。
- 我尝试使用 tagType "HARDWARE" 并厌倦了将标签设置为块存储,响应显示 "You do not have permissions to tag this object"
哪位大侠可以帮忙出出主意,先谢谢了。
我担心无法标记块存储,对象 Network_Storage_Iscsi 应该有一个名为 tagReference 的 属性 但正如您在文档中看到的那样,它没有: https://sldn.softlayer.com/reference/datatypes/SoftLayer_Network_Storage_Iscsi
例如,其他可以标记的对象具有 属性 例如门票或图片模板见:
http://sldn.softlayer.com/reference/datatypes/SoftLayer_Ticket http://sldn.softlayer.com/reference/datatypes/SoftLayer_Virtual_Guest_Block_Device_Template_Group
另外方法:https://sldn.softlayer.com/reference/services/SoftLayer_Tag/getAllTagTypes
它应该 return Network_Storage 作为有效类型,但它不是。
此致