如何通过Softlayer API获取对象存储的凭证信息?

时间:2016-02-19 08:11:22

标签: api ibm-cloud-infrastructure object-storage

如何获取包含订购对象存储的公共主机,私有主机,用户名和密码的凭据信息?

Softlayer控制站点使用下面的api获取信息。

POST https://control.softlayer.com/storage/objectstorage/getclusterinfo

1 个答案:

答案 0 :(得分:0)

此请求可能会对您有所帮助:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getHubNetworkStorage?objectMask=mask[id,username,serviceResource[name,datacenter,frontendIpAddress,backendIpAddress]]
Method: GET

结果将显示如下:

{
"id": 4309678
"username": "SLOS112233-11"
"serviceResource": {
"backendIpAddress": "https://dal05.objectstorage.service.networklayer.com/auth/v1.0/"
"frontendIpAddress": "https://dal05.objectstorage.softlayer.net/auth/v1.0/"
"name": "OBJECT_STORAGE_DAL05"
"datacenter": {
"id": 123456
"longName": "Dallas 5"
"name": "dal05"
"statusId": 2
}-
}-
}

如果您想获得特定商品的信息,请申请过滤器:

https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getHubNetworkStorage?objectFilter={   "hubNetworkStorage": {     "username": {       "operation": "SLOS334455-10"     }   } }
Method: GET

有些参考资料可以为您提供帮助:

  

http://sldn.softlayer.com/reference/services/SoftLayer_Account/getHubNetworkStorage   https://sldn.softlayer.com/reference/Object-Storage-CDN/Set-Time-Live-TTL   https://sldn.softlayer.com/blog/waelriac/Managing-SoftLayer-Object-Storage-Through-REST-APIs