You need to enable JavaScript to run this app.
导航

DescribeZones

最近更新时间2023.11.20 10:48:36

首次发布时间2022.07.01 09:11:20

调用 DescribeZones 接口查询一个地域下的可用区信息。

调试

请求参数

名称类型是否必填示例值描述
ActionStringDescribeZones要执行的操作,取值:DescribeZones。
VersionString2020-04-01API的版本,取值:2020-04-01。

ZoneIds.N

String

ZoneIds.1=cn-beijing-a

可用区ID,最多支持20个ID。

  • 参数 - N:表示可用区ID的序号。
  • 多个可用区ID之间用&分隔。

返回数据

名称
类型
示例值
描述
Zones
Array of Struct
-
可用区信息。

请求示例

GET /?Action=DescribeZones&Version=2020-04-01 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: ecs

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202106111445100102252431000052****",
        "Action": "DescribeZones",
        "Version": "2020-04-01",
        "Service": "ecs",
        "Region": "cn-beijing"
    },
    "Result": {
        "Zones": [
            {
                "ZoneId": "cn-beijing-a"
            },
            {
                "ZoneId": "cn-beijing-b"
            }
        ]
    }
}

错误码

HttpCode错误码错误信息描述
400LimitExceeded.MaximumZoneIdsYou've reached the limit on the number of ZoneIds that you can set.指定的ZoneIds数量超过最大限制。
400InvalidArgumentThe specified argument is invalid.指定的参数不合法。
404InvalidZone.NotFoundThe specified zone does not exist.指定的可用区不存在。

429

FlowLimitExceeded

You've reach the limit on request rate of resources.

您已超过资源请求限速。

500InternalErrorAn internal error has occurred.内部错误,请重试。如果多次尝试失败,请提交工单。