Get the url of Data Resource
GET /v1/datasets/{id}/datas/urls
Request Parameters
Path
Name | Necessary or Not | Description |
---|---|---|
id | True | Dataset ID |
Query
Name | Type | Necessary or Not | Description |
---|---|---|---|
remotePath | string | True | data path |
segmentName | string | True | data 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
code | message | http status |
---|---|---|
AccessDenied | The request was rejected. You do not have the access to view the dataset | 403 |
ResourceNotExist | - dataset {id} does not exist - data{objectPath} does not exist | 404 |
Unauthorized | Incorrect Accesskey | 401 |