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

ListData

Get the Data List of a Dataset Version

GET /v1/datasets/{id}/data

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameTypeNecessary or NotDescription
commitstringTrue
segmentNamestring
limitintFalsedefault: 128 (one-time)
offsetFalsedefault: 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

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