Get effective group's cluster membership intermediaries
Returns the effective group's ({gid}) cluster membership intermediaries -
entities from which the group inherits membership in the cluster ({id}).
Special keyword "self" in entity id indicates that the group ({gid})
has a direct membership in the cluster ({id}).
This operation requires any of the following authentication:
- as user who is an effective member of the group (
{gid}), - as user who has
cluster_viewprivilege in the cluster ({id}), - as user who has
oz_clusters_viewadmin privilege.
Example cURL requests
Get effective group's cluster membership intermediaries
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/clusters/$CLUSTER_ID/effective_groups/$GROUP_ID/membership
{
"intermediaries": [
{"type": "group", "id": "95527367966a95639e93a88718450b36"},
{"type": "group", "id": "2ef3de15fd49b3d6420f58428a6ad219"},
{"type": "cluster", "id": "self"}
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Cluster Id. |
| gid required | string Group Id. |
Request Examples
onezone-rest-cli getEffectiveGroupClusterMembershipIntermediaries id=b752ceafabb662b4e5728b2ded25cdd1 gid=a5b469a2b0516b662a49da74d6d7d7bcResponses
The list of membership intermediaries.
| Property | Type & Description | ||||
|---|---|---|---|---|---|
intermediaries array of objects
| |||||
Example
{
"intermediaries": [
{
"type": "group",
"id": "ef228f31345699bbfa74b030517965a2"
},
{
"type": "group",
"id": "b55b907444dd00aab8cbe8dcb82681fd"
},
{
"type": "space",
"id": "self"
}
]
}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."
}
}