slas
Creates, updates, deletes, gets or lists a slas resource.
Overview​
| Name | slas |
| Type | Resource |
| Id | ovh.me.slas |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | SLA identifier |
name | string | Sla operation name |
date | string (date-time) | Date of the event that led to SLA |
description | string | Description of the SLA operation for this incident |
end_date | string (date-time) | Date of the end of the SLA (wire: endDate) |
start_date | string (date-time) | Date of the start of the SLA (wire: startDate) |
SLA properties
| Name | Datatype | Description |
|---|---|---|
id | integer | SLA identifier |
name | string | Sla operation name |
date | string (date-time) | Date of the event that led to SLA |
description | string | Description of the SLA operation for this incident |
end_date | string (date-time) | Date of the end of the SLA (wire: endDate) |
start_date | string (date-time) | Date of the start of the SLA (wire: startDate) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id | Get this object properties | |
list | select | x_pagination_mode | List active SLA | |
apply | exec | id | Ask for SLA application |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
id | integer | Id of the object |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get this object properties
SELECT
id,
name,
date,
description,
end_date,
start_date
FROM ovh.me.slas
WHERE id = '{{ id }}' -- required
;
List active SLA
SELECT
id,
name,
date,
description,
end_date,
start_date
FROM ovh.me.slas
WHERE x_pagination_mode = '{{ x_pagination_mode }}'
;
Lifecycle Methods​
EXEC variables use wire (API) names.
- apply
Ask for SLA application
EXEC ovh.me.slas.apply
@id='{{ id }}' --required
;