我在以下链接中找不到关于标记块存储的任何方法:
https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Iscsi
我还检查了标签的命令:
https://sldn.softlayer.com/reference/services/SoftLayer_Tag
这个命令看起来像我想要的,但我仍然遇到了一些问题:
对于参数tagTypes,我得到的支持类型是:
dict
不确定哪一个适合块存储。
任何人都可以提前给予一些建议。
答案 0 :(得分:1)
我很害怕标记块存储是不可能的,对象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
Addiotionally方法:https://sldn.softlayer.com/reference/services/SoftLayer_Tag/getAllTagTypes
它应该将Network_Storage作为有效类型返回,但它不会。
此致