OneAgent on a host API

The OneAgent on a host API enables you to check the configuration of OneAgent instances on your hosts.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/oneagents
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/oneagents

Authentication

To execute this request, you need the Access problem and event feed, metrics, and topology (DataExport) permission assigned to your API token. To learn how to obtain and use it, see Tokens and authentication.

Parameters

Parameter Type Description In Required
includeDetails boolean

Includes (true) or excludes (false) details which are queried from related entities.

Excluding details may make queries faster.

If not set, then true is used.

query optional
startTimestamp integer

The start timestamp of the requested timeframe, in milliseconds (UTC).

If not set, then 72 hours behind from now is used.

query optional
endTimestamp integer

The end timestamp of the requested timeframe, in milliseconds (UTC).

If not set, then the current timestamp is used.

The timeframe must not exceed 3 months (92 days).

query optional
relativeTime string

The relative timeframe, back from now.

If you need to specify relative timeframe that is not presented in the list of possible values, specify the startTimestamp (up to 92 days back from now) and leave endTimestamp and relativeTime empty.

query optional
tag array

Filters the resulting set of hosts by the specified tag. You can specify several tags in the following format: tag=tag1&tag=tag2. The host has to match all the specified tags.

In case of key-value tags, such as imported AWS or CloudFoundry tags, use the following format: tag=[context]key:value. For custom key-value tags, omit the context: tag=key:value.

query optional
entity array

Filters result to the specified hosts only.

To specify several hosts use the following format: entity=ID1&entity=ID2.

query optional
managementZoneId integer

Only return hosts that are part of the specified management zone.

Specify the management zone ID here.

query optional
managementZone string

Only return hosts that are part of the specified management zone.

Specify the management zone name here.

If the managementZoneId parameter is set, this parameter is ignored.

query optional
networkZoneId string

Filters the resulting set of hosts by the specified network zone.

Specify the Dynatrace entity ID of the required network zone. You can fetch the list of available network zones with the GET all network zones call.

query optional
hostGroupId string

Filters the resulting set of hosts by the specified host group.

Specify the Dynatrace entity ID of the required host group.

query optional
hostGroupName string

Filters the resulting set of hosts by the specified host group.

Specify the name of the required host group.

query optional
osType string

Filters the resulting set of hosts by the OS type.

query optional
availabilityState string

Filters the resulting set of hosts by the availability state of OneAgent.

  • MONITORED: Hosts where OneAgent is enabled and active.
  • UNMONITORED: Hosts where OneAgent is disabled and inactive.
  • CRASHED: Hosts where OneAgent has returned a crash status code.
  • LOST: Hosts where it is impossible to establish connection with OneAgent.
  • PRE_MONITORED: Hosts where OneAgent is being initialized for monitoring.
  • SHUTDOWN: Hosts where OneAgent is shutting down in a controlled process.
  • UNEXPECTED_SHUTDOWN: Hosts where OneAgent is shutting down in an uncontrolled process.
  • UNKNOWN: Hosts where the state of OneAgent is unknown.
query optional
monitoringType string

Filters the resulting set of hosts by monitoring mode of OneAgent deployed on the host.

query optional
agentVersionIs string

Filters the resulting set of hosts to those that have a certain OneAgent version deployed on the host.

Specify the comparison operator here.

query optional
agentVersionNumber string

Filters the resulting set of hosts to those that have a certain OneAgent version deployed on the host.

Specify the version in the <major>.<minor>.<revision> format, for example 1.182.0. You can fetch the list of available versions with the GET available versions call.

query optional
autoUpdateSetting string

Filters the resulting set of hosts by the actual state of the auto-update setting of deployed OneAgents.

query optional
updateStatus string

Filters the resulting set of hosts by the update status of OneAgent deployed on the host.

query optional
faultyVersion boolean

Filters the resulting set of hosts to those that run OneAgent version that is marked as faulty.

query optional
technologyModuleType string

Filters the resulting set of hosts to those that run the specified OneAgent code module.

If several code module filters are set, the code module has to match all the filters.

query optional
technologyModuleVersionIs string

Filters the resulting set of hosts to those that have a certain code module version deployed on the host.

Specify the comparison operator here.

If several code module filters are set, the code module has to match all the filters.

