查询售卖规格配置

最近更新时间:2019-07-24 17:07:06

1. 接口描述

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

本接口 (DescribeProductConfig) 用于查询售卖规格配置。

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

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

2. 输入参数

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

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeProductConfig
Version String 公共参数,本接口取值:2018-03-28
Region String 公共参数,详见产品支持的 地域列表
Zone String 可用区英文ID,形如ap-guangzhou-1

3. 输出参数

参数名称 类型 描述
SpecInfoList Array of SpecInfo 规格信息数组
TotalCount Integer 返回总共多少条数据
RequestId String 唯一请求ID,每次请求都会返回。定位问题时需要提供该次请求的RequestId。

4. 示例

示例1 查询某个地域某个可用区的售卖规格信息

输入示例

https://sqlserver.tencentcloudapi.com/?Action=DescribeProductConfig
&Zone=ap-guangzhou-2
&<公共请求参数>

输出示例

{
  "Response": {
    "RequestId": "f4f78ba3-9ce1-42e0-bc42-470460cbdd11",
    "TotalCount": 15,
    "SpecInfoList": [
      {
        "SpecId": 2,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 4,
        "CPU": 2,
        "MinStorage": 10,
        "MaxStorage": 300,
        "QPS": 4000,
        "SuitInfo": "独立用户数上百人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 2,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 4,
        "CPU": 2,
        "MinStorage": 10,
        "MaxStorage": 300,
        "QPS": 4000,
        "SuitInfo": "独立用户数上百人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 1,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 2,
        "CPU": 1,
        "MinStorage": 10,
        "MaxStorage": 300,
        "QPS": 2100,
        "SuitInfo": "独立用户数上百人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 4,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 16,
        "CPU": 8,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 16800,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 13,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 12,
        "CPU": 6,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 12750,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 14,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 24,
        "CPU": 12,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 20000,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 3,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 8,
        "CPU": 4,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 6500,
        "SuitInfo": "独立用户数上千人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 4,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 16,
        "CPU": 8,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 16800,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 14,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 24,
        "CPU": 12,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 20000,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 13,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 12,
        "CPU": 6,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 12750,
        "SuitInfo": "独立用户数上万人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 3,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 8,
        "CPU": 4,
        "MinStorage": 10,
        "MaxStorage": 500,
        "QPS": 6500,
        "SuitInfo": "独立用户数上千人的小型应用",
        "Pid": 10908
      },
      {
        "SpecId": 6,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 48,
        "CPU": 22,
        "MinStorage": 1000,
        "MaxStorage": 1000,
        "QPS": 36300,
        "SuitInfo": "独立用户数上百万人的中型应用",
        "Pid": 10908
      },
      {
        "SpecId": 6,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 48,
        "CPU": 22,
        "MinStorage": 1000,
        "MaxStorage": 1000,
        "QPS": 36300,
        "SuitInfo": "独立用户数上百万人的中型应用",
        "Pid": 10908
      },
      {
        "SpecId": 5,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2012SP3",
        "VersionName": "SQL Server 2012",
        "Memory": 32,
        "CPU": 16,
        "MinStorage": 10,
        "MaxStorage": 1000,
        "QPS": 23000,
        "SuitInfo": "独立用户数上十万人的中型应用",
        "Pid": 10908
      },
      {
        "SpecId": 5,
        "MachineType": "Z3",
        "MachineTypeName": "高IO",
        "Version": "2008R2",
        "VersionName": "SQL Server 2008 R2",
        "Memory": 32,
        "CPU": 16,
        "MinStorage": 10,
        "MaxStorage": 1000,
        "QPS": 23000,
        "SuitInfo": "独立用户数上十万人的中型应用",
        "Pid": 10908
      }
    ]
  }
}

5. 开发者资源

API Explorer

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

SDK

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

命令行工具

6. 错误码

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

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