Queries sharding keys.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeExpandLogicTableInfoList |
The operation that you want to perform. Set the value to DescribeExpandLogicTableInfoList. |
| DbName | String | Yes | drds_flashback |
The name of the database. |
| DrdsInstanceId | String | Yes | drds************ |
The ID of the PolarDB-X 1.0 instance. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| Data | Array of data |
Indicates the result that is returned. |
|
| data | |||
| ShardDbKey | String | id |
Indicates the database sharding key. |
| ShardTbKey | String | address |
Indicates the table sharding key. |
| TableName | String | employee_split2 |
Indicates the name of the table. |
| RequestId | String | 0B6B7BDC-575D-4A77-A4F8-24B7EF****** |
Indicates the ID of the request. |
| Success | Boolean | true |
Indicates whether the request is successful. |
Examples
Sample requests
http(s)://drds-api.cn-hangzhou.aliyuncs.com/?Action=DescribeExpandLogicTableInfoList
&DbName=drds_flashback
&DrdsInstanceId=drds************
&<Common request parameters>
Sample success responses
XML format
<DescribeExpandLogicTableInfoListReponse>
<RequestId>0B6B7BDC-575D-4A77-A4F8-24B7EF******</RequestId>
<Data>
<data>
<TableName>employee_split2</TableName>
<ShardTbKey>address</ShardTbKey>
<ShardDbKey>id</ShardDbKey>
</data>
</Data>
<Success>true</Success>
</DescribeExpandLogicTableInfoListReponse>
JSON format
{"RequestId":"0B6B7BDC-575D-4A77-A4F8-24B7EF******","Data":{"data":[{"TableName":"employee_split2","ShardTbKey":"address","ShardDbKey":"id"}]},"Success":"true"}
Error codes
For a list of error codes, visit the API Error Center.