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