Queries the topology of a table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetTableTopology |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TableGuid |
string |
Yes |
The GUID of the table in DMS. Note
|
IDB_L_308302.yuyang_test.test_ch |
| Tid |
integer |
No |
The tenant ID. Note
To find the tenant ID, hover over your profile picture in the upper-right corner of the DMS console, as described in Tenant information. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
F5ED6A40-F344-4C7D-A8F0-5685CA584CA7 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
| ErrorMessage |
string |
The error message. |
UnknownError |
| ErrorCode |
string |
The error code. |
UnknownError |
| TableTopology |
object |
The topology information. |
|
| TableGuid |
string |
The GUID of the table in DMS. |
IDB_L_308302.yuyang_test.test_ch |
| TableName |
string |
The table name. |
test_ch |
| TableTopologyInfoList |
array<object> |
The topology details of the table. |
|
|
object |
The topology details of the table. |
||
| TableNameList |
string |
The table names. Note
The table names are separated by commas (,). |
test_ch_0000,test_ch_0001,test_ch_0002,test_ch_0003,test_ch_0004,test_ch_0005 |
| TableNameExpr |
string |
The expression for logical table names. Description This parameter is not returned for physical tables. |
test_ch_[0000-0005] |
| TableCount |
integer |
The number of tables. |
6 |
| DbId |
integer |
The physical database ID. |
43215 |
| DbSearchName |
string |
The search name of the database. Note
Do not use this parameter in business logic. The value format may change in later versions. |
yuyang_test@localhost:3306[yuyang_test_dev] |
| InstanceId |
integer |
The instance ID of the physical database. |
4325325 |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
| InstanceResourceId |
string |
The resource ID of the instance. The value depends on the instance type specified by InstanceSource.
|
rm-xxx |
| InstanceSource |
string |
The type of the database instance. Valid values:
|
RDS |
| DbName |
string |
The database name. |
yuyang_test |
| DbType |
string |
The database engine. |
mysql |
| Logic |
boolean |
Indicates whether the table is a logical table. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "F5ED6A40-F344-4C7D-A8F0-5685CA584CA7",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"TableTopology": {
"TableGuid": "IDB_L_308302.yuyang_test.test_ch",
"TableName": "test_ch",
"TableTopologyInfoList": [
{
"TableNameList": "test_ch_0000,test_ch_0001,test_ch_0002,test_ch_0003,test_ch_0004,test_ch_0005",
"TableNameExpr": "test_ch_[0000-0005]",
"TableCount": 6,
"DbId": 43215,
"DbSearchName": "yuyang_test@localhost:3306[yuyang_test_dev]",
"InstanceId": 4325325,
"RegionId": "cn-hangzhou",
"InstanceResourceId": "rm-xxx",
"InstanceSource": "RDS",
"DbName": "yuyang_test",
"DbType": "mysql"
}
],
"Logic": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.