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

GetDataUri

Get the url of Data Resource

GET /v1/datasets/{id}/datas/urls

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameTypeNecessary or NotDescription
remotePathstringTruedata path
segmentNamestringTruedata partition

Request Example

1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/datas/urls?remotePath=graviti.jpg&segmentName=graviti' \
2--header 'x-token: {your_accesskey}'

Return Result

1# response status
2HttpStatus 200
3# response result
4{
5    "url": "www.graviti.cn/graviti.jpg"
6}

Error Code

codemessagehttp status
AccessDeniedThe request was rejected. You do not have the access to view the dataset403
ResourceNotExist- dataset {id} does not exist - data{objectPath} does not exist404
UnauthorizedIncorrect Accesskey401