如何使用softlayer api标记块存储

时间:2017-01-11 10:09:14

标签: api ibm-cloud-infrastructure

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

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

我还检查了标签的命令:

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

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

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

    dict
  2. 不确定哪一个适合块存储。

    1. 我尝试使用tagType“HARDWARE”并且厌倦了将标记设置为阻止存储,响应显示“您没有权限标记此对象”
    2. 任何人都可以提前给予一些建议。

1 个答案:

答案 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作为有效类型返回,但它不会。

此致