You need to enable JavaScript to run this app.
导航
DescribeAvailabilityZones
最近更新时间:2023.09.14 17:06:03首次发布时间:2023.04.24 11:01:03

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

请求类型

同步请求。

请求参数

名称类型是否必选示例值描述
RegionIdStringcn-beijing地域 ID,可调用 DescribeRegions 接口查询。若此参数为空,则代表查询全部地域的可用区。

返回参数

名称类型示例值描述
RegionIdStringcn-beijing地域 ID。

Zones

Array of ZonesObject

{
"Description": "华北2(北京)-可用区A",
"ZoneId": "cn-beijing-a",
"ZoneName": "cn-beijing-a"
}

可用区列表。关于 Zones 的详细信息,请参见数据结构

请求示例

POST /?Action=DescribeAvailabilityZones&Version=2022-01-01 HTTP/1.1
Content-Type: application/json
Host: rds-mssql.volcengineapi.com
X-Date: 20230131T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mssql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****

{
    "RegionId": "cn-beijing"
}

返回示例

正常返回示例

{
    "ResponseMetadata": {
        "RequestId": "202301312006356ACDD9E7DF2F2F3B9D03",
        "Action": "DescribeAvailabilityZones",
        "Version": "2022-01-01",
        "Service": "rds_mssql",
        "Region": "cn-beijing"
    },
    "Result": {
        "RegionId": "cn-beijing",
        "Zones": [
            {
                "Description": "华北2(北京)-可用区A",
                "ZoneId": "cn-beijing-a",
                "ZoneName": "cn-beijing-a"
            },
            { 
	            "Description": "华北2(北京)-可用区B", 
	            "ZoneId": "cn-beijing-b", 
	            "ZoneName": "cn-beijing-b" 
		        }
        ]
    }
}

错误码

更多详情,请参见错误码