最近更新时间:2023.07.25 18:39:31
首次发布时间:2022.07.01 09:11:20
调用 DescribeZones 接口查询一个地域下的可用区信息。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeZones | 要执行的操作,取值:DescribeZones。 |
Version | String | 是 | 2020-04-01 | API的版本,取值:2020-04-01。 |
ZoneIds.N | String | 否 | ZoneIds.1=cn-beijing-a | 可用区ID,最多支持20个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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | LimitExceeded.MaximumZoneIds | You've reached the limit on the number of ZoneIds that you can set. | 指定的ZoneIds数量超过最大限制。 |
400 | InvalidArgument | The specified argument is invalid. | 指定的参数不合法。 |
404 | InvalidZone.NotFound | The specified zone does not exist. | 指定的可用区不存在。 |
429 | FlowLimitExceeded | You've reach the limit on request rate of resources. | 您已超过资源请求限速。 |
500 | InternalError | An internal error has occurred. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |