Onedata API Reference

REST API references for Onezone, Oneprovider, and Onepanel.

List all harvester privileges

GET /harvesters/privileges

Returns list of all possible harvester privileges.

This endpoint does not require authentication.

Example cURL requests

Get list of all harvester privileges

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

{
  "admin": [
    "harvester_view",
    "harvester_update",
    "harvester_delete",
    "harvester_view_privileges",
    "harvester_set_privileges",
    "harvester_add_user",
    "harvester_remove_user",
    "harvester_add_group",
    "harvester_remove_group",
    "harvester_add_space",
    "harvester_remove_space"
  ],
  "manager": [
    "harvester_view",
    "harvester_add_user",
    "harvester_remove_user",
    "harvester_add_group",
    "harvester_remove_group",
    "harvester_add_space",
    "harvester_remove_space"
  ],
  "member": [
    "harvester_view"
  ]
}

Request Examples

Shell
onezone-rest-cli listHarvesterPrivileges

Responses

application/json
200

List of all harvester privileges

PropertyType & Description
admin
array of strings

A list of privileges in the harvester.

manager
array of strings

A subset of harvester privileges suggested for harvester managers.

member
array of strings

A subset of harvester privileges suggested for harvester 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."
  }
}