datacenter_disaster_recovery_zerto_usage_reports
Creates, updates, deletes, gets or lists a datacenter_disaster_recovery_zerto_usage_reports resource.
Overview​
| Name | datacenter_disaster_recovery_zerto_usage_reports |
| Type | Resource |
| Id | ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_usage_reports |
Fields​
The following fields are returned by SELECT queries:
- list
Information on virtual machine protected by Zerto
| Name | Datatype | Description |
|---|---|---|
vm_id | string | ID of the protected VM (wire: vmId) |
vm_name | string | Name of the protected VM (wire: vmName) |
vpg_name | string | Name of the virtual protection group in which the VM is located (wire: vpgName) |
from_date | string (date-time) | Start of the backup for the requested period (wire: fromDate) |
protected_site | string | Name of the site in which the VM is running (wire: protectedSite) |
recovery_site | string | Name of the site where the VM is backed up (wire: recoverySite) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | datacenter_id, month, service_name, year | List 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.
| 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"}}) |
datacenter_id | integer | Id of the Datacenter (wire: datacenterId) |
month | integer | Billing month |
service_name | string | Domain of the service (wire: serviceName) |
year | integer | Billing year |
SELECT examples​
- list
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
;