Get the Data List of a Dataset Version
GET /v1/datasets/{id}/data
Request Parameters
Path
Name | Necessary or Not | Description |
---|---|---|
id | True | Dataset ID |
Query
Name | Type | Necessary or Not | Description |
---|---|---|---|
commit | string | True | |
segmentName | string | ||
limit | int | False | default: 128 (one-time) |
offset | False | default: 0 |
Request Example
1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/policies?expired=60'/data\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json'
Return Result
Common dataset
1{
2 "type": 0,
3 "data": [{"remotePath": ""},{}],
4 "offset": 0,
5 "pageNumber": 0,
6 "pageSize": 1,
7 "pageCount": 1,
8 "recordSize": 1,
9 "totalCount": 1
10}
Fusion dataset
1{
2 "type": 1,
3 "data": [
4 {
5 "frameId": "",
6 "frameIndex": 1,
7 "frame": [
8 {
9 "sensorname": "",
10 "remotePath": "",
11 "timestamp":123112,
12 },
13 {
14 "sensorname": "",
15 "remotePath": "",
16 "timestamp":123112,
17 }
18 ]
19 }
20 ],
21 "offset": 0,
22 "pageNumber": 0,
23 "pageSize": 1,
24 "pageCount": 1,
25 "recordSize": 1,
26 "totalCount": 1
27}
Error Code
code | message | http status |
---|---|---|
AccessDenied | The request was rejected. You do not have the access to view the dataset | 403 |
ResourceNotExist | Dataset {id} does not exist | 404 |
Unauthorized | Incorrect Accesskey | 401 |