Skip to main content

planned_changes

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

Overview​

Nameplanned_changes
TypeResource
Idovh.dedicated_server.planned_changes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUUID of the change
expected_end_datestring (date-time)Expected end date for this change (wire: expectedEndDate)
statusstringStatus of the change (acknowledged, assess, authorize, canceled, closed, doing, done, implement, new, review, scheduled, todo)
typestringOperation purpose (HARDWARE_UPGRADE_ON_ACTIVE_SERVER)
wanted_start_datestring (date-time)Wanted start date for this change (wire: wantedStartDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectchange_uuid, service_nameGet a planned change. Returns a change planned on the server: its purpose, its status, its wanted start date and its expected end date. (Beta version)
listselectservice_namex_pagination_modeList planned changes. Returns the UUIDs of the changes planned on the server. Get a change by its UUID to read its purpose, status and expected 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"}})
change_uuidstringUUID of the change (wire: changeUuid)
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 change. Returns a change planned on the server: its purpose, its status, its wanted start date and its expected end date. (Beta version)

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