Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

List all cluster privileges

GET /clusters/privileges

Returns list of all possible cluster privileges.

This endpoint does not require authentication.

Example cURL requests

Get list of all cluster privileges

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

{
  "admin": [
    "cluster_view",
    "cluster_update",
    "cluster_delete",
    "cluster_view_privileges",
    "cluster_set_privileges",
    "cluster_add_user",
    "cluster_remove_user",
    "cluster_add_group",
    "cluster_remove_group"
  ],
  "manager": [
    "cluster_view",
    "cluster_add_user",
    "cluster_remove_user",
    "cluster_add_group",
    "cluster_remove_group"
  ],
  "member": [
    "cluster_view"
  ]
}

Request Examples

Shell
onezone-rest-cli listClusterPrivileges

Responses

application/json
200

List of all cluster privileges

PropertyType & Description
admin
array of strings

A list of privileges in the cluster.

manager
array of strings

A subset of cluster privileges suggested for cluster managers.

member
array of strings

A subset of cluster privileges suggested for cluster members.

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."
  }
}