Get effective child's group membership intermediaries
Returns the effective child's ({cid}) group membership intermediaries -
entities from which the child inherits access to the group ({id}).
Special keyword "self" in entity id indicates that the child ({cid})
has a direct access to the group ({id}).
This operation requires any of the following authentication:
- as user who is an effective member of the child group (
{cid}), - as user who has
group_viewprivilege in the group ({id}), - as user who has
oz_groups_viewadmin privilege.
Example cURL requests
Get effective child's group membership intermediaries
curl -u username:password -X GET \
https://$ZONE_HOST/api/v3/onezone/groups/$GROUP_ID/effective_children/$CHILD_GROUP_ID/membership
{
"intermediaries": [
{"type": "group", "id": "95527367966a95639e93a88718450b36"},
{"type": "group", "id": "2ef3de15fd49b3d6420f58428a6ad219"},
{"type": "group", "id": "self"}
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
| cid required | string Child Id. |
Request Examples
onezone-rest-cli getEffectiveChildGroupMembershipIntermediaries id=a4d3bc73aada63052310652d421609f1 cid=a5b469a2b0516b662a49da74d6d7d7bcResponses
The list of membership intermediaries.
intermediaries array of objects
The type of the intermediary.
The id of the intermediary.
Example
{
"intermediaries": [
{
"type": "group",
"id": "ef228f31345699bbfa74b030517965a2"
},
{
"type": "group",
"id": "b55b907444dd00aab8cbe8dcb82681fd"
},
{
"type": "space",
"id": "self"
}
]
}Invalid request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}