Queries the columns of a table.
Operation description
Available only for database instances in Security Collaboration control mode.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListColumns |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The tenant ID. Call GetUserActiveTenant to obtain this ID. |
3*** |
| TableId |
string |
Yes |
The table ID. Call ListTables to obtain this ID. |
39281**** |
| Logic |
boolean |
No |
Whether the database is a logical database. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0AD9AC55-5873-474A-9F33-4285806A3619 |
| ErrorCode |
string |
The error code. |
UnknownError |
| ColumnList |
object |
||
| Column |
array<object> |
Column details. |
|
|
object |
Details of each column. |
||
| ColumnType |
string |
Column data type. |
varchar |
| AutoIncrement |
boolean |
Whether the column auto-increments. Valid values:
|
false |
| ColumnId |
string |
The column ID. |
62589**** |
| DefaultValue |
string |
Default value of the column. |
def_value |
| Sensitive |
boolean |
Whether the column is sensitive. Valid values:
|
false |
| ColumnName |
string |
The name of the column. |
name |
| SecurityLevel |
string |
Column security level. Valid values:
|
INNER |
| Description |
string |
Column description. |
test |
| DataPrecision |
integer |
Precision (number of valid digits). |
0 |
| DataScale |
integer |
Scale (number of decimal places). |
0 |
| FunctionType |
string |
Masking algorithm type. Valid values:
|
DEFAULT |
| Nullable |
boolean |
Whether the column allows null values. Valid values:
|
false |
| DataLength |
integer |
Field length. |
4 |
| ErrorMessage |
string |
The error message. |
UnknownError |
| Success |
boolean |
Whether the request succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "0AD9AC55-5873-474A-9F33-4285806A3619",
"ErrorCode": "UnknownError",
"ColumnList": {
"Column": [
{
"ColumnType": "varchar",
"AutoIncrement": false,
"ColumnId": "62589****",
"DefaultValue": "def_value",
"Sensitive": false,
"ColumnName": "name",
"SecurityLevel": "INNER",
"Description": "test",
"DataPrecision": 0,
"DataScale": 0,
"FunctionType": "DEFAULT",
"Nullable": false,
"DataLength": 4
}
]
},
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.