• Home
  • Dynatrace API
  • Configuration
  • RUM
  • Applications detection
  • GET host detection headers

Applications detection rules API - GET host detection headers

Gets the list of the host detection headers.

The request produces an application/json payload.

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

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

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200ApplicationDetectionRulesHostDetectionSettings

Success

Response body objects

The ApplicationDetectionRulesHostDetectionSettings object

Configuration of host detection headers.

ElementTypeDescription
metadataConfigurationMetadata

Metadata useful for debugging

hostDetectionHeadersstring[]

An ordered list of host detection headers.

Headers are evaluated from top to bottom; the first matching header applies.

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.

Response body JSON model

json
{ "metadata": { "configurationVersions": [ 4, 2 ], "clusterVersion": "Mock version" }, "hostDetectionHeaders": [ "X-Host", "X-Forwarded-Host" ] }
Related topics
  • Real User Monitoring

    Learn about Real User Monitoring, key performance metrics, mobile app monitoring, and more.

  • Define applications for Real User Monitoring

    Learn how to define your applications following the suggested, manual, application detection rules, or browser extension approach.