List group's harvesters
Returns the list of harvesters to which the group has access.
This operation requires group_view privilege.
For administrator who does not belong to this group
oz_groups_list_relationships privilege is required.
Example cURL requests
Get group harvesters
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/groups/$GROUP_ID/harvesters
{
"harvesters": [
"GVC8lKEasj4q253sptVqF8HwUpk8jrwxKOe45uzLFX2"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
Request Examples
onezone-rest-cli listGroupHarvesters id=a4d3bc73aada63052310652d421609f1Responses
The list of harvester Ids for which the group has access.
| Property | Type & Description |
|---|---|
harvesters array of strings The list of harvester Ids. | |
Example
{
"harvesters": [
"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."
}
}