graviti
PlatformMarketplaceSolutionsResourcesOpen DatasetsCommunityCompany
901
0
0
General
SDK
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
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