0
votes

How to get a list of all network storage objects of all types (i.e. iscsi, hub, evault, nas, lockbox)?

I use the mask: mask[networkStorageCount,networkStorage[nasType,fileNetworkMountAddress]]

and i get back networkStorageCount = 4, but an empty array of networkStorage.

The following is the http request/response:

Running GET on https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask%5BnetworkStorageCount%2CnetworkStorage%5BnasType%2CfileNetworkMountAddress%5D%5D with no body

Got 200 on https://api.softlayer.com/rest/v3.1/SoftLayer_Account.json?objectMask=mask%5BnetworkStorageCount%2CnasNetworkStorageCount%2CnetworkStorage%5BnasType%2CfileNetworkMountAddress%5D%5D with body: {"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":[]}

I also try using a normal http GET request and response is []

https://{UserId}:{API_KEY}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getNetworkStorage?

1

1 Answers