Modify harvester configuration
Updates harvester GUI plugin configuration.
This operation requires harvester_update privilege
or oz_harvesters_update admin privilege.
Example cURL requests
Change harvester name
curl -u username:password -H "Content-type: application/json" \
-X PATCH -d '{"config": {}}' \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/config
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
Request body
New harvester config
| Property | Type & Description |
|---|---|
guiPluginConfig object | |
Request Examples
{
"config": {
"typeMapping": [
{
"id": 0,
"name": "Type 1"
},
{
"id": 1,
"name": "Type 1"
}
],
"externalHelpLink": "http://example.com/some_help_page",
"refreshDataTimeout": 1000
}
}Responses
Harvester configuration has been updated successfully.
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."
}
}