Queries a list of datasets. Currently, DataWorks datasets and PAI datasets are supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListDatasets |
list |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
No |
The DataWorks workspace ID. |
251363 |
| Origin |
string |
No |
The dataset source. Valid values:
|
DataWorks |
| Name |
string |
No |
The dataset name. Supports fuzzy search. |
test_dataset |
| DataTypeList |
array |
No |
The data type. Multiple selections are allowed. Valid values:
|
|
|
string |
No |
Data types Valid values:
Valid values:
|
COMMON |
|
| StorageTypeList |
array |
No |
The storage type. Multiple selections are allowed. Supported values:
Valid values:
|
|
|
string |
No |
The storage type. |
NAS |
|
| CreatorId |
string |
No |
The creator ID. |
12103XXX46492139 |
| SortBy |
string |
No |
The sort field. Default: CreateTime. Valid values:
Valid values:
|
CreateTime |
| Order |
string |
No |
The sort order. Default: Desc. Valid values:
Valid values:
|
Asc |
| PageNumber |
integer |
No |
The page number. Default: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default: 10. Maximum: 100. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
RequestId |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| PagingInfo |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries returned. |
100 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries on this page. |
10 |
| Datasets |
array |
The dataset list. |
|
| Dataset |
The dataset object. |
Examples
Success response
JSON format
{
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX\n",
"Success": true,
"PagingInfo": {
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"Datasets": [
{
"Id": "",
"Name": "",
"Comment": "",
"ProjectId": 0,
"Origin": "",
"DataType": "",
"StorageType": "",
"CreatorId": "",
"Readme": "",
"LatestVersion": {
"Id": "dataworks-datasetVersion:0gfxxxjx155usz3hrv:1",
"DatasetId": "dataworks-datasetVersion:0gfxxxjx155usz3hrv",
"Comment": "Initial version",
"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": 0,
"ModifyTime": 0,
"Labels": [
{
"Key": "key1",
"Value": "value1"
}
]
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.