Skip to main content

interventions

Creates, updates, deletes, gets or lists an interventions resource.

Overview​

Nameinterventions
TypeResource
Idovh.dedicated_server.interventions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
intervention_idintegerThe intervention id (wire: interventionId)
datestring (date-time)the intervention start date
typestringthe intervention type

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintervention_id, service_nameGet a past intervention. Returns the start date and the type of a technical intervention made on the server.
listselectservice_namex_pagination_modeList past interventions. Returns the IDs of the technical interventions made on the server. Get an intervention to read its start date and type.

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"}})
intervention_idintegerThe intervention id (wire: interventionId)
service_namestringThe internal name of your dedicated server (wire: serviceName)
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 a past intervention. Returns the start date and the type of a technical intervention made on the server.

SELECT
intervention_id,
date,
type
FROM ovh.dedicated_server.interventions
WHERE intervention_id = '{{ intervention_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;