All Products
Search
Document Center

DataWorks:ListDatasets

Last Updated:Jan 12, 2026

Queries a list of datasets. Currently, DataWorks datasets and PAI datasets are supported.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:ListDatasetslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongNo

The DataWorks workspace ID.

251363
OriginstringNo

The dataset source. Valid values:

  • DataWorks
  • PAI
DataWorks
NamestringNo

The dataset name. Supports fuzzy search.

test_dataset
DataTypeListarrayNo

The data type. Multiple selections are allowed. Valid values:

  • COMMON
  • PIC
  • TEXT
  • TABLE
  • VIDEO
  • AUDIO
  • INDEX
stringNo

Data types

Valid values:

  • TABLE: Table.
  • VIDEO: Video.
  • COMMON: Common.
  • TEXT: Text.
  • PIC: Image.
  • INDEX: Index.
  • AUDIO: Audio.
COMMON
StorageTypeListarrayNo

The storage type. Multiple selections are allowed. Supported values:

  • OSS
  • NAS: General-purpose NAS file systems
  • EXTREMENAS: Extreme NAS file systems
  • DLF_LANCE: Data Lake Formation
  • CPFS: Cloud Parallel File Storage
  • BMCPFS: CPFS for Lingjun
  • MAXCOMPUTE: MaxCompute table
stringNo

The storage type.

NAS
CreatorIdstringNo

The creator ID.

12103XXX46492139
SortBystringNo

The sort field. Default: CreateTime.

Valid values:

  • ModifyTime: Modification time.
  • CreateTime: Creation time.
  • Name
CreateTime
OrderstringNo

The sort order. Default: Desc.

Valid values:

  • Asc: Ascending.
  • Desc: Descending.
Asc
PageNumberintegerNo

The page number. Default: 1.

1
PageSizeintegerNo

The number of entries per page. Default: 10. Maximum: 100.

10

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

RequestId

6A6CBE87-9F91-1323-B680-E7A7065XXXXX
Successboolean

Indicates whether the request was successful.

true
PagingInfoobject

The pagination information.

TotalCountlong

The total number of entries returned.

100
PageNumberinteger

The page number.

1
PageSizeinteger

The number of entries on this page.

10
Datasetsarray

The dataset list.

DatasetsDataset

The dataset object.

Examples

Sample success responses

JSONformat

{
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX\n",
  "Success": true,
  "PagingInfo": {
    "TotalCount": 100,
    "PageNumber": 1,
    "PageSize": 10,
    "Datasets": [
      {
        "Id": "dataworks-dataset:1gxxxqjx155usz3hrv",
        "Name": "test_dataset",
        "Comment": "",
        "ProjectId": 123456,
        "Origin": "DataWorks",
        "DataType": "COMMON",
        "StorageType": "OSS",
        "CreatorId": 210484359,
        "Readme": "## introduction",
        "LatestVersion": {
          "Id": "dataworks-datasetVersion:0gfxxxjx155usz3hrv:1",
          "DatasetId": "dataworks-datasetVersion:0gfxxxjx155usz3hrv",
          "Comment": "",
          "CreatorId": "17815XXX61016173",
          "VersionNumber": 1,
          "StorageType": "OSS",
          "Url": "oss://test-oss-bucket/test_dir/",
          "MountPath": "/mnt/data",
          "CreateTime": 1736756055000,
          "ModifyTime": 1736756055000,
          "Labels": [
            {
              "Key": "key1",
              "Value": "value1"
            }
          ],
          "ImportInfo": {
            "key": "None"
          }
        },
        "CreateTime": 1736756055000,
        "ModifyTime": 1736756055000,
        "Labels": [
          {
            "Key": "key1",
            "Value": "value1"
          }
        ]
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-12-04Add OperationView Change Details