调用 DescribeDBInstanceSpecs 接口查询 MySQL 支持的规格。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
DBEngineVersion | String | 否 | 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": "" } ] } }
更多详情,请参见错误码。