Queries a list of datasets. You can filter the list by specifying a prefix for the dataset name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:ListDatasets |
list |
*Dataset
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The name of the project. For more information about how to obtain the project name, see Create a project. |
test-project |
| MaxResults |
integer |
No |
The maximum number of datasets to return. Valid values: 0 to 200. If you do not specify this parameter or set it to 0, the default value 100 is used. |
1 |
| NextToken |
string |
No |
The pagination token. If the total number of datasets exceeds the value of MaxResults, this token is used for pagination. The list of dataset information is returned in lexicographical order starting from NextToken. Note
When you call this operation for the first time in a query, leave this parameter empty. |
12345678:immtest:dataset002 |
| Prefix |
string |
No |
The prefix of the dataset name. |
dataset |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| Datasets |
array |
The list of dataset information. |
|
| Dataset |
The dataset. Note
|
||
| NextToken |
string |
The pagination token. If the total number of datasets exceeds the value of MaxResults, this token is used for pagination. This parameter is returned only when not all matching datasets are returned. Pass this value as NextToken in the next request to return the remaining datasets. |
12345678:immtest:dataset002 |
| RequestId |
string |
The request ID. |
FEEDE356-C928-4A36-951A-6EB5A592**** |
Examples
Success response
JSON format
{
"Datasets": [
{
"ProjectName": "immtest",
"DatasetName": "dataset001",
"TemplateId": "DefaultId",
"CreateTime": "2021-06-29T14:50:13.011643661+08:00",
"UpdateTime": "2021-06-29T14:50:13.011643661+08:00",
"Description": "测试数据集",
"DatasetMaxBindCount": 10,
"DatasetMaxFileCount": 100000000,
"DatasetMaxEntityCount": 10000000000,
"DatasetMaxRelationCount": 100000000000,
"DatasetMaxTotalFileSize": 90000000000000000,
"BindCount": 2,
"FileCount": 10,
"TotalFileSize": 100000,
"WorkflowParameters": [
{
"Name": "name",
"Value": "value"
}
]
}
],
"NextToken": "12345678:immtest:dataset002",
"RequestId": "FEEDE356-C928-4A36-951A-6EB5A592****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.