您可以调用DescribeSupportedZones获取支持购买的可用区信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeSupportedZones

系统规定参数。取值为DescribeSupportedZones。

Region String cn-beijing

地域ID。

返回数据

名称 类型 示例值 描述
RequestId String 23A9C718-DDAB-1696-B025-18FBC830F7C5

请求ID。

Success Boolean true

是否成功,取值如下:

  • true:成功。
  • false:失败。
ZoneIds Array of String cn-beijing-g

可用区。

示例

请求示例

http(s)://{Endpoint}/?Action=DescribeSupportedZones
&Region=cn-beijing
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeSupportedZonesResponse>
    <RequestId>23A9C718-DDAB-1696-B025-18FBC830F7C5</RequestId>
    <Success>true</Success>
    <ZoneIds>cn-beijing-g</ZoneIds>
</DescribeSupportedZonesResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "23A9C718-DDAB-1696-B025-18FBC830F7C5",
  "Success" : true,
  "ZoneIds" : [ "cn-beijing-g" ]
}