Get a List of Datasets
Return the list of datasets a user owns:
Request Path
GET /v1/datasets
Request Parameters
Query
Name | Type | Necessary or Not | Description |
---|---|---|---|
limit | int | False | default: 128 (one-time) |
offset | int | False | default: 0 |
name | string | False | dataset name, fuzzy query |
needTeamDataset | bool | False | The parameter is used by team users to query datasets, and its default value is false; false- user’s own datasets in team, true-all datasets belong to the team |
Request Example
1curl --location --request GET '{service}/v1/datasets?offset=0&limit=10&needTeamDataset=true'\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json'
Return Result
1# response
2HttpStatus 200
3# status
4{
5 "datasets": [
6 {
7 "id": "154e35ba-e895-4f09-969e-f8c9445efd2c",
8 "name": "my great data set",
9 "type": 0,
10 "updateTime": 1604977282,
11 "owner": ""
12 }
13 ],
14 "pageCount": 1,
15 "pageNumber": 1,
16 "pageSize": 1,
17 "totalCount": 1
18}
datasets
: list of datasets
Error Code
code | message | http status |
---|---|---|
InvalidParamsValue | The following requirements shall be met, otherwise, this error will be reported as-0< limit <= 128-offset >= 0 | 400 |
Unauthorized | Incorrect Accesskey | 401 |