query optional
technologyModuleVersionNumber string

Filters the resulting set of hosts to those that have a certain code module version deployed on the host.

Specify the version in the <major>.<minor>.<revision> format, for example 1.182.0. You can fetch the list of available versions with the GET available versions call.

If several code module filters are set, the code module has to match all the filters.

query optional
technologyModuleFaultyVersion boolean

Filters the resulting set of hosts to those that run the code module version that is marked as faulty.

If several code module filters are set, the code module has to match all the filters.

query optional
pluginName string

Filters the resulting set of hosts to those that run the plugin with the specified name.

The CONTAINS operator is applied to the specified value.

If several plugin filters are set, the plugin has to match all the filters.

query optional
pluginVersionIs string

Filters the resulting set of hosts to those that have a certain plugin version deployed on the host.

Specify the comparison operator here.

If several plugin filters are set, the plugin has to match all the filters.

query optional
pluginVersionNumber string

Filters the resulting set of hosts to those that have a certain plugin version deployed on the host.

Specify the version in the <major>.<minor>.<revision> format, for example 1.182.0. You can fetch the list of available versions with the GET available versions call.

<minor> and <revision> parts of the version number are optional.

If several plugin filters are set, the plugin has to match all the filters.

query optional
pluginState string

Filters the resulting set of hosts to those that run the plugin with the specified state.

query optional
nextPageKey string

The cursor for the next page of results. You can find it in the nextPageKey field of the previous response.

The first page is always returned if you don't specify this cursor.

You must keep all other query parameters as they were in the first request to obtain subsequent pages.

query optional

Response

Response codes

Code Description
200

Success

Response body

The HostsListPage object

A list of hosts with OneAgent deployment information for each host.

Element Type Description
percentageOfEnvironmentSearched number

The progress of the environment search, in percent.

nextPageKey string

The cursor for the next page of results.

Has the value of null on the last page.

There might be another page of results even if the current page is empty.

hosts HostAgentInfo[]

A list of hosts with OneAgent deployment information for each host.

The HostAgentInfo object

OneAgent deployment on a host.

Element Type Description
hostInfo Host
faultyVersion boolean

OneAgent version is faulty (true) or not (false).

active boolean

OneAgent is active (true) or inactive (false).

configuredMonitoringMode string

Configured monitoring mode of OneAgent.

monitoringType string

The monitoring mode of OneAgent.

autoUpdateSetting string

The effective auto-update setting of OneAgent. For host with inherited configuration it is calculated from its parent's configuration

updateStatus string

The current update status of OneAgent.

availableVersions string[]

A list of versions OneAgent can be updated to.

configuredMonitoringEnabled boolean

Monitoring is enabled (true) or disabled (false) in the OneAgent configuration.

availabilityState string

The availability state of OneAgent.

currentActiveGateId integer

The ID of an ActiveGate to which OneAgent is connected.

currentNetworkZoneId string

The ID of the network zone that OneAgent is using.

modules ModuleInfo[]

A list of code modules deployed on the host.

plugins PluginInfo[]

A list of plugins deployed on the host.

The PluginInfo object

OneAgent plugin.

Element Type Description
pluginName string

The name of the plugin.

instances PluginInstance[]

A list of instances of the plugin.

The PluginInstance object

An instance of the OneAgent plugin.

Element Type Description
pluginVersion string

The version of the plugin.

state string

The state of the plugin instance.

The ModuleInfo object

OneAgent code module.

Element Type Description
moduleType string

The type of the code module.

instances ModuleInstance[]

A list of instances of the code module.

The ModuleInstance object

An instance of the OneAgent code module.

Element Type Description
instanceName string

The name of the instance.

moduleVersion string

The version of the code module.

faultyVersion boolean

The code module version is faulty (true) or not (false).

active boolean

The code module instance is active (true) or inactive (false).

The Host object

Information about the host.

Element Type Description
entityId string

The Dynatrace entity ID of the required entity.

displayName string

The name of the Dynatrace entity as displayed in the UI.

customizedName string

The customized name of the entity

discoveredName string

The discovered name of the entity

firstSeenTimestamp integer

The timestamp of when the entity was first detected, in UTC milliseconds

lastSeenTimestamp integer

