resource_website_backup_downloads
Creates, updates, deletes, gets or lists a resource_website_backup_downloads resource.
Overview​
| Name | resource_website_backup_downloads |
| Type | Resource |
| Id | ovh.managed_cms.resource_website_backup_downloads |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique identifier of the backup |
database_download_url | string | URL to download the database of the backup, null while the backup is being created (wire: databaseDownloadURL) |
expires_at | string (date-time) | Date after which the backup is deleted, null while the backup is being created (wire: expiresAt) |
files_download_url | string | URL to download the files of the backup, null while the backup is being created (wire: filesDownloadURL) |
size_bytes | integer | Size of the backup, in bytes, null while the backup is being created (wire: sizeBytes) |
started_at | string (date-time) | Date the backup was triggered at (wire: startedAt) |
status | string | Status of the backup (CREATING, READY) |
type | string | Whether the backup was taken automatically or requested by the customer (AUTOMATIC, MANUAL) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | backup_id, service_id, website_id | Returns a backup of the website with its download links, one for its files and one for its database, available once the backup is READY. Backups are listed in the current state of the website. (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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_id | string (uuid) | Identifier of the backup, as listed in the current state of the website (wire: backupId) |
service_id | string (uuid) | Service ID (wire: serviceId) |
website_id | string (uuid) | Website ID (wire: websiteId) |
SELECT examples​
- get
Returns a backup of the website with its download links, one for its files and one for its database, available once the backup is READY. Backups are listed in the current state of the website. (Beta version)
SELECT
id,
database_download_url,
expires_at,
files_download_url,
size_bytes,
started_at,
status,
type
FROM ovh.managed_cms.resource_website_backup_downloads
WHERE backup_id = '{{ backup_id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND website_id = '{{ website_id }}' -- required
;