Skip to main content

backups

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

Overview​

Namebackups
TypeResource
Idovh.public_cloud_analytics.backups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the backup
service_idstring (uuid)Identifier of the service this backup belongs to (wire: serviceId)
checksumstringHash of the resource used for concurrency control
created_atstring (date-time)Date at which the backup was created (wire: createdAt)
descriptionstringHuman-readable description of the backup
expired_atstring (date-time)Date until point-in-time recovery is available from this backup (wire: expiredAt)
regionsarrayRegions where this backup is stored
sizeobjectSize of the backup
statusstringCurrent readiness status of the backup (CREATING, DELETING, ERROR, READY)
typestringType of this backup (AUTOMATIC, MANUAL, NONE, PITR, SNAPSHOT)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_id, project_idReturns the backup type, size, status and storage regions, and the date until which point-in-time recovery is available. (Beta version)
listselectproject_idx_pagination_cursor, x_pagination_size, service_idReturns the backups of all analytics services of the project, across engines. Filter them by service with the serviceId parameter. (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"}})
backup_idstring (uuid)Backup ID (wire: backupId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
service_idstring (uuid)Filter backups by service identifier (wire: serviceId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the backup type, size, status and storage regions, and the date until which point-in-time recovery is available. (Beta version)

SELECT
id,
service_id,
checksum,
created_at,
description,
expired_at,
regions,
size,
status,
type
FROM ovh.public_cloud_analytics.backups
WHERE backup_id = '{{ backup_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;