graviti
ProductOpen DatasetsApps MarketSolutionsResourcesCompany
1.4K
0
0
MNIST
General
Discussion
Code
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
Fork

ListSegment

Get Segment list of a Dataset

GET /v1/datasets/{id}/segment

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameTypeNecessary or NotDescription
commitstringFalseCommit Id or Tag of Commit
limitintFalsedefault: 128 (one-time)
offsetintFalsedefault: 0

Request Example

1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/segment?commit='\
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json' 

Return Result common dataset

1# response status
2HttpStatus 200
3{
4    "segments": ["graviti"],
5    "offset": 0,
6    "pageNumber": 0,
7    "pageSize": 1,
8    "pageCount": 1,
9    "recordSize": 1,
10    "totalCount": 1
11}

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 value400
UnauthorizedIncorrect Accesskey401