TagDataAssets

更新时间:
复制 MD 格式

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

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

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

  • 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.