How can I get allowedHostsLimit for each volume using SoftLayer API

这一生的挚爱 提交于 2019-12-12 02:18:25

问题


I'm trying to get allowed host limit for each volume. using the api in http://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage

I always get "0" for the allowed host limit value.

How can I get the right value?


回答1:


I ran the following Restful and it returns the proper values

https://api.softlayer.com/rest/v3/SoftLayer_Network_Storage/$StorageID/getAllowedHostsLimit

replace StorageId with the id of the object storage you want to get the allowed host limit

I just called this method http://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage/getAllowedHostsLimit

Make sure you have enough permissions to see the storages

Regards



来源:https://stackoverflow.com/questions/37314450/how-can-i-get-allowedhostslimit-for-each-volume-using-softlayer-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!