Updates the specified request attribute.
The request consumes and produces an application/json payload.
| PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/requestAttributes/{id} |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id} |
To execute this request, you need an access token with CaptureRequestData scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | The ID of the request attribute to be updated. If you set the ID in the body as well, it must match this ID. | path | Required |
| body | Request | - | body | Required |
RequestAttribute object| Element | Type | Description | Required |
|---|---|---|---|
| aggregation | string | Aggregation type for the request values. The element can hold these values
| Required |
| confidential | boolean | Confidential data flag. Set | Required |
| dataSources | Data | The list of data sources. | Required |
| dataType | string | The data type of the request attribute. The element can hold these values
| Required |
| enabled | boolean | The request attribute is enabled ( | Required |
| id | string | The ID of the request attribute. | Optional |
| metadata | Configuration | Metadata useful for debugging | Optional |
| name | string | The name of the request attribute. | Required |
| normalization | string | String values transformation. If the dataType is not The element can hold these values
| Required |
| skipPersonalDataMasking | boolean | Personal data masking flag. Set Warning: This will potentially access personalized data. | Required |
DataSource object| Element | Type | Description | Required |
|---|---|---|---|
| capturingAndStorageLocation | string | Specifies the location where the values are captured and stored. Required if the source is one of the following: Not applicable in other cases. If the source value is The element can hold these values
| Optional |
| cicsSDKMethodNodeCondition | Value | IBM integration bus label node name condition for which the value is captured. | Optional |
| cicsTransactionCallType | string | CICS transaction call type condition for which the value is captured. Required if the source is: Not applicable in other cases. The element can hold these values
| Optional |
| enabled | boolean | The data source is enabled ( | Required |
| iibLabelMethodNodeCondition | Value | IBM integration bus label node name condition for which the value is captured. | Optional |
| iibMethodNodeCondition | Value | IBM integration bus label node name condition for which the value is captured. | Optional |
| iibNodeType | string | The IBM integration bus node type for which the value is captured. This, iibNodeTypeCondition (different type of the same field) or Not applicable in other cases. The element can hold these values
| Optional |
| iibNodeTypeCondition | Value | IBM integration bus label node name condition for which the value is captured. | Optional |
| imsTransactionCallType | string | IMS transaction call type condition for which the value is captured. Required if the source is: Not applicable in other cases. The element can hold these values
| Optional |
| methods | Captured | The method specification if the source value is Not applicable in other cases. | Optional |
| parameterName | string | The name of the web request parameter to capture. Required if the source is one of the following: Not applicable in other cases. | Optional |
| scope | Scope | Conditions for data capturing. | Optional |
| serverVariableTechnology | string | The technology of the server variable to capture if the source value is The element can hold these values
| Optional |
| sessionAttributeTechnology | string | The technology of the session attribute to capture if the source value is The element can hold these values
| Optional |
| source | string | The source of the attribute to capture. Works in conjunction with parameterName or methods and technology. The element can hold these values
| Required |
| spanAttributeKey | string | The key of the span attribute to capture. Required if the source is: Not applicable in other cases. | Optional |
| technology | string | The technology of the method to capture if the source value is The element can hold these values
| Optional |
| valueProcessing | Value | Process values as specified. | Optional |
ValueCondition objectIBM integration bus label node name condition for which the value is captured.
| Element | Type | Description | Required |
|---|---|---|---|
| negate | boolean | Negate the comparison. | Required |
| operator | string | Operator comparing the extracted value to the comparison value. The element can hold these values
| Required |
| value | string | The value to compare to. | Required |
CapturedMethod object| Element | Type | Description | Required |
|---|---|---|---|
| argumentIndex | integer | The index of the argument to capture. Set Required if the capture is set to Not applicable in other cases. | Optional |
| capture | string | What to capture from the method. The element can hold these values
| Required |
| deepObjectAccess | string | The getter chain to apply to the captured object. It is required in one of the following cases: The capture is set to Not applicable in other cases. | Optional |
| method | Method | Configuration of a method to be captured. | Required |
MethodReference objectConfiguration of a method to be captured.
| Element | Type | Description | Required |
|---|---|---|---|
| argumentTypes | string[] | The list of argument types. | Required |
| className | string | The class name where the method to capture resides. Either this or the fileName must be set. | Optional |
| fileName | string | The file name where the method to capture resides. Either this or className must be set. | Optional |
| fileNameMatcher | string | The operator of the comparison. If not set, The element can hold these values
| Optional |
| methodName | string | The name of the method to capture. | Required |
| modifiers | string[] | The modifiers of the method to capture. The element can hold these values
| Required |
| returnType | string | The return type. | Required |
| visibility | string | The visibility of the method to capture. The element can hold these values
| Required |
ScopeConditions objectConditions for data capturing.
| Element | Type | Description | Required |
|---|---|---|---|
| hostGroup | string | Only applies to this host group. | Optional |
| processGroup | string | Only applies to this process group. Note that this can't be transferred between different clusters or environments. | Optional |
| serviceTechnology | string | Only applies to this service technology. The element can hold these values
| Optional |
| tagOfProcessGroup | string | Only apply to process groups matching this tag. | Optional |
ValueProcessing objectProcess values as specified.
| Element | Type | Description | Required |
|---|---|---|---|
| extractSubstring | Extract | Preprocess by extracting a substring from the original value. | Optional |
| splitAt | string | Split (preprocessed) string values at this separator. | Optional |
| trim | boolean | Prune Whitespaces. Defaults to false. | Required |
| valueCondition | Value | IBM integration bus label node name condition for which the value is captured. | Optional |
| valueExtractorRegex | string | Extract value from captured data per regex. | Optional |
ExtractSubstring objectPreprocess by extracting a substring from the original value.
| Element | Type | Description | Required |
|---|---|---|---|
| delimiter | string | The delimiter string. | Required |
| endDelimiter | string | The end-delimiter string. Required if the position value is | Optional |
| position | string | The position of the extracted string relative to delimiters. The element can hold these values
| Required |
ConfigurationMetadata objectMetadata useful for debugging
| Element | Type | Description | Required |
|---|---|---|---|
| clusterVersion | string | Dynatrace version. | Optional |
| configurationVersions | integer[] | A sorted list of the version numbers of the configuration. | Optional |
| currentConfigurationVersions | string[] | A sorted list of version numbers of the configuration. | Optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"aggregation": "ALL_DISTINCT_VALUES","confidential": false,"dataSources": [{"capturingAndStorageLocation": "CAPTURE_AND_STORE_ON_SERVER","enabled": true,"parameterName": "query","scope": {"tagOfProcessGroup": "SearchFrontend"},"source": "QUERY_PARAMETER"}],"dataType": "STRING","enabled": true,"name": "Query Term","normalization": "TO_LOWER_CASE","skipPersonalDataMasking": false}
| Code | Type | Description |
|---|---|---|
| 201 | Entity | Success. The request attribute with the specified ID has been created. The ID of the new configuration is returned. |
| 204 | - | Success. Request attribute has been updated. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |
EntityShortRepresentation objectThe short representation of a Dynatrace entity.
| Element | Type | Description |
|---|---|---|
| description | string | A short description of the Dynatrace entity. |
| id | string | The ID of the Dynatrace entity. |
| name | string | The name of the Dynatrace entity. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"description": "Dynatrace entity for the REST API example","id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a","name": "Dynatrace entity"}
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/requestAttributes/{id}/validator |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/requestAttributes/{id}/validator |
To execute this request, you need an access token with CaptureRequestData scope.
To learn how to obtain and use it, see Tokens and authentication.
| Code | Type | Description |
|---|---|---|
| 204 | - | Validated. The submitted configuration is valid. Response does not have a body. |
| 400 | Error | Failed. The input is invalid. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}