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 listClusterPrivilegesResponses
application/json
200
List of all cluster privileges
| Property | Type & 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.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
application/json
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}