Create group in harvester
Creates a new group belonging to the harvester of {id}.
This operation requires harvester_add_group privilege.
For administrator who does not belong to this group
oz_harvesters_add_relationships and oz_groups_create
privileges are required.
Example cURL requests
Create group in harvester
curl -u username:password -X POST \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/groups
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
Request body
Group properties.
| Property | Type & Description |
|---|---|
name string The name of the group. | |
type string The type of the group. If not specified, Enum: organizationunitteamrole_holders | |
Request Examples
{
"name": "Test group",
"type": "team"
}Responses
URI of the added group in form https://$HOST/api/onezone/v3/harvesters/{id}/groups/{gid} is returned in the response Location header.
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."
}
}