graviti
产品公开数据集应用市场解决方案知识库关于我们
2.2K
0
67
TAO
概要
讨论
代码
活动
非数据集成员无法通过开发者工具直接使用该数据集,您可通过Fork后获取和使用数据
Fork数据集

ListLabel

Get Dataset Labels

GET /v1/datasets/{id}/labels

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameTypeNecessary or NotDescription
limitintFalsedefault: 128 (one-time)
offsetintFalsedefault: 0
segmentNamestringTrueNull 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

codemessagehttp status
AccessDeniedThe request was rejected. You do not have the access to view the dataset403
ResourceNotExistDataset {id} does not exist404
InvalidParamsValueInvalid parameter value
UnauthorizedIncorrect Accesskey401