Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

List all handle service privileges

GET /handle_services/privileges

Returns list of all possible handle service privileges.

This endpoint does not require authentication.

Example cURL requests

Get list of all handle service privileges

curl https://$HOST/api/v3/onezone/handle_services/privileges

{
  "admin": [
    "handle_service_view",
    "handle_service_update",
    "handle_service_delete",
    "handle_service_register_handle",
    "handle_service_list_handles"
  ],
  "member": [
    "handle_service_view",
    "handle_service_register_handle"
  ]
}

Request Examples

Shell
onezone-rest-cli listHandleServicePrivileges

Responses

application/json
200

List of all handle service privileges

PropertyType & Description
admin
array of strings

A list of privileges in the handle service.

member
array of strings

A subset of handle service privileges suggested for handle service managers.

500

Internal server Error.

PropertyType & Description
error
object

Object describing an error.

id required
string

String identifying the error type. Does not change between error instances.

description required
string

Human readable error description. May contain information specific to given error instance.

details
object

Details about the error instance. The object schema is specific to each error type.

Example

application/json
{
  "error": {
    "id": "badValueString",
    "details": {
      "key": "name"
    },
    "description": "Bad value: provided \"name\" must be a string."
  }
}