Skip to main content

features_backup_clouds

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

Overview​

Namefeatures_backup_clouds
TypeResource
Idovh.dedicated_server.features_backup_clouds

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
agreementsarrayAgreement ids waiting for validation
archiveobjectArchive space info.
statusobjectStatus of the container.
storageobjectStorage space info.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the cloud backup. Returns the cloud backup of the server: its storage and archive containers, its status and the agreements waiting for validation. (Beta version)
createinsertservice_nameCreate the cloud backup. Creates the cloud backup of the server, with storage and archive containers in a cloud project. Set cloudProjectId to use an existing project; otherwise a project is created, described by projectDescription. (Beta version)
deletedeleteservice_nameDeactivate the cloud backup. Deactivates the cloud backup of the server. The container data is not deleted. (Beta version)
passwordexecserviceNameRegenerate cloud backup passwords. Regenerates the cloud backup passwords and returns them: the Swift and SFTP passwords of the storage and archive containers. (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"}})
serviceNamestringThe internal name of your dedicated server
service_namestringThe internal name of your dedicated server (wire: serviceName)

SELECT examples​

Get the cloud backup. Returns the cloud backup of the server: its storage and archive containers, its status and the agreements waiting for validation. (Beta version)

SELECT
agreements,
archive,
status,
storage
FROM ovh.dedicated_server.features_backup_clouds
WHERE service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create the cloud backup. Creates the cloud backup of the server, with storage and archive containers in a cloud project. Set cloudProjectId to use an existing project; otherwise a project is created, described by projectDescription. (Beta version)

INSERT INTO ovh.dedicated_server.features_backup_clouds (
cloud_project_id,
project_description,
service_name
)
SELECT
'{{ cloud_project_id }}',
'{{ project_description }}',
'{{ service_name }}'
RETURNING
agreements,
archive,
status,
storage
;

DELETE examples​

Deactivate the cloud backup. Deactivates the cloud backup of the server. The container data is not deleted. (Beta version)

DELETE FROM ovh.dedicated_server.features_backup_clouds
WHERE service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Regenerate cloud backup passwords. Regenerates the cloud backup passwords and returns them: the Swift and SFTP passwords of the storage and archive containers. (Beta version)

EXEC ovh.dedicated_server.features_backup_clouds.password
@serviceName='{{ serviceName }}' --required
;