1
如何獲取包含公用主機,私有主機,用戶名和有序對象存儲的密碼的憑證信息?如何通過Softlayer API獲取對象存儲的憑證信息?
軟層控制站點使用下面的api獲取信息。
POST https://control.softlayer.com/storage/objectstorage/getclusterinfo
如何獲取包含公用主機,私有主機,用戶名和有序對象存儲的密碼的憑證信息?如何通過Softlayer API獲取對象存儲的憑證信息?
軟層控制站點使用下面的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