Skip to main content

datacenter_disaster_recovery_zerto_single_remote_sites

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

Overview​

Namedatacenter_disaster_recovery_zerto_single_remote_sites
TypeResource
Idovh.dedicated_cloud.datacenter_disaster_recovery_zerto_single_remote_sites

Fields​

The following fields are returned by SELECT queries:

Zerto disaster recovery remote site

NameDatatypeDescription
idintegerID of the remote Vra Network
labelstringName given to this network
remote_endpoint_public_ipstring (ipv4)Your onsite endpoint public IP for the secured replication data tunnel (example: 192.0.2.0) (wire: remoteEndpointPublicIp)
remote_vra_networkstring (ip-block)Internal zerto subnet of your onsite infrastructure (ip/cidr) (example: 192.0.2.0/24) (wire: remoteVraNetwork)
remote_zvm_internal_ipstring (ipv4)Internal ZVM ip on your onsite infrastructure local network (example: 192.0.2.0) (wire: remoteZvmInternalIp)
statestringCurrent state of your current Zerto remote site (creating, deleting, delivered, error, toCreate, toDelete, toUpdate, unknown, updating)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectdatacenter_id, service_nameList Zerto disaster recovery remote sites
createinsertdatacenter_id, service_name, label, pre_shared_key, remote_endpoint_public_ip, remote_vra_network, remote_zvm_internal_ipCreate Zerto disaster recovery remote site on VPN endpoint
deletedeletedatacenter_id, id, service_nameRemove Zerto disaster recovery remote site

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)
idintegerThe id number of the network to remove (as returned by a GET call)
service_namestringDomain of the service (wire: serviceName)

SELECT examples​

List Zerto disaster recovery remote sites

SELECT
id,
label,
remote_endpoint_public_ip,
remote_vra_network,
remote_zvm_internal_ip,
state
FROM ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_single_remote_sites
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create Zerto disaster recovery remote site on VPN endpoint

INSERT INTO ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_single_remote_sites (
label,
pre_shared_key,
remote_endpoint_public_ip,
remote_vra_network,
remote_zvm_internal_ip,
datacenter_id,
service_name
)
SELECT
'{{ label }}' /* required */,
'{{ pre_shared_key }}' /* required */,
'{{ remote_endpoint_public_ip }}' /* required */,
'{{ remote_vra_network }}' /* required */,
'{{ remote_zvm_internal_ip }}' /* required */,
'{{ datacenter_id }}',
'{{ service_name }}'
RETURNING
name,
datacenter_id,
filer_id,
host_id,
network_access_id,
order_id,
parent_task_id,
task_id,
user_id,
vlan_id,
created_by,
created_from,
description,
end_date,
execution_date,
last_modification_date,
maintenance_date_from,
maintenance_date_to,
network,
progress,
state,
type
;

DELETE examples​

Remove Zerto disaster recovery remote site

DELETE FROM ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_single_remote_sites
WHERE datacenter_id = '{{ datacenter_id }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;