List effective space groups
Returns the list of effective groups belonging to a specific space.
This operation requires any of the following authentication:
- as user who has
space_viewprivilege in the space ({id}), - as provider that supports the space (
{id}), - as user who has
oz_spaces_list_relationshipsadmin privilege.
Example cURL requests
Get space effective groups
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/spaces/$SPACE_ID/effective_groups
{
"groups": [
"f1c8b1a37aa7447b22eb65a742d40524",
"8e1cea0b379e3683257c32f896d55115"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Space Id. |
Request Examples
onezone-rest-cli listEffectiveSpaceGroups id=b752ceafabb662b4e5728b2ded25cdd1Responses
The list of effective group Ids that belong to a specific space.
| Property | Type & Description |
|---|---|
groups array of strings The list of group Ids. | |
Example
{
"groups": [
"1d24c36707d99197c6cd995810a43aca",
"6825604b0eb6a47b8b7a04b6369eb24d"
]
}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."
}
}