Get an objective template by ID in Dynatrace with the SLO API and return the template details for the specified objective template ID.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/slo/v1/objective-templates/{id} |
You provide the objective template ID in the path to retrieve one template. The response returns a single objective template.
To execute this request, you need a platform token or OAuth access token with one of the following scopes:
slo:objective-templates:readslo:slos:readTo learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | objective template ID | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Objective | A single objective template |
| 400 | - | - |
| 401 | - | - |
| 403 | - | - |
| 404 | - | - |
| 429 | - | - |
| 5XX | - | - |
ObjectiveTemplateConfig object| 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. |
| builtIn | boolean | - |
| deprecation | Deprecation | - |
Deprecation object| Element | Type | Description |
|---|---|---|
| deprecated | boolean | True if this template is deprecated and shouldn't be used for new SLOs. |
| replacementTemplateId | string | If deprecated=true, this field may contain the ID of the template to use instead. |
{"id": "string","version": "string","builtIn": false,"deprecation": {"deprecated": true,"replacementTemplateId": "string"}}