Service detection API - GET a full web service rule
Shows the properties of the specified service detection rule for full web services.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/service/detectionRules/FULL_WEB_SERVICE/{id} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/detectionRules/FULL_WEB_SERVICE/{id} | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/detectionRules/FULL_WEB_SERVICE/{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
Parameter | Type | Description | In | Required |
---|---|---|---|---|
id | string | The ID of the required service detection rule. | path | required |
Response
Refer to JSON models to find all JSON models that depend on the type of the model.
Response codes
Code | Type | Description |
---|---|---|
200 | FullWebServiceRule | Success. The response contains properties of the specified rule. |
404 | - | Failed. The rule with the specified ID doesn't exist. |
Response body objects
The FullWebServiceRule
object
The service detection rule of the FULL_WEB_SERVICE
type.
If you have a condition with the attributeType set to FRAMEWORK
, the values field from compareOperations is limited to the following possible values:
AXIS
CXF
HESSIAN
JAX_WS_RI
JBOSS
JERSEY
PROGRESS
RESTEASY
RESTLET
SPRING
TIBCO
WEBLOGIC
WEBMETHODS
WEBSPHERE
WINK
Element | Type | Description |
---|---|---|
applicationId | ApplicationId | The contribution to the service ID calculation from the detected application ID. You have two mutually exclusive options:
|
conditions | ConditionsFullWebServiceAttributeTypeDto[] | A list of conditions of the rule. If several conditions are specified, the AND logic applies. |
contextRoot | ContextRoot | The contribution to the service ID calculation from the detected context root. The context root is the first segment of the request URL after server name. For example, in the You have two options:
You can use one or both options. If you use both, the transformation applies to the modified URL. |
description | string | A short description of the rule. |
detectAsWebRequestService | boolean | Detect the matching requests as full 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 | ConfigurationMetadata | 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. |
serverName | ServerName | The contribution to the service ID calculation from the detected server name. You have two mutually exclusive options:
|
type | string | The type of the service detection rule. |
webServiceName | WebServiceName | The contribution to the service ID calculation from the detected web service name. You have two mutually exclusive options:
|
webServiceNameSpace | WebServiceNameSpace | The contribution to the service ID calculation from the detected web service name space. You have two mutually exclusive options:
|
The ApplicationId
object
The contribution to the service ID calculation from the detected application ID.
You have two mutually exclusive options:
- Override the detected value with a specified static value. Specify the new value in the valueOverride field.
- Dynamically transform the detected value. Specify the transformation parameters in the transformations field.
Element | Type | Description |
---|---|---|
transformations | TransformationBase[] | Transformations to be applied to the detected value. |
valueOverride | string | The value to be used instead of the detected value. |
The TransformationBase
object
Configuration 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:
|
The ConditionsFullWebServiceAttributeTypeDto
object
A condition of the service detection rule.
Element | Type | Description |
---|---|---|
attributeType | string | The type of the attribute to be checked.
|
compareOperations | CompareOperation[] | A list of conditions for the rule. If several conditions are specified, the AND logic applies. |
The CompareOperation
object
The 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:
|
The ContextRoot
object
The contribution to the service ID calculation from the detected context root.
The context root is the first segment of the request URL after server name. For example, in the www.dynatrace.com/support/help/dynatrace-api/
URL the context root is support
.
You have two options:
- Keep a part of the detected URL. Specify the number of segments to be kept in the segmentsToCopyFromUrlPath field.
- Dynamically transform the detected URL. Specify the transformation parameters in the transformations field.
You can use one or both options. If you use both, the transformation applies to the modified URL.
Element | Type | Description |
---|---|---|
segmentsToCopyFromUrlPath | integer | The number of segments of the URL to be kept. The URL is divided by slashes ( For example, if you specify |
transformations | ContextRootTransformation[] | Transformations to be applied to the detected value. |
The ContextRootTransformation
object
Configuration 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.
Element | Type | Description |
---|---|---|
type | string | Defines the actual set of fields depending on the value. See one of the following objects:
|
The ConfigurationMetadata
object
Metadata 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. |
The ServerName
object
The contribution to the service ID calculation from the detected server name.
You have two mutually exclusive options:
- Override the detected value with a specified static value. Specify the new value in the valueOverride field.
- Dynamically transform the detected value. Specify the transformation parameters in the transformations field.
Element | Type | Description |
---|---|---|
transformations | TransformationBase[] | Transformations to be applied to the detected value. |
valueOverride | string | The value to be used instead of the detected value. |
The WebServiceName
object
The contribution to the service ID calculation from the detected web service name.
You have two mutually exclusive options:
- Override the detected value with a specified static value. Specify the new value in the valueOverride field.
- Dynamically transform the detected value. Specify the transformation parameters in the transformations field.
Element | Type | Description |
---|---|---|
transformations | TransformationBase[] | Transformations to be applied to the detected value. |
valueOverride | string | The value to be used instead of the detected value. |
The WebServiceNameSpace
object
The contribution to the service ID calculation from the detected web service name space.
You have two mutually exclusive options:
- Override the detected value with a specified static value. Specify the new value in the valueOverride field.
- Dynamically transform the detected value. Specify the transformation parameters in the transformations field.
Element | Type | Description |
---|---|---|
transformations | TransformationBase[] | Transformations to be applied to the detected value. |
valueOverride | string | The value to be used instead of the detected value. |
Response body JSON model
1{2 "applicationId": {3 "valueOverride": "abc"4 },5 "conditions": [6 {7 "attributeType": "APPLICATION_ID",8 "compareOperations": [9 {10 "ignoreCase": "false",11 "invert": "false",12 "type": "STRING_CONTAINS",13 "values": [14 "value1",15 "value2"16 ]17 }18 ]19 }20 ],21 "contextRoot": {22 "segmentsToCopyFromUrlPath": 2,23 "transformations": [24 {25 "delimiter": "/",26 "type": "BEFORE"27 }28 ]29 },30 "description": "REST API example",31 "detectAsWebRequestService": false,32 "enabled": true,33 "managementZones": [34 "zone 1"35 ],36 "name": "My sample rule",37 "serverName": {38 "transformations": [39 {40 "delimiter": "-",41 "type": "BEFORE"42 }43 ]44 },45 "type": "FULL_WEB_SERVICE",46 "webServiceName": {47 "valueOverride": "abc"48 },49 "webServiceNameSpace": {50 "valueOverride": "abc"51 }52}