Extensions 2.0 API - PUT a monitoring configuration

  • Reference

Updates the specified monitoring configuration of an Extensions 2.0 extension.

The request consumes and produces an application/json payload.

PUTSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/extensions/{extensionName}/monitoringConfigurations/{configurationId}
Environment ActiveGateCluster ActiveGatehttps://{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

ParameterTypeDescriptionInRequired
extensionNamestring

The name of the requested extension 2.0.

pathrequired
configurationIdstring

The ID of the requested monitoring configuration.

pathrequired
bodyMonitoringConfigurationUpdateDto

JSON body of the request, containing monitoring configuration parameters.

bodyrequired

Request body objects

The MonitoringConfigurationUpdateDto object

ElementTypeDescriptionRequired
valueJsonNode

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.

{
"value": {}
}

Response

Response codes

CodeTypeDescription
200MonitoringConfigurationResponse

Success

400ErrorEnvelope

Failed. The input is invalid.

404ErrorEnvelope

Failed. The requested resource doesn't exist.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The MonitoringConfigurationResponse object

ElementTypeDescription
codeinteger

The HTTP Status code

objectIdstring

The identifier of the new configuration

Response body JSON model

{
"code": 1,
"objectId": "331e416f-9ab7-4694-8408-816026820645"
}