[英]How to get a region list in IBM cloud object storage using Rest API
I need a Get Region List in IBM Cloud Object Storage using Rest API. 我需要使用Rest API在IBM Cloud Object Storage中获取区域列表。 For Example :us-east,au-syd etc.I didn't find any API references related to get Region List.
例如:us-east,au-syd等。我没有找到与获取区域列表相关的任何API引用。
You may want to retrieve the region endpoints. 您可能要检索区域端点。
Try using the following rest api call: 尝试使用以下rest api调用:
https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Network_Storage_Hub_Cleversafe_Account/[accountId]/getEndpoints
Output: 输出:
[
{
"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"
},
]
Reference: 参考:
https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Hub_Cleversafe_Account/getEndpoints/ https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Hub_Cleversafe_Account/getEndpoints/
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.