Queries ApsaraDB RDS for MySQL instances that are used to store the data of a database.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDrdsDbInstances | The operation that you want to perform. Set the value to DescribeDrdsDbInstances. |
DbName | String | Yes | dbname | The name of the database. |
DrdsInstanceId | String | Yes | drdshbga1138**** | The ID of the PolarDB-X 1.0 instance. |
PageNumber | Integer | No | 1 | The number of the page to return. |
PageSize | Integer | No | 30 | The number of entries to return on each page. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DbInstances | Array of DbInstance | Indicates information about the ApsaraDB RDS for MySQL instances that are used to store the data of the specified database. | |
DbInstance | |||
ConnectUrl | String | rm-m5**********82.mysql.rds.aliyuncs.com | Indicates the endpoint that is used to connect to an ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
DBInstanceId | String | rm-m5*********82 | Indicates the ID of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
DBInstanceStatus | String | 1 | Indicates the state of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:
|
DbInstType | String | RDS | Indicates the type of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. The value is set to RDS. |
DmInstanceId | String | dm-hbgau1zp**** | Indicates the ID of a resource. |
Engine | String | MySQL | Indicates the engine of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
EngineVersion | String | 5.7 | Indicates the engine version of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
ExpireTime | String | 1568620311000 | Indicates the point in time when the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database expires. |
NetworkType | String | VPC | Indicates the network type of the ApsaraDB RDS for MySQL instance. |
PayType | String | PostPaid | Indicates the billing method of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:
|
Port | Integer | 3306 | Indicates the port that is used to connect to the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
RdsInstType | String | Primary | Indicates whether the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database is a primary instance or a read-only instance.
|
ReadOnlyInstances | Array of ReadOnlyInstance | Indicates information about the read-only instances of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. | |
ReadOnlyInstance | |||
ConnectUrl | String | rm-m5*********82.mysql.rds.aliyuncs.com | Indicates the endpoint that is used to connect to the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
DBInstanceStatus | String | 1 | Indicates the state of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. Valid values:
|
DbInstType | String | RDS | Indicates the type of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. The value is set to RDS. |
DmInstanceId | String | dm-************* | Indicates the ID of a resource. |
Engine | String | MySQL | Indicates the engine of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
EngineVersion | String | 5.7 | Indicates the engine version of the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database. |
ExpireTime | String | 1603209690000 | Indicates the timestamp when the ApsaraDB RDS for MySQL instance that is used to store the data of the specified database expires. |
InstanceName | String | rm-m5xxxxxxxxx82 | Indicates the name of a read-only instance. |
NetworkType | String | VPC | Indicates the network type of the read-only instance. |
PayType | String | Postpaid | Indicates the billing method of the read-only instance.
|
Port | Integer | 3306 | Indicates the port that is used to connect to the read-only instance. |
RdsInstType | String | RDS | Indicates the type of the read-only instance. |
ReadWeight | Integer | 70 | Indicates the read weight of the read-only instance. |
RemainDays | Integer | 0 | Indicates the number of remaining days before the read-only instance expires. |
ReadWeight | Integer | 30 | Indicates the read weight of the read-only instance. |
RemainDays | Integer | 0 | Indicates the number of remaining days before a subscription instance expires. |
PageNumber | String | 1 | Indicates the page number of the returned page. |
PageSize | String | 10 | Indicates the number of entries returned per page. |
RequestId | String | 2F7F8080-9132-4279-85D0-B7E5C4305162 | Indicates the ID of the request. |
Success | Boolean | true | Indicates whether the request is successful. |
Total | String | 1 | Indicates the number of primary ApsaraDB RDS for MySQL instances. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeDrdsDbInstances
&DbName=dbname
&DrdsInstanceId=drdshbga1138****
&<Common request parameters>
Sample success responses
XML
format
<RequestId>2F7F8080-9132-4279-85D0-B7E5C4305162</RequestId>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<Total>1</Total>
<DbInstances>
<DbInstance>
<DbInstType>RDS</DbInstType>
<EngineVersion>5.7</EngineVersion>
<DBInstanceStatus>1</DBInstanceStatus>
<Port>3306</Port>
<PayType>PostPaid</PayType>
<ReadWeight>30</ReadWeight>
<ConnectUrl>rm-m5**********82.mysql.rds.aliyuncs.com</ConnectUrl>
<DBInstanceId>rm-m5*********82</DBInstanceId>
<NetworkType>VPC</NetworkType>
<RdsInstType>Primary</RdsInstType>
<DmInstanceId>dm-hbgau1zp****</DmInstanceId>
<ExpireTime>1568620311000</ExpireTime>
<Engine>MySQL</Engine>
<RemainDays>0</RemainDays>
<ReadOnlyInstances>
<ReadOnlyInstance>
<DbInstType>RDS</DbInstType>
<EngineVersion>5.7</EngineVersion>
<DBInstanceStatus>1</DBInstanceStatus>
<Port>3306</Port>
<PayType>Postpaid</PayType>
<InstanceName>rm-m5xxxxxxxxx82</InstanceName>
<ReadWeight>70</ReadWeight>
<ConnectUrl>rm-m5*********82.mysql.rds.aliyuncs.com</ConnectUrl>
<NetworkType>VPC</NetworkType>
<RdsInstType>RDS</RdsInstType>
<DmInstanceId>dm-*************</DmInstanceId>
<ExpireTime>1603209690000</ExpireTime>
<Engine>MySQL</Engine>
<RemainDays>0</RemainDays>
</ReadOnlyInstance>
</ReadOnlyInstances>
</DbInstance>
</DbInstances>
<Success>true</Success>
JSON
format
{"RequestId":"2F7F8080-9132-4279-85D0-B7E5C4305162","PageSize":"10","PageNumber":"1","Total":"1","DbInstances":{"DbInstance":[{"DbInstType":"RDS","EngineVersion":"5.7","DBInstanceStatus":"1","Port":"3306","PayType":"PostPaid","ReadWeight":"30","ConnectUrl":"rm-m5**********82.mysql.rds.aliyuncs.com","DBInstanceId":"rm-m5*********82","NetworkType":"VPC","RdsInstType":"Primary","DmInstanceId":"dm-hbgau1zp****","ExpireTime":"1568620311000","Engine":"MySQL","RemainDays":"0","ReadOnlyInstances":{"ReadOnlyInstance":[{"DbInstType":"RDS","EngineVersion":"5.7","DBInstanceStatus":"1","Port":"3306","PayType":"Postpaid","InstanceName":"rm-m5xxxxxxxxx82","ReadWeight":"70","ConnectUrl":"rm-m5*********82.mysql.rds.aliyuncs.com","NetworkType":"VPC","RdsInstType":"RDS","DmInstanceId":"dm-*************","ExpireTime":"1603209690000","Engine":"MySQL","RemainDays":"0"}]}}]},"Success":"true"}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
500 | InternalError | The request processing has failed due to some unknown error. | The error message returned because an internal error has occurred. |
For a list of error codes, visit the API Error Center.