如何获取包含有序对象存储的公共主机、私有主机、用户名和密码的凭证信息?
Softlayer 控制站点使用下面的 api 来获取信息。
POST https://control.softlayer.com/storage/objectstorage/getclusterinfo
如何获取包含有序对象存储的公共主机、私有主机、用户名和密码的凭证信息?
Softlayer 控制站点使用下面的 api 来获取信息。
POST https://control.softlayer.com/storage/objectstorage/getclusterinfo
此请求可能会帮助您:
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