Updates the configuration of OneAgent auto-update in the specified host group.
OneAgents installed on hosts of the host group use this configuration only when their setting is set to INHERITED.
The request consumes an application/json payload.
| PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/hostgroups/{id}/autoupdate |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/hostgroups/{id}/autoupdate |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | The Dynatrace entity ID of the required host group. | path | required |
| body | Host | The JSON body of the request. Contains OneAgent auto-update parameters. | body | optional |
HostGroupAutoUpdateConfig objectConfiguration of OneAgent auto-update in a host group.
Applies to all OneAgents installed on hosts of the host group if their setting parameter is set to INHERITED. Otherwise, the host level setting applies.
| Element | Type | Description | Required |
|---|---|---|---|
| effectiveSetting | string | The actual state of the auto-update on the hosts in a host group. Applicable only if the setting parameter is set to
| optional |
| effectiveVersion | string | The actual version to which the OneAgent must be updated. Applicable only if the setting parameter is set to | optional |
| id | string | The Dynatrace entity ID of the host group. | optional |
| metadata | Configuration | Metadata useful for debugging | optional |
| setting | string | The auto-update state of OneAgents in a host group:
OneAgents installed on hosts of the host group use this configuration only when their setting parameter is set to
| required |
| targetVersion | string | Version to update a OneAgent to when automatic updates are enabled. Supports relative versions Only applicable when the setting parameter is set to | optional |
| updateWindows | Update | Basic information about all configured update windows | optional |
| version | string | The version to which the OneAgent must be updated. Specify the version in the Only applicable when the setting parameter is set to | optional |
ConfigurationMetadata objectMetadata useful for debugging
| Element | Type | Description | Required |
|---|---|---|---|
| clusterVersion | string | Dynatrace version. | optional |
| configurationVersions | integer[] | A sorted list of the version numbers of the configuration. | optional |
| currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. | optional |
UpdateWindowsConfig objectBasic information about all configured update windows
| Element | Type | Description | Required |
|---|---|---|---|
| windows | Update | List of update windows when the OneAgent update can start. If there is no value and update should be performed, the update will start at earliest convenience. | required |
UpdateWindow objectBasic information about one maintenance window
| Element | Type | Description | Required |
|---|---|---|---|
| id | string | Identifier of maintenance window | required |
| name | string | The name of maintenance window | optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"effectiveSetting": "DISABLED","effectiveVersion": "1.181.0","id": "HOST_GROUP-0123456789ABCDE","metadata": {"clusterVersion": "1.192.1","configurationVersions": [4,2],"currentConfigurationVersions": ["1.0.4","1.23"]},"setting": "DISABLED","targetVersion": "latest","updateWindows": {"windows": [{"id": "vu9U3hXa3q0AAAABADdkeW5hdHJhY2Uuc2V0dGluZ3MuZGVwbG95bWVudC5tYW5h","name": "Daily maintenance window"}]},"version": "1.181.0"}
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. The configuration has been updated. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/hostgroups/{id}/autoupdate/validator |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/hostgroups/{id}/autoupdate/validator |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. The submitted configuration is valid. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |