如何获取所有类型的所有网络存储对象的列表(即iscsi,hub,evault,nas,lockbox)?
我使用mask:mask [networkStorageCount,networkStorage [nasType,fileNetworkMountAddress]]
然后我回到networkStorageCount = 4,但是一个空的networkStorage数组。
以下是http请求/响应:
在https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask%5BnetworkStorageCount%2CnasNetworkStorageCount%2CnetworkStorage%5BnasType%2CfileNetworkMountAddress%5D%5D上使用正文获得200:{" complexType":" SoftLayer_Account"," accountManagedResourcesFlag":false,{...}, " nasNetworkStorageCount":1," networkStorageCount&#34:4,"品牌" {"的complexType":" SoftLayer_Brand&#34 ;, "采用catalogId":14," ID":2"的keyName":" SOFTLAYER_US"" LONGNAME":& #34; SoftLayer Technologies,Inc。"," name":" SoftLayer USA"}," networkStorage":[]}
我也尝试使用普通的http GET请求,响应是[]
的https:// {用户ID}:{API_KEY} @ api.softlayer.com /休息/ V3.1 / SoftLayer_Account / getNetworkStorage
答案 0 :(得分:0)
要获取您帐户中的存储列表,您需要调用此方法:
http://sldn.softlayer.com/reference/services/softlayer_account/getnetworkstorage