API For Additional Storage Details Softlayer -


for given virtual guest, how should attached additional storage details using api. information storage name, storage id etc softlayer only. please provide api if possible.

thanks

you use objectmask retrieve additional information related object using. next examples might you:

method: get

https://$username:$apikey@api.softlayer.com/rest/v3/softlayer_virtual_guest/$virtualguestid/getobject?objectmask=mask[datacenter,blockdevices[diskimage[capacity,type[name],units]],networkstorage,allowedhost,allowednetworkstorage[serviceresource[networkdevice[datacenter]],serviceresourcebackendipaddress,storagetype],allowednetworkstoragereplicas,evaultnetworkstorage[serviceresource[networkdevice[datacenter]]]] 

method: post

https://$username:$apikey@api.softlayer.com/rest/v3/softlayer_virtual_guest/$virtualguestid/getattachednetworkstorages?objectmask=mask[id,username,capacitygb,nastype,notes,serviceresource[id,networkdevice[id,datacenter],type],storagetype,storagetierlevel,replicationpartners[id,username,capacitygb,nastype,notes,serviceresource[id,networkdevice[id,datacenter],type],storagetype,storagetierlevel,serviceresourcebackendipaddress],serviceresourcebackendipaddress]  payload: {     "parameters": ["*"] } 

regarding portable storages way distinguish them calling method softlayer_account::getportablestoragevolumes , apply filter virtual guest id.

e.g.

method: get

https://$username:$apikey@api.softlayer.com/rest/v3/softlayer_account/getportablestoragevolumes?objectfilter={"portablestoragevolumes":{"blockdevices":{"guest":{"id":{"operation":$virtualguestid}}}}} 

note: replace $username, $apikey , $virtualguestid information.

additional information object-masks can found in next link: https://sldn.softlayer.com/article/object-masks

there’s valuable information storage services in next link: https://knowledgelayer.softlayer.com/


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -