ListDataAssets

Updated at:

Performs a paging query on DataWorks data assets associated with tags.

Operation description

You must purchase DataWorks Enterprise Edition or a later edition to use this feature.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Tags

array<object>

No

The list of tags associated with the data assets. This parameter is used to filter query results based on tags:

  • Multiple values are evaluated with an OR logical operator. For example, if you specify ["key1:v1", "key2:v1", "key3:v1"], the system queries data assets that contain at least one of the specified tags.

  • If this parameter is not specified or is left empty, no tag-based filtering is performed.

object

No

The key-value pair definition of the tag.

Key

string

No

The custom tag key entered by the user.

The key can be up to 64 characters in length. It cannot start with dw: and can contain only letters, digits, and the following special characters: -@#*<>|[]()+=&%$!~.

key

Value

string

No

The tag value.

value

DataAssetIds

array

No

The list of unique IDs of the data assets.

string

No

The unique ID of the data asset.

7000069357000

DataAssetType

string

No

The asset type of the data asset.

  • DataWorks table (ACS::DataWorks::Table)

  • DataWorks scheduled task (ACS::DataWorks::Task)

Valid values:

  • ACS::DataWorks::Task :

    DataWorks task.

  • ACS::DataWorks::Table :

    DataWorks table.

ACS::DataWorks::Task

ProjectId

integer

No

The ID of the workspace.

10000

PageNumber

integer

No

The page number. Pages start from 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 workspace environment to which the data asset belongs. Valid values:

  • Dev: development environment

  • Prod: production environment

Valid values:

  • Prod :

    Production environment.

  • Dev :

    Development environment.

Prod

AssetDomainId

integer

No

The ID of the asset domain.

1001

CategoryUuid

string

No

The ID of the asset category.

cate-xxxxxxxx

Name

string

No

The name of the asset. Fuzzy search by name is supported.

Asset domain name

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

0bc1ec92159376

PagingInfo

object

The pagination information.

TotalCount

integer

The total number of entries.

100

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

DataAssets

array<object>

The list of data assets.

array<object>

The schema definition of the data asset.

Id

string

The ID of the data asset.

7259557313

Name

string

The name of the data asset.

ali_cn_es_gfn

Type

string

The asset type of the data asset.

  • DataWorks table (ACS::DataWorks::Table)

  • DataWorks scheduled task (ACS::DataWorks::Task)

ACS::DataWorks::Task

EnvType

string

The workspace environment to which the data asset belongs. Valid values:

  • Dev: development environment

  • Prod: production environment

Prod

ProjectId

integer

The ID of the DataWorks workspace.

54275

DataAssetTagMappings

array<object>

The list of tags of the data asset.

object

The schema definition of the mapping relationship between the data asset and the tag.

Key

string

The tag key.

key

Value

string

The tag value.

value

TagSource

string

The source of the relationship between the data asset and the tag. Valid values:

  • System: generated by operations in the data asset governance system

  • UserDefined: manually defined by the user

UserDefined

Creator

string

The creator of the mapping relationship between the data asset and the tag.

12345

AutoTraceEnabled

boolean

Specifies whether automatic lineage backtracking is enabled.

false

DataAssetId

string

The ID of the data asset.

7259557313

AssetCategories

array<object>

The asset category information.

object

The asset category.

Id

string

The ID of the asset category.

cate-xxxxxx

Name

string

The name of the asset category.

Asset domain name

AssetDomainId

string

The ID of the asset domain.

1001

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"
          }
        ],
        "AssetCategories": [
          {
            "Id": "cate-xxxxxx",
            "Name": "Asset domain name",
            "AssetDomainId": "1001"
          }
        ]
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.