请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
DbName | String | 是 | dbname | DRDS 数据库名称 |
DrdsInstanceId | String | 是 | drdsInstanceId | DRDS 实例 ID |
AccessKeyId | String | 否 | ASU678UDIN9HdlahDHH | Access Key |
PageNumber | Integer | 否 | 1 | 页码 |
PageSize | Integer | 否 | 30 | 每页数量 |
返回数据
名称 | 类型 | 示例值 | 描述 |
DbInstances | DRDS 数据库下的存储实例列表 |
||
PageNumber | String | 1 | 页码 |
PageSize | String | 10 | 该页大小 |
RequestId | String | 2F7F8080-9132-4279-85D0-B7E5C4305162 | 请求 ID |
Success | Boolean | true | 是否成功 |
Total | String | 1 | RDS 主实例总数 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDrdsDbInstances &DbName=dbname &DrdsInstanceId=drdsInstanceId &<公共请求参数>
正常返回示例
XML
格式
<DescribeDrdsDbInstances> <PageSize>10</PageSize> <RequestId>658B6F25-442A-4996-8AAE-F77DAFBC9BAA</RequestId> <PageNumber>1</PageNumber> <Total>1</Total> <DbInstances> <DbInstance> <DbInstType>RDS</DbInstType> <ReadOnlyInstances></ReadOnlyInstances> <EngineVersion>5.7</EngineVersion> <DBInstanceStatus>1</DBInstanceStatus> <Port>3306</Port> <PayType>Postpaid</PayType> <ReadWeight>100</ReadWeight> <ConnectUrl>rm-m5xxxxxxxxx82.mysql.rds.aliyuncs.com</ConnectUrl> <DBInstanceId>rm-m5xxxxxxxxx82</DBInstanceId> <NetworkType>VPC</NetworkType> <RdsInstType>Primary</RdsInstType> <ExpireTime></ExpireTime> <RemainDays>0</RemainDays> <Engine>MySQL</Engine> </DbInstance> </DbInstances> <Success>true</Success> </DescribeDrdsDbInstances>
JSON
格式
{ "PageNumber":1, "PageSize":10, "RequestId":"658B6F25-442A-4996-8AAE-F77DAFBC9BAA", "DbInstances":{ "DbInstance":[ { "RemainDays":0, "ReadOnlyInstances":{ "ReadOnlyInstance":[] }, "DBInstanceId":"rm-m5xxxxxxxxx82", "ReadWeight":100, "RdsInstType":"Primary", "DbInstType":"RDS", "ConnectUrl":"rm-m5xxxxxxxxx82.mysql.rds.aliyuncs.com", "Engine":"MySQL", "NetworkType":"VPC", "Port":3306, "ExpireTime":"", "EngineVersion":"5.7", "DBInstanceStatus":1, "PayType":"Postpaid" } ] }, "Success":true, "Total":1 }
错误码
访问错误中心查看更多错误码。