Shows the properties of the specified service detection rule for opaque and external web services.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/detectionRules/OPAQUE_AND_EXTERNAL_WEB_SERVICE/{id} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/detectionRules/OPAQUE_AND_EXTERNAL_WEB_SERVICE/{id} |
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the required service detection rule. | path | required |
Refer to JSON models to find all JSON models that depend on the type of the model.
Code | Type | Description |
---|---|---|
200 | Opaque | Success. The response contains properties of the specified rule. |
404 | - | Failed. The rule with the specified ID doesn't exist. |
OpaqueAndExternalWebServiceRule
objectThe service detection rule of the OPAQUE_AND_EXTERNAL_WEB_SERVICE
type
Element | Type | Description |
---|---|---|
conditions | Conditions | A list of conditions of the rule. If several conditions are specified, the AND logic applies. |
description | string | A short description of the rule. |
detectAsWebRequestService | boolean | Detect the matching requests as web services ( Setting this field to Default is |
enabled | boolean | The rule is enabled( |
id | string | The ID of the service detection rule. |
managementZones | string[] | The management zone (specified by the ID) of the process group for which this service detection rule should be created. You can specify only 1 management zone here. |
metadata | Configuration | Metadata useful for debugging |
name | string | The name of the rule. |
order | string | The order of the rule in the rules list. The rules are evaluated from top to bottom. The first matching rule applies. |
port | Port | The contribution to the service ID calculation from the port, where the web request has been detected. |
type | string | The type of the service detection rule. |
urlPath | Url | The contribution from the URL, where the web request has been detected, into service ID calculation. You have two mutually exclusive options:
|
ConditionsOpaqueAndExternalWebServiceAttributeTypeDto
objectA condition of the service detection rule.
Element | Type | Description |
---|---|---|
attributeType | string | The type of the attribute to be checked.
|
compareOperations | Compare | A list of conditions for the rule. If several conditions are specified, the AND logic applies. |
CompareOperation
objectThe condition of the rule.
The actual set of fields depends on the type of the condition. Find the list of actual objects in the description of the type field or see Service detection API - JSON models.
Element | Type | Description |
---|---|---|
type | string | Defines the actual set of fields depending on the value. See one of the following objects:
|
ConfigurationMetadata
objectMetadata useful for debugging
Element | Type | Description |
---|---|---|
clusterVersion | string | Dynatrace version. |
configurationVersions | integer[] | A sorted list of the version numbers of the configuration. |
currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. |
Port
objectThe contribution to the service ID calculation from the port, where the web request has been detected.
Element | Type | Description |
---|---|---|
doNotUseForServiceId | boolean | The port is used ( |
UrlPath
objectThe contribution from the URL, where the web request has been detected, into service ID calculation.
You have two mutually exclusive options:
Element | Type | Description |
---|---|---|
transformations | Transformation | Transformations to be applied to the detected value. |
valueOverride | string | The value to be used instead of the detected value. |
TransformationBase
objectConfiguration of transformation of the detected value.
If several transformations are specified, they are handled sequentially from top to bottom. Each transformation is applied to the result of the preceding transformation. For example, the second transformation is applied to the result of the first transformation.
The actual set of fields depends on the type of the transformation. Find the list of actual objects in the description of the type field or see Service detection API - JSON models.
Element | Type | Description |
---|---|---|
type | string | Defines the actual set of fields depending on the value. See one of the following objects:
|
{"conditions": [{"attributeType": "URL_PATH","compareOperations": [{"ignoreCase": "false","invert": "false","type": "STRING_CONTAINS","values": ["value1","value2"]}]}],"description": "REST API example","detectAsWebRequestService": false,"enabled": true,"managementZones": ["zone 1"],"name": "My sample rule","port": {"doNotUseForServiceId": "true"},"type": "OPAQUE_AND_EXTERNAL_WEB_SERVICE","urlPath": {"valueOverride": "abc"}}