Queries the information about DataWorks data assets to which tags are added by page.
Operation description
This API operation is available only for DataWorks Enterprise Edition or a more advanced edition.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tags |
array<object> |
Yes |
The tags that are added to data assets. This parameter specifies a filter condition.
|
|
|
object |
Yes |
The tag that is added to the data asset. The tag is specified in the key:value structure. |
||
| Key |
string |
Yes |
The tag key. The tag key can be up to 64 characters in length and can contain letters, digits, and the following characters: |
key |
| Value |
string |
No |
The tag value. |
value |
| DataAssetIds |
array |
No |
The data asset IDs. |
|
|
string |
No |
The data asset ID. |
7000069357000 |
|
| DataAssetType |
string |
No |
The type of the data asset. Valid values:
|
ACS::DataWorks::Task |
| ProjectId |
integer |
No |
The DataWorks workspace ID. |
10000 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| EnvType |
string |
No |
The environment of the workspace to which the data asset belongs. Valid values:
|
Prod |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0bc1ec92159376 |
| PagingInfo |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries returned. |
100 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| DataAssets |
array<object> |
The data assets. |
|
|
array<object> |
The data asset. |
||
| Id |
string |
The data asset ID. |
7259557313 |
| Name |
string |
The name of the data asset. |
ali_cn_es_gfn |
| Type |
string |
The type of the data asset. Valid values:
|
ACS::DataWorks::Task |
| EnvType |
string |
The environment of the workspace to which the data asset belongs. Valid values:
|
Prod |
| ProjectId |
integer |
The DataWorks workspace ID. |
54275 |
| DataAssetTagMappings |
array<object> |
The mappings between data assets and tags. |
|
|
object |
The mapping between the data asset and the tag. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| TagSource |
string |
The way in which the mapping between the data asset and the tag is created. Valid values:
|
UserDefined |
| Creator |
string |
The creator of the mapping between the data asset and the tag. |
12345 |
| AutoTraceEnabled |
boolean |
Indicates whether the lineage-based automatic backtrack feature is enabled for the mapping. |
false |
| DataAssetId |
string |
The data asset ID. |
7259557313 |
Examples
Success response
JSON format
{
"RequestId": "0bc1ec92159376",
"PagingInfo": {
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"DataAssets": [
{
"Id": "7259557313",
"Name": "ali_cn_es_gfn",
"Type": "ACS::DataWorks::Task",
"EnvType": "Prod",
"ProjectId": 54275,
"DataAssetTagMappings": [
{
"Key": "key",
"Value": "value",
"TagSource": "UserDefined",
"Creator": "12345",
"AutoTraceEnabled": false,
"DataAssetId": "7259557313"
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.