SoftLayer REST API 网络存储阵列
SoftLayer REST API network storage array
如何获取所有类型(即 iSCSI、集线器、evault、nas、密码箱)的所有网络存储 objects 的列表?
我使用掩码:mask[networkStorageCount,networkStorage[nasType,fileNetworkMountAddress]]
然后我得到了 networkStorageCount = 4,但是一个空的 networkStorage 数组。
以下是httprequest/response:
在 https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask%5BnetworkStorageCount%2CnasNetworkStorageCount%2CnetworkStorage%5BnasType%2CfileNetworkMountAddress%5D%5D 使用 body 获得 200:{"complexType":"SoftLayer_Account","accountManagedResourcesFlag":false,{...},"nasNetworkStorageCount":1,"networkStorageCount":4,"brand":{"complexType":"SoftLayer_Brand","catalogId":14,"id":2,"keyName":"SOFTLAYER_US","longName":"SoftLayer Technologies, Inc.","name":"SoftLayer USA"},"networkStorage":[]}
我也尝试使用普通的 http GET 请求,响应是 []
https://{UserId}:{API_KEY}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkStorage?
为了获取您帐户中的存储列表,您需要调用此方法:
http://sldn.softlayer.com/reference/services/softlayer_account/getnetworkstorage
如何获取所有类型(即 iSCSI、集线器、evault、nas、密码箱)的所有网络存储 objects 的列表?
我使用掩码:mask[networkStorageCount,networkStorage[nasType,fileNetworkMountAddress]]
然后我得到了 networkStorageCount = 4,但是一个空的 networkStorage 数组。
以下是httprequest/response:
在 https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask%5BnetworkStorageCount%2CnasNetworkStorageCount%2CnetworkStorage%5BnasType%2CfileNetworkMountAddress%5D%5D 使用 body 获得 200:{"complexType":"SoftLayer_Account","accountManagedResourcesFlag":false,{...},"nasNetworkStorageCount":1,"networkStorageCount":4,"brand":{"complexType":"SoftLayer_Brand","catalogId":14,"id":2,"keyName":"SOFTLAYER_US","longName":"SoftLayer Technologies, Inc.","name":"SoftLayer USA"},"networkStorage":[]}
我也尝试使用普通的 http GET 请求,响应是 []
https://{UserId}:{API_KEY}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkStorage?
为了获取您帐户中的存储列表,您需要调用此方法:
http://sldn.softlayer.com/reference/services/softlayer_account/getnetworkstorage