Queries the columns of a specified table in DataWorks Data Map.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListColumns |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TableId |
string |
Yes |
The table ID. You can obtain the ID from the response of the ListTables operation. For more information, see Concepts related to metadata entities. |
maxcompute-table:::project_name:[schema_name]:table_name |
| Name |
string |
No |
The name of the column. Fuzzy match is supported. |
test_table |
| Comment |
string |
No |
The comment on the column. Fuzzy match is supported. |
test comment |
| SortBy |
string |
No |
The field used for sorting. Default value: Position. Valid values:
Valid values:
|
Position |
| Order |
string |
No |
The sort order. Default value: Asc. Valid values:
Valid values:
|
Asc |
| PageNumber |
integer |
No |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| IncludeExtendedProperties |
boolean |
No |
Specifies whether to return extended properties. If you set this parameter to |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| PagingInfo |
object |
The pagination information. |
|
| Columns |
array |
The list of columns. |
|
| Column |
The column information. |
||
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries. |
1 |
| RequestId |
string |
The request ID. |
D1E2E5BC-xxxx-xxxx-xxxx-xxxxxx |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"PagingInfo": {
"Columns": [
{
"BusinessMetadata": {
"CustomAttributes": {
"key": [
"Zhang San"
]
},
"Description": "Business description of column 1"
},
"Comment": "Column 1",
"ForeignKey": false,
"Id": "maxcompute-column:::project_name:[schema_name]:table_name:column_name",
"Name": "column_name",
"PartitionKey": false,
"Position": 1,
"PrimaryKey": false,
"StatisticsInfos": {
"key": ""
},
"TableId": "maxcompute-table:::project_name:[schema_name]:table_name",
"TechnicalMetadata": {
"Parameters": {
"key": "keyword"
}
},
"Type": "bigint"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1
},
"RequestId": "D1E2E5BC-xxxx-xxxx-xxxx-xxxxxx",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.