You need to enable JavaScript to run this app.
导航
DescribeAvailabilityZones
最近更新时间:2023.09.06 11:47:47首次发布时间:2023.03.30 19:59:24

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

请求参数

名称

类型

是否必选

示例值

描述

RegionId

String

cn-beijing

地域 ID,可调用 DescribeRegions 查询。

响应参数

名称

类型

示例值

描述

RegionId

String

cn-beijing

地域 ID。

Zones

Array of ZoneObject

/

可用区列表。关于 Zones 的详细信息,请参考数据结构文档中 ZoneObject 部分。

示例

请求示例

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

{
    "RegionId": "cn-beijing"
}

响应示例

{
    "ResponseMetadata": {
        "RequestId": "20230227162855CD78212B545D4168BA43",
        "Action": "DescribeAvailabilityZones",
        "Version": "2022-05-01",
        "Service": "Kafka",
        "Region": "cn-beijing"
    },
    "Result": {
        "RegionId": "cn-beijing",
        "Zones": [
            {
                "Description": "可用区A",
                "Status": "Normal",
                "ZoneId": "cn-beijing-a",
                "ZoneName": "cn-beijing-a"
            },
            {
                "Description": "可用区B",
                "Status": "Normal",
                "ZoneId": "cn-beijing-b",
                "ZoneName": "cn-beijing-b"
            }
        ]
    }
}