副本卷ID无法检索

时间:2016-09-17 14:30:45

标签: api ibm-cloud-infrastructure

我试图使用过滤器& amp检索replica volume id softlayer服务,但过滤器不起作用。

objectFilterstorage = {"iscsiNetworkStorage": {"username": {"operation": storage_name}}}

client [Softlayer_Account].getIscsiNetworkStorage(filter=objectFilterstorage)

在这里,我需要帮助来获取对象过滤器。

1 个答案:

答案 0 :(得分:0)

请使用SoftLayer_Account::getNetworkStorage尝试以下内容:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectMask=mask[id,username,replicationPartners[id,username]]&objectFilter={   "networkStorage": {     "replicationPartners": {       "username": {         "operation": "MYUSERNAME_REP_1"       }     }   } }

Method:GET