![](/img/trans.png)
[英]Unable to Import Custom image using IBM cloud Object storage(VMDK) through Softlayer Rest API
[英]How to get a region list in IBM cloud object storage using Rest API
我需要使用Rest API在IBM Cloud Object Storage中获取区域列表。 例如:us-east,au-syd等。我没有找到与获取区域列表相关的任何API引用。
您可能要检索区域端点。
尝试使用以下rest api调用:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Network_Storage_Hub_Cleversafe_Account/[accountId]/getEndpoints
输出:
[
{
"legacy": true,
"location": "us-south",
"region": "regional",
"type": "public",
"url": "s3.us-south.objectstorage.softlayer.net"
},
{
"legacy": true,
"location": "us-east",
"region": "regional",
"type": "public",
"url": "s3.us-east.objectstorage.softlayer.net"
},
{
"legacy": true,
"location": "eu-gb",
"region": "regional",
"type": "public",
"url": "s3.eu-gb.objectstorage.softlayer.net"
},
]
参考:
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.