Skip to main content

planned_interventions

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

Overview​

Nameplanned_interventions
TypeResource
Idovh.dedicated_server.planned_interventions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID of the intervention
expected_end_datestring (date-time)Expected end date for this intervention (wire: expectedEndDate)
statusstringStatus of the intervention (doing, done, todo)
typestringOperation purpose (HARDWARE_UPGRADE_ON_ACTIVE_SERVER)
wanted_start_datestring (date-time)Wanted start date for this intervention (wire: wantedStartDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintervention_id, service_nameGet a planned intervention. Returns the type, status, wanted start date and expected end date of an intervention planned on the server. The status is todo, doing or done. (Beta version)
listselectservice_namex_pagination_modeList planned interventions. Returns the IDs of the interventions planned on the server. Get a planned intervention to read its type, status and dates. (Beta version)

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_idintegerID of the intervention (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 planned intervention. Returns the type, status, wanted start date and expected end date of an intervention planned on the server. The status is todo, doing or done. (Beta version)

SELECT
id,
expected_end_date,
status,
type,
wanted_start_date
FROM ovh.dedicated_server.planned_interventions
WHERE intervention_id = '{{ intervention_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;