Extensions 2.0 API - PUT a monitoring configuration
Updates the specified monitoring configuration of an Extensions 2.0 extension.
The request consumes and produces an application/json
payload.
PUT | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/extensions/{extensionName}/monitoringConfigurations/{configurationId} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/extensions/{extensionName}/monitoringConfigurations/{configurationId} | |
Environment and Cluster ActiveGate (default port 9999) | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/extensions/{extensionName}/monitoringConfigurations/{configurationId} |
Authentication
To execute this request, you need an access token with extensionConfigurations.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
extensionName | string | The name of the requested extension 2.0. | path | required |
configurationId | string | The ID of the requested monitoring configuration. | path | required |
body | MonitoringConfigurationUpdateDto | JSON body of the request, containing monitoring configuration parameters. | body | required |
Request body objects
The MonitoringConfigurationUpdateDto
object
Element | Type | Description | Required |
---|---|---|---|
value | JsonNode | The monitoring configuration | optional |
The JsonNode
object
The monitoring configuration
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
1{2 "value": {}3}
Response
Response codes
Code | Type | Description |
---|---|---|
200 | MonitoringConfigurationResponse | Success |
400 | ErrorEnvelope | Failed. The input is invalid. |
404 | ErrorEnvelope | Failed. The requested resource doesn't exist. |
Response body objects
The MonitoringConfigurationResponse
object
Element | Type | Description |
---|---|---|
code | integer | The HTTP Status code |
objectId | string | The identifier of the new configuration |
Response body JSON model
1{2 "code": 1,3 "objectId": "331e416f-9ab7-4694-8408-816026820645"4}