调用 DescribeDBInstances 接口查看实例列表。
同步请求。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 否 | mysql-1d797b6f**** | 实例 ID。 |
InstanceName | String | 否 | TestDB | 实例名称。 |
InstanceStatus | String | 否 | Running | 实例状态,取值:
|
DBEngineVersion | String | 否 | MySQL_8_0 | 兼容版本。取值:
|
CreateTimeStart | String | 否 | 2022-01-01T10:10:10Z | 查询创建实例创建时间范围。 |
CreateTimeEnd | String | 否 | 2022-01-01T10:10:10Z | 查询创建实例创建时间范围。 |
ZoneId | String | 否 | cn-beijing-a | 实例所属可用区。 |
ChargeType | String | 否 | PostPaid | 付费类型。取值:
|
InstanceType | String | 否 | DoubleNode | 实例类型。取值固定为 `DoubleNode`。 |
NodeSpec | String | 否 | rds.mysql.1c2g | 主节点规格。关于节点规格的详细信息,请参见产品规格。 |
TagFilters | Array of TagFilterObject | 否 | [ | 用于查询筛选的标签键值对数组。关于 TagFilters 的更多详情,请参见数据结构。 说明
|
ProjectName | String | 否 | testProject | 项目名称。 |
PageNumber | Integer | 否 | 1 | 当前页页码。取值最小为 1。默认值为 1。 |
PageSize | Integer | 否 | 10 | 每页记录数。最小值为 1,最大值不超过 100。默认值为 10。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Total | Integer | 1 | 实例总数。 |
Instances | Array of InstanceObject | 无 | 实例列表。更多关于 Instances 的信息,请参见数据结构。 |
POST /?Action=DescribeDBInstances&Version=2022-01-01 HTTP/1.1 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=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645a**** { "InstanceStatus" : "Running" }
{ "ResponseMetadata":{ "RequestId":"20230110194301C23B8A99043A27D617A2", "Action":"DescribeDBInstances", "Version":"2022-01-01", "Service":"rds_mysql", "Region":"cn-beijing" }, "Result":{ "Instances":[ { "AddressObject":[ { "DNSVisibility": false, "Domain": "mysql-1d797b6f****-public.rds.volces.com", "EipId": "eip-13flx63066io03n6nu51u****", "IPAddress": "180.***.***.***", "InternetProtocol": "IPv4", "NetworkType": "Public", "SubnetId": "subnet-rs4brkc5pnuov0x576g****" }, { "DNSVisibility": false, "Domain": "mysql-1d797b6f****.rds.ivolces.com", "EipId": "", "IPAddress": "192.***.***.***", "InternetProtocol": "IPv4", "NetworkType": "Private", "SubnetId": "subnet-rs4brkc5pnuov0x576g****" } ], "AllowListVersion":"v2", "ChargeDetail":{ "AutoRenew":FALSE, "ChargeEndTime":"", "ChargeStartTime":"2023-01-10T11:13:34.000Z", "ChargeStatus":"Normal", "ChargeType":"PostPaid", "Number":0, "OverdueReclaimTime":"2200-01-15T16:00:00.000Z", "OverdueTime":"", "Period":0, "PeriodUnit":"Month" }, "CreateTime":"2023-01-10T11:13:30.000Z", "DBEngineVersion":"MySQL_5_7", "InstanceId":"mysql-1d797b6f****", "InstanceName":"测试实例 1", "InstanceStatus":"Running", "InstanceType": "DoubleNode", "LowerCaseTableNames":"1", "MaintenanceWindow": { "DayKind": "Week", "DayOfMonth": [], "DayOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ], "MaintenanceTime": "19:00Z-22:59Z" }, "NodeCPUUsedPercentage": 1.59, "NodeMemoryUsedPercentage": 16.46, "NodeNumber": 3, "NodeSpaceUsedPercentage": 4.23, "NodeSpec":"rds.mysql.1c2g", "ProjectName":"", "RegionId":"cn-beijing", "StorageSpace":20, "StorageType":"LocalSSD", "SubnetId":"subnet-2bzr8zdx5o8ao2dx0efq4****", "TimeZone":"UTC +08:00", "VpcId":"vpc-3rebt5uf5fr405zsk2if9****", "ZoneId":"cn-beijing-c", "ZoneIds": [ "cn-beijing-a", "cn-beijing-c" ] } ], "Total": 1 } }
更多详情,请参见错误码。