Skip to main content

backups

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

Overview​

Namebackups
TypeResource
Idovh.over_the_box.backups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
backup_idstringThe id of the backup (wire: backupId)
device_action_idstringThe id of the device action that triggered the backup (wire: deviceActionId)
created_atstring (date-time)Date of the creation of the backup (wire: createdAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_id, service_nameGet a backup of an OverTheBox service. Returns the creation date of a configuration backup and the ID of the device action that triggered it.
listselectservice_namex_pagination_modeList the backups of an OverTheBox service. Returns the IDs of the configuration backups of the device of the service.
deletedeletebackup_id, service_nameDelete a backup of an OverTheBox service. Removes the configuration backup. It can no longer be restored on the device.

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"}})
backup_idstringThe id of the backup (wire: backupId)
service_namestringThe internal name of your overTheBox offer (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 backup of an OverTheBox service. Returns the creation date of a configuration backup and the ID of the device action that triggered it.

SELECT
backup_id,
device_action_id,
created_at
FROM ovh.over_the_box.backups
WHERE backup_id = '{{ backup_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Delete a backup of an OverTheBox service. Removes the configuration backup. It can no longer be restored on the device.

DELETE FROM ovh.over_the_box.backups
WHERE backup_id = '{{ backup_id }}' --required
AND service_name = '{{ service_name }}' --required
;