The timestamp of when the entity was last detected, in UTC milliseconds

tags TagInfo[]

The list of entity tags.

toRelationships object
osType string
consumedHostUnits string
azureSku string
gceInstanceId string

The Google Compute Engine instance ID.

zosCPUModelNumber string

The CPU model number.

virtualCpus integer

The AIX instance virtual CPU count.

gceInstanceName string

The Google Compute Engine instance name.

openstackAvZone string
scaleSetName string
openstackComputeNodeName string
agentVersion AgentVersion
zosTotalPhysicalMemory integer

Memory assigned to the host (Terabyte).

ipAddresses string[]
cloudType string
hostGroup HostGroup
vmwareName string
publicHostName string
boshStemcellVersion string

The Cloud Foundry BOSH stemcell version.

awsInstanceId string
bitness string
beanstalkEnvironmentName string
gceMachineType string

The Google Compute Engine machine type.

cloudPlatformVendorVersion string

Defines the cloud platform vendor version.

boshInstanceName string

The Cloud Foundry BOSH instance name.

cpuCores integer
gcePublicIpAddresses string[]

The public IP addresses of the Google Compute Engine.

osArchitecture string
oneAgentCustomHostName string

The custom name defined in OneAgent config.

openstackVmName string
kubernetesCluster string

The kubernetes cluster the entity is in.

osVersion string
boshDeploymentId string

The Cloud Foundry BOSH deployment ID.

networkZoneId string

The ID of network zone the entity is in.

publicIp string
awsInstanceType string
userLevel string
zosVirtualization string

Type of virtualization on the mainframe.

autoScalingGroup string
softwareTechnologies TechnologyInfo[]
localIp string
azureSiteNames string[]
boshName string

The Cloud Foundry BOSH name.

zosTotalZiipProcessors integer

Number of assigned support processors for this LPAR.

gceProjectId string

The Google Compute Engine numeric project ID.

logicalCpus integer

The AIX instance logical CPU count.

zosTotalGeneralPurposeProcessors integer

Number of assigned processors for this LPAR.

azureComputeModeName string
azureHostNames string[]
boshAvailabilityZone string

The Cloud Foundry BOSH availability zone.

zosCPUSerialNumber string

The CPU serial number.

paasAgentVersions AgentVersion[]

The versions of the PaaS agents currently running on the entity.

kubernetesNode string

The kubernetes node the entity is in.

esxiHostName string
monitoringMode string
gceProject string

The Google Compute Engine project.

azureVmName string
paasType string
awsSecurityGroup string[]
paasMemoryLimit integer
openStackInstaceType string
openstackProjectName string
isMonitoringCandidate boolean
kubernetesLabels object

The kubernetes labels defined on the entity.

amiId string
hypervisorType string
managementZones EntityShortRepresentation[]

The management zones that the entity is part of.

openstackSecurityGroups string[]
logicalCpuCores integer
gcpZone string

The Google Cloud Platform Zone.

simultaneousMultithreading integer

The AIX instance simultaneous threads count.

localHostName string
boshInstanceId string

The Cloud Foundry BOSH instance ID.

awsNameTag string

The name inherited from AWS.

fromRelationships object

The EntityShortRepresentation object

The short representation of a Dynatrace entity.

Element Type Description
id string

The ID of the Dynatrace entity.

name string

The name of the Dynatrace entity.

description string

A short description of the Dynatrace entity.

The TechnologyInfo object

Element Type Description
type string
edition string
version string

The HostGroup object

Element Type Description
meId string

The Dynatrace entity ID of the host group.

name string

The name of the Dynatrace entity, displayed in the UI.

The AgentVersion object

Defines the version of the agent currently running on the entity.

Element Type Description
major integer

The major version number.

minor integer

The minor version number.

revision integer

The revision number.

timestamp string

A timestamp string: format "yyyymmdd-hhmmss

sourceRevision string

A string representation of the SVN revision number.

The TagInfo object

Tag of a Dynatrace entity.

Element Type Description
context string

The origin of the tag, such as AWS or Cloud Foundry.

Custom tags use the CONTEXTLESS value.

key string

The key of the tag.

Custom tags have the tag value here.

value string

The value of the tag.

Not applicable to custom tags.