Skip to main content

tenant_vspc_managed_backup_virtual_machines

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

Overview​

Nametenant_vspc_managed_backup_virtual_machines
TypeResource
Idovh.backup_services.tenant_vspc_managed_backup_virtual_machines

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringvSphere managed object reference of the virtual machine, vm- prefix included, for example vm-4021. A restored virtual machine is a new vSphere object with a new identifier.
namestringName of the virtual machine in vSphere at the last refresh
last_backup_atstring (date-time)Date and time of the last backup cycle that included the virtual machine. Null when it has never been backed up. (wire: lastBackupAt)
protection_statusstringIndicates whether the virtual machine carries a valid vault tag. Independent of the result of its backups. (PROTECTED, UNPROTECTED) (wire: protectionStatus)
refreshed_atstring (date-time)Date and time when this entry was last refreshed from the backup platform (wire: refreshedAt)
restore_point_countintegerNumber of restore points currently held for the virtual machine. 0 when it has never been backed up. (wire: restorePointCount)
size_bandstringBilling size band validated at the last backup of the virtual machine. Null when no backup has been validated yet. (MAX_1TB, MAX_250GB, MAX_2TB, MAX_4TB, MAX_6TB, MAX_8TB) (wire: sizeBand)
vault_levelstringVault level resolved from the vSphere tag of the virtual machine at the last backup cycle. The tag category allows a single vault tag per virtual machine. Null when the virtual machine is unprotected. (ADVANCED, PREMIUM, STANDARD) (wire: vaultLevel)
vm_size_gbintegerUsed size of the virtual machine in GB, measured at the last backup and used to compute its sizeBand. Null when no measurement is available yet. (wire: vmSizeGb)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_services_id, managed_backup_id, virtual_machine_id, vspc_tenant_idRetrieves the protection state, billing dimensions and last backup information of a virtual machine
listselectbackup_services_id, managed_backup_id, vspc_tenant_idx_pagination_cursor, x_pagination_sizeLists the virtual machines known to the Managed Backup service with their protection state, billing dimensions and last backup information

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)
managed_backup_idstringManaged backup ID (wire: managedBackupId)
virtual_machine_idstringVirtual machine ID (wire: virtualMachineId)
vspc_tenant_idstring (uuid)Vspc tenant ID (wire: vspcTenantId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Retrieves the protection state, billing dimensions and last backup information of a virtual machine

SELECT
id,
name,
last_backup_at,
protection_status,
refreshed_at,
restore_point_count,
size_band,
vault_level,
vm_size_gb
FROM ovh.backup_services.tenant_vspc_managed_backup_virtual_machines
WHERE backup_services_id = '{{ backup_services_id }}' -- required
AND managed_backup_id = '{{ managed_backup_id }}' -- required
AND virtual_machine_id = '{{ virtual_machine_id }}' -- required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' -- required
;