datacenter_disaster_recovery_zerto_remote_sites
Creates, updates, deletes, gets or lists a datacenter_disaster_recovery_zerto_remote_sites resource.
Overview​
| Name | datacenter_disaster_recovery_zerto_remote_sites |
| Type | Resource |
| Id | ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_remote_sites |
Fields​
The following fields are returned by SELECT queries:
- list
Zerto disaster recovery remote site
| Name | Datatype | Description |
|---|---|---|
id | integer | ID of the remote Vra Network |
label | string | Name given to this network |
remote_endpoint_public_ip | string (ipv4) | Your onsite endpoint public IP for the secured replication data tunnel (example: 192.0.2.0) (wire: remoteEndpointPublicIp) |
remote_vra_network | string (ip-block) | Internal zerto subnet of your onsite infrastructure (ip/cidr) (example: 192.0.2.0/24) (wire: remoteVraNetwork) |
remote_zvm_internal_ip | string (ipv4) | Internal ZVM ip on your onsite infrastructure local network (example: 192.0.2.0) (wire: remoteZvmInternalIp) |
state | string | Current 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | datacenter_id, service_name | List Zerto disaster recovery remote sites | |
create | insert | datacenter_id, service_name, label, pre_shared_key, remote_endpoint_public_ip, remote_vra_network, remote_zvm_internal_ip | Create Zerto disaster recovery remote site on VPN endpoint | |
delete | delete | datacenter_id, id, service_name | Remove 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.
| 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) |
id | integer | The id number of the network to remove (as returned by a GET call) |
service_name | string | Domain of the service (wire: serviceName) |
SELECT examples​
- list
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_remote_sites
WHERE datacenter_id = '{{ datacenter_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;
INSERT examples​
- create
- Manifest
Create Zerto disaster recovery remote site on VPN endpoint
INSERT INTO ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_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
;
# Description fields are for documentation purposes
- name: datacenter_disaster_recovery_zerto_remote_sites
props:
- name: datacenter_id
value: {{ datacenter_id }}
description: Required parameter for the datacenter_disaster_recovery_zerto_remote_sites resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the datacenter_disaster_recovery_zerto_remote_sites resource.
- name: label
value: "{{ label }}"
description: |
The name for this connection
- name: pre_shared_key
value: "{{ pre_shared_key }}"
description: |
Pre-Shared Key to secure data transfer between both sites
- name: remote_endpoint_public_ip
value: "{{ remote_endpoint_public_ip }}"
description: |
Your onsite endpoint public IP for the secured replication data tunnel
- name: remote_vra_network
value: "{{ remote_vra_network }}"
description: |
Internal zerto subnet of your onsite infrastructure (ip/cidr)
- name: remote_zvm_internal_ip
value: "{{ remote_zvm_internal_ip }}"
description: |
Internal ZVM ip of your onsite infrastructure
DELETE examples​
- delete
Remove Zerto disaster recovery remote site
DELETE FROM ovh.dedicated_cloud.datacenter_disaster_recovery_zerto_remote_sites
WHERE datacenter_id = '{{ datacenter_id }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;