Get group of provider
Returns the details of an effective group of a specific provider.
This operation requires any of the following authentication:
- as the subject provider (
{id}), - as user who has
cluster_viewprivilege in the cluster corresponding to the subject provider, - as user who has
oz_groups_viewadmin privilege.
Example cURL requests
Get group of a provider
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/providers/$PROVIDER_ID/groups/$GROUP_ID
{
"groupId":"051f1a51d80c664b0d9528d81ee56a93",
"name":"new_group",
"type":"team"
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Provider Id. |
| gid required | string Group Id. |
Request Examples
onezone-rest-cli getEffectiveProviderGroup id=1f290dd428ff09aab8ca014d24154a35 gid=051f1a51d80c664b0d9528d81ee56a93Responses
The group Id.
| Property | Type & Description |
|---|---|
groupId string Unique group Id. | |
name string The name of the group. | |
type string The type of the group. Enum: organizationunitteamrole_holders | |
Example
{
"groupId": "a4d3bc73aada63052310652d421609f1",
"name": "Test group",
"type": "team"
}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."
}
}