Skip to main content

datacenter_disaster_recovery_zerto_usage_reports

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

Overview​

Namedatacenter_disaster_recovery_zerto_usage_reports
TypeResource
Idovh.dedicated_cloud.datacenter_disaster_recovery_zerto_usage_reports

Fields​

The following fields are returned by SELECT queries:

Information on virtual machine protected by Zerto

NameDatatypeDescription
vm_idstringID of the protected VM (wire: vmId)
vm_namestringName of the protected VM (wire: vmName)
vpg_namestringName of the virtual protection group in which the VM is located (wire: vpgName)
from_datestring (date-time)Start of the backup for the requested period (wire: fromDate)
protected_sitestringName of the site in which the VM is running (wire: protectedSite)
recovery_sitestringName of the site where the VM is backed up (wire: recoverySite)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdatacenter_id, month, service_name, yearList Zerto disaster recovery protected virtual machines

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"}})
datacenter_idintegerId of the Datacenter (wire: datacenterId)
monthintegerBilling month
service_namestringDomain of the service (wire: serviceName)
yearintegerBilling year

SELECT examples​

List Zerto disaster recovery protected virtual machines

SELECT
vm_id,
vm_name,
vpg_name,
from_date,
protected_site,
recovery_site
FROM ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_usage_reports
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND month = '{{ month }}' -- required
AND service_name = '{{ service_name }}' -- required
AND year = '{{ year }}' -- required
;