Retrieve a service-level objective by ID in Dynatrace with the SLO API, returning the objective details for the specified service-level objective.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/slo/v1/slos/{id} |
You provide the service-level objective ID in the path to fetch one SLO. Dynatrace returns a single service-level objective in the response.
To execute this request, you need a platform token or OAuth access token with slo:slos:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | service-level objective ID | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Slo | A single service-level objective |
| 400 | - | - |
| 401 | - | - |
| 403 | - | - |
| 404 | - | - |
| 429 | - | - |
| 5XX | - | - |
SloConfig objectConfiguration for a service-level objective. Exactly one of sliReference or customSli must be provided. Providing both or neither results in a 400 Bad Request.
| Element | Type | Description |
|---|---|---|
| id | string | - |
| version | string | The version of the object for optimistic locking. You can use it to detect simultaneous modifications by different users. It's generated upon retrieval (GET requests). If set on update (PUT request) or deletion, the update/deletion will be allowed only if there wasn't any change between the retrieval and the update. |
{"id": "string","version": "string"}