Applications detection rules API - GET host detection headers
Gets the list of the host detection headers.
The request produces an application/json
payload.
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/config/v1/applicationDetectionRules/hostDetection |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/applicationDetectionRules/hostDetection | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/applicationDetectionRules/hostDetection |
Authentication
To execute this request, you need an access token with Read configuration (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
Code | Type | Description |
---|---|---|
200 | Application | Success |
Response body objects
The ApplicationDetectionRulesHostDetectionSettings
object
Configuration of host detection headers.
Element | Type | Description |
---|---|---|
metadata | Configuration | Metadata useful for debugging Can be |
hostDetectionHeaders | string[] | 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
Element | Type | Description |
---|---|---|
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. Can be |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. Can be |
clusterVersion | string | Dynatrace version. Can be |
Response body JSON model
{
"metadata": {
"configurationVersions": [
4,
2
],
"clusterVersion": "Mock version"
},
"hostDetectionHeaders": [
"X-Host",
"X-Forwarded-Host"
]
}