Get handle from handle service
Returns the details of a specific handle registered by handle service.
This operation requires handle_service_view privilege
or oz_handles_view admin privilege.
Example cURL requests
Get handle services handle
curl -u username:password -X GET \
https://$HOST/api/v3/handle_services/13c6bf68ed88dd01f396571f976b148d/handles/$HANDLE_ID
{
"handleId": "95b663a6467c72ab1256865efef9e387",
"handleServiceId": "97c27230017cd54c1220189e357322c4",
"resourceType": "Share",
"resourceId": "d6ee1aecf03b23f09756d6a49e435455",
"metadata": "<?xml version=\"1.0\"?>
<!DOCTYPE rdf:RDF SYSTEM \\"http://dublincore.org/2000/12/01-dcmes-xml-dtd.dtd\">
<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"
xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
<rdf:Description rdf:about=\"http://example.com/resouces/1\">
<dc:title>Example Resource</dc:title>
<dc:creator>John Doe</dc:creator>
<dc:publisher>MIT</dc:publisher>
<dc:date>2000-06-06</dc:date>
</rdf:Description>
</rdf:RDF>",
"timestamp": "1997-07-16T19:20"
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Handle service Id. |
| hid required | string Handle Id. |
Request Examples
onezone-rest-cli getHandleServiceHandle id=33f5e5925f6ec7ddf8f68516b2980fdb hid=f3322ec0d5557f9d94c89180f83b462fResponses
The list of handle identifiers (Onedata internal GUIDs).
| Property | Type & Description |
|---|---|
handle string Unique Id of the handle as registered in the handle service. | |
handleId string Unique Id of the handle in Onedata. | |
handleServiceId string Id of the service where the handle was registered. | |
resourceType string The type of resource to be registered. Enum: Share | |
resourceId string The Onedata GUID of the resource to which the handle should be resolved. | |
metadata string Dublin Core metadata for the resource encoded in XML. | |
timestamp string Handle registration timestamp. | |
Example
{
"handle": "10.5072/w95Zlng",
"handleId": "14208c48fe063d26fd45144b90977a56",
"resourceType": "Share",
"resourceId": "3d8cd457cef92ba08261bf1bb8d40438",
"handleServiceId": "f480c4889db90d93996ee89d0ee5f8f0",
"metadata": "<?xml version=\\\"1.0\\\"?> <!DOCTYPE rdf:RDF SYSTEM \\\\\"http://dublincore.org/2000/12/01-dcmes-xml-dtd.dtd\\\"> <rdf:RDF xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"\n xmlns:dc=\\\"http://purl.org/dc/elements/1.1/\\\">\n <rdf:Description rdf:about=\\\"http://example.com/resouces/1\\\">\n <dc:title>Example Resource</dc:title>\n <dc:creator>John Doe</dc:creator>\n <dc:publisher>MIT</dc:publisher>\n <dc:date>2000-06-06</dc:date>\n </rdf:Description>\n</rdf:RDF>\n",
"timestamp": "2016-07-16T18:20:30.450Z"
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}