Changes the status of public synthetic locations.
The request consumes an application/json
payload.
PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/locations/status |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/locations/status |
To execute this request, you need an access token with syntheticLocations.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
SyntheticPublicLocationsStatus
objectThe status of public synthetic locations.
Synthetic monitors can (true
) or can't (false
) run on public synthetic locations.
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"publicLocationsEnabled": true}
Success. Locations status has been updated.
Conflict. Public locations couldn't be disabled because there are monitors assigned to them.