You need to enable JavaScript to run this app.
导航
DescribeDBInstanceSpecs
最近更新时间:2024.12.13 12:00:11首次发布时间:2023.11.15 22:39:52

调用 DescribeDBInstanceSpecs 接口查询可售卖的实例规格。

请求类型

同步请求。

注意事项

本接口的请求参数均无默认值。在不传入某个参数时,表示不对该参数进行过滤,按照其他参数限定的查询条件下进行查询。

请求参数

参数
类型
是否必选
示例值
描述
ZoneId
String
cn-beijing-a
主可用区 ID,可调用 DescribeAvailabilityZones 接口查询可用区列表。
DBEngineVersion
String
PostgreSQL_12

兼容版本。取值:

  • PostgreSQL_11:PostgreSQL 11。
  • PostgreSQL_12:PostgreSQL 12。
  • PostgreSQL_13:PostgreSQL 13。
  • PostgreSQL_14:PostgreSQL 14。
  • PostgreSQL_15:PostgreSQL 15。
  • PostgreSQL_16:PostgreSQL 16。
SpecCode
String
rds.postgres.1c2g

实例规格编码。

说明

关于节点规格的详细信息,请参见产品规格

返回参数

参数
类型
示例值
描述
Total
Integer
1
规格总数。
InstanceSpecs
Object[]
请参见返回示例。
规格列表。

示例

请求示例

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

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20240919144723C5C7E0B625771723B354-b0d2da",
        "Action": "DescribeDBInstanceSpecs",
        "Version": "2022-01-01",
        "Service": "rds_postgresql",
        "Region": "cn-beijing"
    },
    "Result": {
        "InstanceSpecs": [
            {
                "Connection": 200,
                "Memory": 2,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.1c2g",
                "SpecStatus": "Normal",
                "VCPU": 1
            },
            {
                "Connection": 400,
                "Memory": 4,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.2c4g",
                "SpecStatus": "Normal",
                "VCPU": 2
            },
            {
                "Connection": 600,
                "Memory": 8,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.2c8g",
                "SpecStatus": "Normal",
                "VCPU": 2
            },
            {
                "Connection": 1600,
                "Memory": 16,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.2c16g",
                "SpecStatus": "Normal",
                "VCPU": 2
            },
            {
                "Connection": 800,
                "Memory": 8,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.4c8g",
                "SpecStatus": "Normal",
                "VCPU": 4
            },
            {
                "Connection": 1600,
                "Memory": 16,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.4c16g",
                "SpecStatus": "Normal",
                "VCPU": 4
            },
            {
                "Connection": 3200,
                "Memory": 32,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.4c32g",
                "SpecStatus": "Normal",
                "VCPU": 4
            },
            {
                "Connection": 1600,
                "Memory": 16,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.8c16g",
                "SpecStatus": "Normal",
                "VCPU": 8
            },
            {
                "Connection": 3200,
                "Memory": 32,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.8c32g",
                "SpecStatus": "Normal",
                "VCPU": 8
            },
            {
                "Connection": 6400,
                "Memory": 64,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.8c64g",
                "SpecStatus": "Normal",
                "VCPU": 8
            },
            {
                "Connection": 3200,
                "Memory": 32,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.16c32g",
                "SpecStatus": "Normal",
                "VCPU": 16
            },
            {
                "Connection": 6400,
                "Memory": 64,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.16c64g",
                "SpecStatus": "Normal",
                "VCPU": 16
            },
            {
                "Connection": 12800,
                "Memory": 128,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.16c128g",
                "SpecStatus": "Normal",
                "VCPU": 16
            },
            {
                "Connection": 12800,
                "Memory": 128,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.postgres.32c128g",
                "SpecStatus": "Normal",
                "VCPU": 32
            },
            ……
        ],
        "Total": 15
    }
}