TagDataAssets

Updated at:

Adds tags to data assets.

Operation description

Available only for DataWorks Enterprise Edition or higher.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Tags

array<object>

Yes

The tags to add to data assets.

object

Yes

A tag to add to data assets, in key:value format.

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::Table

  • ACS::DataWorks::Task

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:

  • Dev: development environment

  • Prod: production environment

Prod

AutoTraceEnabled

boolean

No

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

Whether the request was successful. Valid values:

  • true

  • false

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.