List effective group's space privileges
Returns the list of effective group's ({gid}) privileges in a space ({id}).
Effective privileges are a sum of group's privileges and privileges inherited from its parent group memberships.
This operation requires any of the following authentication:
- as user who has
space_view_privilegesprivilege in the space ({id}), - as provider that supports the space (
{id}), - as user who has
oz_groups_view_privilegesadmin privilege.
Example cURL requests
List effective groups's privileges in a space
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/spaces/$SPACE_ID/effective_groups/$GROUP_ID/privileges
{
"privileges": [
"space_view",
"space_update",
"space_delete",
"space_view_privileges",
"space_set_privileges"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Space Id. |
| gid required | string Group Id. |
Request Examples
onezone-rest-cli listEffectiveGroupSpacePrivileges id=b752ceafabb662b4e5728b2ded25cdd1 gid=c44d4ab910245342be5a0a89fdff095eResponses
The list of effective group's privileges in the space.
| Property | Type & Description |
|---|---|
privileges array of strings A list of privileges in the space. | |
Example
{
"privileges": [
"space_view",
"space_update",
"space_delete",
"space_view_privileges",
"space_set_privileges"
]
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}