【问题标题】:How to tag a block storage using softlayer api如何使用 softlayer api 标记块存储
【发布时间】:2017-01-27 00:30:23
【问题描述】:

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

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

我还检查了标签的命令:

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

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

  1. 对于参数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'}
    

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

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

任何人都可以提供一些建议,在此先感谢。

【问题讨论】:

    标签: api ibm-cloud-infrastructure


    【解决方案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

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

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

    问候

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多