Get user handle service details
Returns the details of a specific handle service.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Get handle service details
curl -u username:password -X GET \
https://$ZONE_HOST/api/v3/onezone/user/handle_services/$HANDLE_SERVICE_ID
{
"name": "MyCommunity Handle service",
"proxyEndpoint": "https://localhost:17000/handle_proxy",
"serviceProperties": {
"allowTemplateOverride": false,
"doiEndpoint": "/doi",
"host": "https://mds.test.datacite.org",
"identifierTemplate": "{{space.name}}-{{space.guid}}",
"mediaEndpoint": "/media",
"metadataEndpoint": "/metadata",
"password": "pa$$word",
"prefix": 10.5072,
"type": "DOI",
"username": "alice"
}
}
Path parameters
| Parameter | Type & Description |
|---|---|
| hsid required | string Handle service Id. |
Request Examples
onezone-rest-cli getUserHandleService hsid=95b663a6467c72ab1256865efef9e387Responses
Returns the details of a specific handle service.
Handle service Id.
The user defined name of the service.
The endpoint of the Handle service proxy, i.e. a service which implements logic specific for particular Handle service.
serviceProperties object (HandleServiceProperties) An abstract type for Handle identifier services properties.
An abstract type for Handle identifier services properties.
The type of handle service.
The type of handle service.
creator object (Subject) Object representing a subject in the system, can be perceived as client (actor) identity.
Object representing a subject in the system, can be perceived as client (actor) identity.
Type of the subject
Id of the subject (null for nobody)
Timestamp in seconds (UNIX epoch), e.g. 1563819329.
Example
{
"handleServiceId": "cdca849d2b71bc7205f3eab686cf62fb",
"name": "MyCommunity Handle service",
"proxyEndpoint": "https://localhost:17000/handle_proxy",
"serviceProperties": {
"type": "DOI",
"host": "https://mds.test.datacite.org",
"doiEndpoint": "/doi",
"metadataEndpoint": "/metadata",
"mediaEndpoint": "/media",
"prefix": 10.5072,
"username": "alice",
"password": "pa$$word",
"identifierTemplate": "{{space.name}}-{{space.guid}}",
"allowTemplateOverride": false
},
"creator": {
"type": "user",
"id": "7434b256e71e1052e0d5e3e9da657ebf"
},
"creationTime": 1576152793
}Invalid request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}