Update a monitoring configuration in Dynatrace Extensions 2.0 by extension name and configuration ID, using the supplied value.
| PUT | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions/{extension-name}/monitoring-configurations/{configuration-id} |
You provide the extension name and monitoring configuration ID in the path, then send the value field in the request body to update the configuration. The operation returns a 200 success response.
To execute this request, you need a platform token or OAuth access token with extensions:configurations:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| extension-name | string | The name of the requested Extension 2.0. | path | Required |
| configuration-id | string | The ID of the requested monitoring configuration. | path | Required |
| body | Monitoring | JSON body of the request, containing monitoring configuration parameters. Monitoring configuration scope cannot be updated. | body | Required |
MonitoringConfigurationUpdate object| Element | Type | Description | Required |
|---|---|---|---|
| value | Json | The monitoring configuration | Optional |
JsonNode objectThe monitoring configuration
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"value": {}}
| Code | Type | Description |
|---|---|---|
| 200 | Monitoring | Success. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
MonitoringConfigurationResponse object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP Status code |
| objectId | string | The identifier of the new configuration |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code. |
| details | Error | The error details. |
| message | string | The error message. |
ErrorDetails objectThe error details.
| Element | Type | Description |
|---|---|---|
| constraintViolations | Constraint | A list of constraint violations. |
ConstraintViolation objectA list of constraint violations.
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"code": 1,"objectId": "331e416f-9ab7-4694-8408-816026820645"}
{"error": {"code": 1,"details": {"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}]},"message": "string"}}