• Home
  • Dynatrace API
  • Configuration
  • OneAgent configuration
  • On a host
  • OneAgent configuration

OneAgent on a host API - OneAgent configuration

Gets OneAgent configuration on the specified host. You can later change the auto-update and monitoring configuration with one of the following requests:

  • PUT auto-update configuration
  • PUT monitoring configuration

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/config/v1/hosts/{id}
SaaShttps://{your-environment-id}.live.dynatrace.com/api/config/v1/hosts/{id}
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/hosts/{id}

Authentication

To execute this request, you need an access token with ReadConfig scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
idstring

The Dynatrace entity ID of the required host.

pathrequired

Response

Response codes

CodeTypeDescription
200HostConfig

Success

Response body objects

The HostConfig object

OneAgent configuration on a host.

ElementTypeDescription
idstring

The Dynatrace entity ID of the host where OneAgent is deployed.

monitoringConfigMonitoringConfig

Monitoring configuration of OneAgent.

autoUpdateConfigHostAutoUpdateConfig

Configuration of OneAgent auto-update.

techMonitoringConfigListTechMonitoringList

A list of technology monitoring configurations.

The MonitoringConfig object

Monitoring configuration of OneAgent.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

idstring

The Dynatrace entity ID of the host where OneAgent is deployed.

monitoringEnabledboolean

The monitoring is enabled (true) or disabled (false).

monitoringModestring

The monitoring mode for the host: full stack or infrastructure only.

The element can hold these values
  • CLOUD_INFRASTRUCTURE
  • FULL_STACK
autoInjectionEnabledboolean

Code modules will be injected automatically into monitored applications if this setting is enabled. This setting won't apply if auto-injection is disabled via oneagentctl (see https://dt-url.net/oneagentctl).

The ConfigurationMetadata object

Metadata useful for debugging

ElementTypeDescription
configurationVersionsinteger[]

A sorted list of the version numbers of the configuration.

currentConfigurationVersionsstring[]

A sorted list of version numbers of the configuration.

clusterVersionstring

Dynatrace version.

The HostAutoUpdateConfig object

Configuration of OneAgent auto-update.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

idstring

The Dynatrace entity ID of the host where OneAgent is deployed.

settingstring

The auto-update state of OneAgents on the host:

  • ENABLED: OneAgent automatically updates to the most recent version.
  • DISABLED: OneAgent updates to the version specified in the version field.
  • INHERITED: The setting from the host group (if the host is a member of a host group) or the environment-wide configuration (if the host doesn't belong to a host group) is used.
The element can hold these values
  • DISABLED
  • ENABLED
  • INHERITED
versionstring

The version to which the OneAgent must be updated.

Specify the version in the <major>.<minor>.<revision>.<timestamp> format (for example 1.191.0.20200326-161115). You can fetch the list of available versions with the GET available versions call.

If no suitable installer is found for the provided version or the value is set to null, OneAgent won't be updated.

Only applicable when the effectiveSetting value is DISABLED.

If the setting parameter is set to INHERITED but the version is still set, it will result in a one-time update: OneAgent will be updated to the specified version and the version value will be set to null. For further updates the parent setting will be used.

updateWindowsUpdateWindowsConfig

Basic information about all configured maintenance windows

effectiveSettingstring

The actual state of the auto-update on the host.

Applicable only if the setting parameter is set to INHERITED. In that case the value is taken from the host group or the environment-wide configuration.

The element can hold these values
  • ENABLED
  • DISABLED
effectiveVersionstring

The actual version to which the OneAgent must be updated.

Applicable only if the setting parameter is set to INHERITED and the version parameter is set to null. In that case the value is taken from the host group or the environment-wide configuration.

The UpdateWindowsConfig object

Basic information about all configured maintenance windows

ElementTypeDescription
windowsUpdateWindow[]

List of maintenance windows when the OneAgent update can start. If there is no value and update should be performed, the update will start at earliest convenience.

The UpdateWindow object

Basic information about one maintenance window

ElementTypeDescription
namestring

The name of maintenance window

idstring

Identifier of maintenance window

The TechMonitoringList object

A list of technology monitoring configurations.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

technologiesTechnology[]

A list of technology monitoring configurations.

The Technology object

Configuration of technology monitoring.

ElementTypeDescription
typestring

The type of the technology.

The element can hold these values
  • AIX_KERNEL_EXT
  • APACHE
  • CIM_V2
  • DOCKER
  • DOCKER_WIN
  • DOT_NET
  • DOT_NET_CORE
  • EXTENSIONS
  • EXTENSIONS_DS_GENERIC
  • EXTENSIONS_STATSD
  • GARDEN
  • GO
  • GO_STATIC
  • IBM_INTEGRATION_BUS
  • IIS
  • JAVA
  • LOG_ANALYTICS
  • NETTRACER
  • NETWORK
  • NGINX
  • NODE_JS
  • OPENTRACINGNATIVE
  • PHP
  • PHP_81
  • PHP_CGI
  • PHP_CLI
  • PHP_WIN
  • PROCESS
  • RUBY
  • SDK
  • VARNISH
  • Z_OS
monitoringEnabledboolean

The monitoring of the technology is enabled (true) or disabled (false).

scopestring

The validity of the configuration:

  • HOST: The setting is valid for OneAgent on host only. Other OneAgents, connected to the same Dynatrace server may have different setting.
  • ENVIRONMENT: The setting is valid for all OneAgents, connected to the Dynatrace server.
The element can hold these values
  • ENVIRONMENT
  • HOST

Response body JSON model

json
{ "id": "HOST-0123456789ABCDE", "monitoringConfig": { "metadata": { "configurationVersions": [ 4, 2 ], "currentConfigurationVersions": [ "1.0.4", "1.23" ], "clusterVersion": "1.192.1" }, "id": "HOST-0123456789ABCDE", "monitoringEnabled": true, "monitoringMode": "FULL_STACK", "autoInjectionEnabled": true }, "autoUpdateConfig": { "metadata": {}, "id": "HOST-0123456789ABCDE", "setting": "DISABLED", "version": "1.191.0.20200326-161115", "updateWindows": { "windows": [ { "name": "Daily maintenance window", "id": "vu9U3hXa3q0AAAABADdkeW5hdHJhY2Uuc2V0dGluZ3MuZGVwbG95bWVudC5tYW5h" } ] }, "effectiveSetting": "DISABLED", "effectiveVersion": "1.191.0.20200326-161115" }, "techMonitoringConfigList": { "metadata": {}, "technologies": [ { "type": "JAVA", "monitoringEnabled": true, "scope": "ENVIRONMENT" } ] } }