Skip to main content

tenant_vaults

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

Overview​

Nametenant_vaults
TypeResource
Idovh.backup_services.tenant_vaults

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique identifier of your vault. A UUID for Backup Agent and Backup Licenses vaults, the vault name for Managed Backup vaults.
created_atstring (date-time)Date and time when you created the vault (wire: createdAt)
current_stateobjectCurrent state of your vault (wire: currentState)
current_tasksarrayList of tasks currently running on your vault (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringIndicates the readiness of your vault (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectSpecification of your vault target (wire: targetSpec)
updated_atstring (date-time)Date and time when you last updated the vault (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_services_id, vault_idRetrieves specific vault details
listselectbackup_services_idx_pagination_cursor, x_pagination_size, iam_tagsLists vaults for your tenant
updateupdatebackup_services_id, vault_id, nameUpdates vault display name and cloud repository

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_services_idstring (uuid)Backup services ID (wire: backupServicesId)
vault_idstringVault ID (wire: vaultId)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Retrieves specific vault details

SELECT
id,
created_at,
current_state,
current_tasks,
iam,
resource_status,
target_spec,
updated_at
FROM ovh.backup_services.tenant_vaults
WHERE backup_services_id = '{{ backup_services_id }}' -- required
AND vault_id = '{{ vault_id }}' -- required
;

UPDATE examples​

Updates vault display name and cloud repository

UPDATE ovh.backup_services.tenant_vaults
SET
name = '{{ name }}'
WHERE
backup_services_id = '{{ backup_services_id }}' --required
AND vault_id = '{{ vault_id }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;