Retrieves metadata for a table, including its columns and indexes.
Operation description
This API can only be called for Database Instances where the Control Mode is set to Secure Collaboration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetMetaTableDetailInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Note
To obtain this ID, hover over your profile picture in the upper-right corner of the console. For more information, see View tenant information. |
123 |
| TableGuid |
string |
Yes |
The globally unique identifier (GUID) of the table in Data Management (DMS). Note
|
IDB_L_9032.db-test.yuyang_test |
| RealLoginUserUid |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E881CB2F-DE42-42E5-90EB-8B3173DCB9B9 |
| DetailInfo |
object |
The table details. |
|
| IndexList |
array<object> |
The index list. |
|
|
object |
|||
| IndexColumns |
array |
A list of indexed columns. |
|
|
string |
An indexed column. |
id |
|
| IndexName |
string |
The index name. |
PRIMARY |
| Unique |
boolean |
Indicates whether the index is unique.
|
false |
| IndexType |
string |
The index type. For example, |
Primary |
| IndexId |
string |
The index ID. |
123 |
| ColumnList |
array<object> |
The column list. |
|
|
object |
|||
| ColumnName |
string |
The column name. |
id |
| Description |
string |
The column description. |
test |
| DataScale |
integer |
The scale of the column. |
0 |
| DataPrecision |
integer |
The precision of the column. |
0 |
| ColumnType |
string |
The data type of the column. For example, |
bigint(20) unsigned |
| AutoIncrement |
boolean |
Indicates whether auto-increment is enabled for the column.
|
true |
| Position |
string |
The position of the column. |
1 |
| Nullable |
boolean |
Indicates whether the column is nullable.
|
false |
| ColumnId |
string |
The column ID. |
191234849 |
| DataLength |
integer |
The length of the column. |
0 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. |
true |
Examples
Success response
JSON format
{
"RequestId": "E881CB2F-DE42-42E5-90EB-8B3173DCB9B9",
"DetailInfo": {
"IndexList": [
{
"IndexColumns": [
"id"
],
"IndexName": "PRIMARY",
"Unique": false,
"IndexType": "Primary",
"IndexId": "123"
}
],
"ColumnList": [
{
"ColumnName": "id",
"Description": "test",
"DataScale": 0,
"DataPrecision": 0,
"ColumnType": "bigint(20) unsigned",
"AutoIncrement": true,
"Position": "1",
"Nullable": false,
"ColumnId": "191234849",
"DataLength": 0
}
]
},
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.