(Softlayer api)如何从softlayer中的对象存储获取端点?
(Softlayer api)How to get endpoints from object storage in softlayer?
如何获取softlayer中集群的连接信息?我需要 public 和所有集群的私有身份验证 URL。
好像softlayer不支持open stack的/v1/endpoints api api.
而且我可以在网络存储中看到 getObjectStorageConnectionInformation api。但不知道如何使用它。
尝试使用以下方法:
SoftLayer_Network_Storage::getObjectStorageConnectionInformation,它将显示集群及其端点的信息(public 和私有)
要使用此方法,您需要提供一个Object Storage的标识符,您可以通过以下REST请求检索这些标识符(Object Storage identifiers):
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getHubNetworkStorage
Method: Get
注意:将$username和$apiKey替换为您自己的信息。
您将检索到这样的结果:
{
"accountId": 123456
"capacityGb": 5000
"createDate": "2015-01-20T16:21:02-04:00"
"guestId": null
"hardwareId": null
"hostId": null
"id": 41111111
"nasType": "HUB"
"password": ""
"serviceProviderId": 1
"storageTypeId": "15"
"upgradableFlag": true
"username": "SLOS123456-10"
...
然后,您可以通过以下 Rest 请求获取对象存储连接(使用之前请求的 "id" 值)
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/41111111/getObjectStorageConnectionInformation
Method: Get
注意:用你自己的信息替换$username、$apiKey和41111111的值
一些重要的参考资料:
我正在为 Chrome
使用 Advanced REST client
如何获取softlayer中集群的连接信息?我需要 public 和所有集群的私有身份验证 URL。
好像softlayer不支持open stack的/v1/endpoints api api.
而且我可以在网络存储中看到 getObjectStorageConnectionInformation api。但不知道如何使用它。
尝试使用以下方法: SoftLayer_Network_Storage::getObjectStorageConnectionInformation,它将显示集群及其端点的信息(public 和私有)
要使用此方法,您需要提供一个Object Storage的标识符,您可以通过以下REST请求检索这些标识符(Object Storage identifiers):
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Account/getHubNetworkStorage
Method: Get
注意:将$username和$apiKey替换为您自己的信息。
您将检索到这样的结果:
{
"accountId": 123456
"capacityGb": 5000
"createDate": "2015-01-20T16:21:02-04:00"
"guestId": null
"hardwareId": null
"hostId": null
"id": 41111111
"nasType": "HUB"
"password": ""
"serviceProviderId": 1
"storageTypeId": "15"
"upgradableFlag": true
"username": "SLOS123456-10"
...
然后,您可以通过以下 Rest 请求获取对象存储连接(使用之前请求的 "id" 值)
https://$username:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Network_Storage/41111111/getObjectStorageConnectionInformation
Method: Get
注意:用你自己的信息替换$username、$apiKey和41111111的值
一些重要的参考资料:
我正在为 Chrome
使用 Advanced REST client