Try it free

Service-level objectives API - DELETE an SLO

  • Reference

Deletes the specified service-level objective (SLO).

The request produces an application/json payload.

DELETEManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/slo/{id}
DELETEEnvironment and Cluster ActiveGate (default port 9999)https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/slo/{id}

Authentication

Api-Token:

To execute this request, you need an access token with slo.write scope.

One of the following permissions is required for personal access tokens:

  • environment:roles:manage-settings
  • settings:objects:write

To learn how to obtain and use it, see Personal access tokens.

Platform Token / OAuth:

Required scope: settings:objects:write

To learn how to obtain and use it, see Platform tokens or OAuth clients.

Parameters

ParameterTypeDescriptionInRequired
idstring

The ID of the required SLO.

pathRequired

Response

Response codes

CodeTypeDescription
204-

Success. The SLO has been deleted. Response doesn't have a body.

404ErrorEnvelope

Failed. The requested resource doesn't exist.

409ErrorEnvelope

Failed. Conflicting resource.

500ErrorEnvelope

Internal server error.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Related topics

  • Service-Level Objectives