List service-level objectives in Dynatrace with the SLO API, using page, filter, and sort parameters to page and refine results.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/slo/v1/slos |
You use page-size, page, page-key, filter, and sort to control which service-level objectives appear and how they are ordered. The response returns a paged array of service-level objectives.
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 |
|---|---|---|---|---|
| page-size | integer | How many items to return at one time (max 500) | query | Optional |
| page | integer | The page number to retrieve, 1-indexed. Can't be used together with | query | Optional |
| page-key | string | Cursor for the next page of results, obtained from | query | Optional |
| filter | string | The filter parameter, as explained here. Filtering is supported on the following fields:
| query | Optional |
| sort | string | The sort parameter, as explained here. Sorting is supported on the following fields:
| query | Optional |
| Code | Type | Description |
|---|---|---|
| 200 | Slo | A paged array of service-level objectives |
| 400 | - | - |
| 401 | - | - |
| 403 | - | - |
| 429 | - | - |
| 5XX | - | - |
SloObjectsList object| Element | Type | Description |
|---|---|---|
| totalCount | integer | The total number of entries in the result. |
| nextPageKey | string | The cursor for the next page of results. Has the value of Use it in the page-key query parameter to obtain subsequent pages of the result. |
| slos | Slo[] | - |
Slo objectSloConfig 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 |
|---|---|---|
| name | string | - |
| description | string | - |
| sliReference | Sli | - |
| customSli | Custom | - |
| criteria | Criteria[] | - |
| tags | string[] | A list of tags for this SLO. Tags can be plain strings (e.g. |
| externalId | string | An optional user-provided external identifier for the SLO. Must be unique across all SLOs. |
{"totalCount": 1,"nextPageKey": "string","slos": [{"id": "string","version": "string"}]}