0

我需要使用 Rest API 在 IBM Cloud Object Storage 中获取区域列表。例如:us-east、au-syd 等。我没有找到任何与获取区域列表相关的 API 参考。

4

1 回答 1

0

您可能想要检索区域端点。

尝试使用以下 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"
    },
]

参考:

https://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Hub_Cleversafe_Account/getEndpoints/

希望这可以帮助。

于 2019-08-07T15:05:10.577 回答