Modifies the operation state of all third-party monitors.
The request consumes an application/json
payload.
POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v1/synthetic/ext/stateModifications |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v1/synthetic/ext/stateModifications |
To execute this request, you need an access token with ExternalSyntheticIntegration
scope.
To learn how to obtain and use it, see Tokens and authentication.
The JSON body of the request. Contains new operational status of third-party synthetic monitors.
StateModification
objectOperation state to be set for all third-party Synthetic monitors
The new operation state for all third-party Synthetic monitors.
ACTIVE
HIDDEN
INACTIVE
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"state": "ACTIVE"}
Success. The state of third-party monitors has been changed.
In this example, the request sets the state of third-party monitors to active.
The API token is passed in the Authorization header.
curl -X POST \https://mySampleEnv.live.dynatrace.com/api/v1/synthetic/ext/stateModifications \-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890' \-H 'Content-Type: application/json' \-d '{"state": "ACTIVE"}'
https://mySampleEnv.live.dynatrace.com/api/v1/synthetic/ext/stateModifications
{"state": "ACTIVE"}
204