Get Dataset Labels
GET /v1/datasets/{id}/labels
Request Parameters
Path
Name | Necessary or Not | Description |
---|---|---|
id | True | Dataset ID |
Query
Name | Type | Necessary or Not | Description |
---|---|---|---|
limit | int | False | default: 128 (one-time) |
offset | int | False | default: 0 |
segmentName | string | True | Null value can be passed here. Null is also a partition that can be queried. |
Request Example
1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/policies?expired=60'/labels\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json'
Return Result common dataset
1# response status
2HttpStatus 200
3{
4 "segmentName": "",
5 "type": 0,
6 "labels": [
7 {
8 "remotePath": "",
9 "label": {
10
11 }
12 }
13 ],
14 "offset": 0,
15 "pageNumber": 0,
16 "pageSize": 1,
17 "pageCount": 1,
18 "recordSize": 1,
19 "totalCount": 1
20}
Fusion dataset
1# response status
2HttpStatus 200
3{
4 "type": 1,
5 "labels": [
6 {
7 "frameId": "",
8 "order": 1,
9 "frame": [
10 {
11 "sensorName": "",
12 "remotePath": "",
13 "timestamp":123112,
14 "label": {
15
16 }
17 },
18 {
19 "sensorname": "",
20 "remotePath": "",
21 "timestamp":123112,
22 "label": {
23
24 }
25 }
26 ]
27 }
28 ],
29 "offset": 0,
30 "pageNumber": 0,
31 "pageSize": 1,
32 "pageCount": 1,
33 "recordSize": 1,
34 "totalCount": 1
35}
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 |
InvalidParamsValue | Invalid parameter value | |
Unauthorized | Incorrect Accesskey | 401 |