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

DescribeAvailabilityZones

最近更新时间2023.07.12 16:22:33

首次发布时间2023.07.12 16:22:33

调用 DescribeAvailabilityZones 接口查看可用区列表。

请求参数

名称

类型

是否必选

示例值

描述

RegionId

String

cn-shanghai

地域 ID,可调用 DescribeRegions 查询。

返回参数

名称

类型

示例值

描述

RegionId

String

cn-shanghai

地域 ID。

Zones

Array of ZoneObject

/

可用区列表。关于 Zones 的详细信息,请参考 ZoneObject。

示例

请求示例

POST /?Action=DescribeAvailabilityZones&Version=2023-01-01 HTTP/1.1
Content-Type: application/json
Host: rocketmq.volcengineapi.com
X-Date: 20210328T100802Z
Authorization: HMAC-SHA256 Credential=AK********/20210328/cn-shanghai/rocketmq/request, SignedHeaders=x-date, Signature=********

{ 
    "RegionId": "cn-shanghai" 
}

返回实例

{
    "ResponseMetadata": {
        "RequestId": "202305082144111D8F271960D3564B0388",
        "Action": "DescribeAvailabilityZones",
        "Version": "2023-01-01",
        "Service": "RocketMQ",
        "Region": "cn-shanghai"
    },
    "Result": {
        "RegionId": "cn-shanghai",
        "Zones": [
            {
                "Description": "可用区A",
                "ZoneId": "cn-shanghai-a",
                "ZoneName": "cn-shanghai-a",
                "ZoneStatus": "Normal"
            },
            {
                "Description": "可用区B",
                "ZoneId": "cn-shanghai-b",
                "ZoneName": "cn-shanghai-b",
                "ZoneStatus": "Normal"
            },
            {
                "Description": "可用区C",
                "ZoneId": "cn-shanghai-c",
                "ZoneName": "cn-shanghai-c",
                "ZoneStatus": "Normal"
            }
        ]
    }
}