查询售卖可用区

最近更新时间:2018-11-15 19:05:48

1. 接口描述

接口请求域名: sqlserver.tencentcloudapi.com 。

本接口 (DescribeZones) 用于查询当前可售卖的可用区信息。

默认接口请求频率限制:20次/秒。

注意:本接口支持金融区地域。由于金融区和非金融区是隔离不互通的,因此当公共参数 Region 为金融区地域(例如 ap-shanghai-fsi)时,需要同时指定带金融区地域的域名,最好和 Region 的地域保持一致,例如:sqlserver.ap-shanghai-fsi.tencentcloudapi.com 。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeZones
Version String 公共参数,本接口取值:2018-03-28
Region String 公共参数,详见产品支持的地域列表

3. 输出参数

参数名称 类型 描述
TotalCount Integer 返回多少个可用区信息
ZoneSet Array of ZoneInfo 可用区数组
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询所有可用区

输入示例

https://postgres.tencentcloudapi.com/?Action=DescribeZones
&<公共请求参数>

输出示例

{
  "Response": {
    "RequestId": "c877d7ce-bde9-48dc-bf8c-9efb01570caa",
    "TotalCount": 34,
    "ZoneSet": [
      {
        "SpecId": 1,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 5,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 17,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 16,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 14,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 6,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 2,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 14,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 3,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 14,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 4,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 26,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 20,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 13,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 5,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 23,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 3,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 4,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 6,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 5,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 1,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 4,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 13,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 6,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 21,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 25,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 24,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 13,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 19,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 3,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 2,
        "Version": "2008R2",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 22,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      },
      {
        "SpecId": 2,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-2",
        "ZoneId": 100002,
        "ZoneName": "广州二区"
      },
      {
        "SpecId": 18,
        "Version": "2012SP3",
        "Zone": "ap-guangzhou-3",
        "ZoneId": 100003,
        "ZoneName": "广州三区"
      }
    ]
  }
}

5. 开发者资源

API Explorer

该工具提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力,能显著降低使用云 API 的难度,推荐使用。

SDK

云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

命令行工具

6. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码

错误码 描述
InternalError.DBError 数据库错误。
InternalError.SystemError 系统错误。
InvalidParameter.InputIllegal 输入错误。
InvalidParameter.ParamsAssertFailed 参数断言转换错误。
InvalidParameterValue.IllegalRegion 地域错误。