Skip to main content

slas

Creates, updates, deletes, gets or lists a slas resource.

Overview​

Nameslas
TypeResource
Idovh.me.slas

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerSLA identifier
namestringSla operation name
datestring (date-time)Date of the event that led to SLA
descriptionstringDescription of the SLA operation for this incident
end_datestring (date-time)Date of the end of the SLA (wire: endDate)
start_datestring (date-time)Date of the start of the SLA (wire: startDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectx_pagination_modeList active SLA
applyexecidAsk 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.

NameDatatypeDescription
api_hoststringThe 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"}})
idintegerId of the object
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
id,
name,
date,
description,
end_date,
start_date
FROM ovh.me.slas
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Ask for SLA application

EXEC ovh.me.slas.apply
@id='{{ id }}' --required
;