Adds tags to data assets.
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 you want to add to data assets. |
|
|
object |
Yes |
The tag that you want to add to data assets, in the key:value structure. |
||
| Key |
string |
Yes |
The tag key. |
key |
| Value |
string |
No |
The tag value. |
value |
| DataAssetIds |
array |
Yes |
The data asset IDs. |
|
|
string |
Yes |
The data asset ID. |
7259557000 |
|
| DataAssetType |
string |
Yes |
The type of the data asset. Valid values:
|
ACS::DataWorks::Task |
| ProjectId |
integer |
No |
The DataWorks workspace ID. |
10000 |
| EnvType |
string |
No |
The environment of the workspace to which the data asset belongs. Valid values:
|
Prod |
| AutoTraceEnabled |
boolean |
No |
Specifies whether to enable lineage-based automatic backtracking. |
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0bc1ec92159376 |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "0bc1ec92159376",
"Success": "true"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.