You need to enable JavaScript to run this app.
导航
DescribeDBInstanceSpecs
最近更新时间:2024.11.15 15:09:56首次发布时间:2023.08.14 13:15:55

调用 DescribeDBInstanceSpecs 接口查询 MySQL 支持的规格。

请求类型

同步请求。

调试

请求参数

参数
类型
是否必选
示例值
描述
DBEngineVersion
String
MySQL_8_0

兼容版本。取值:

  • MySQL_5_7:MySQL 5.7 版本。默认值。
  • MySQL_8_0:MySQL 8.0 版本。
SpecCode
String
rds.mysql.1c2g
实例规格编码。
ZoneId
String
beijing-a
可用区 ID。
InstanceType
String
DoubleNode
实例类型。取值为 DoubleNode

返回参数

参数
类型
示例值
描述
InstanceSpecsInfo
Object[]
请参见返回示例。
规格列表。

示例

请求示例

POST /?Action=DescribeDBInstanceSpecs&Version=2022-01-01 HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: rds.volcengineapi.com
X-Date: 20211202T101010Z
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****
{
    "DBEngineVersion": "MySQL_8_0"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20230810141234966A39B950F7BE686AC1",
        "Action": "DescribeDBInstanceSpecs",
        "Version": "2022-01-01",
        "Service": "rds_mysql",
        "Region": "cn-beijing"
    },
    "Result": {
        "InstanceSpecsInfo": [
            {
                "Connection": 600,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 1000,
                "InstanceType": "DoubleNode",
                "Memory": 2,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.1c2g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 20,
                "StorageStep": 100,
                "VCPU": 1,
                "ZoneId": ""
            },
            {
                "Connection": 1200,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 2000,
                "InstanceType": "DoubleNode",
                "Memory": 4,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.2c4g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 20,
                "StorageStep": 100,
                "VCPU": 2,
                "ZoneId": ""
            },
            {
                "Connection": 2000,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 4000,
                "InstanceType": "DoubleNode",
                "Memory": 8,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.2c8g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 20,
                "StorageStep": 100,
                "VCPU": 2,
                "ZoneId": ""
            },
            {
                "Connection": 4000,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 6000,
                "InstanceType": "DoubleNode",
                "Memory": 16,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.2c16g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 20,
                "StorageStep": 100,
                "VCPU": 2,
                "ZoneId": ""
            },
            {
                "Connection": 2000,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 5000,
                "InstanceType": "DoubleNode",
                "Memory": 8,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.4c8g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 20,
                "StorageStep": 100,
                "VCPU": 4,
                "ZoneId": ""
            },
            {
                "Connection": 180000,
                "DBEngineVersion": "MySQL_8_0",
                "IOPS": 160000,
                "InstanceType": "DoubleNode",
                "Memory": 864,
                "QPS": 0,
                "RegionId": "cn-beijing",
                "SpecCode": "rds.mysql.108c864g",
                "SpecFamily": "General",
                "SpecStatus": "Normal",
                "StorageMax": 6000,
                "StorageMin": 900,
                "StorageStep": 100,
                "VCPU": 108,
                "ZoneId": ""
            }
        ]
    }
}

错误码

更多详情,请参见错误码