VMware vSphere Replication REST API Gateway Operations Index

VMware vSphere Replication REST API Gateway Operations Index

All available VMware vSphere Replication REST API Gateway Operations

Authentication
GET
Get Current Session

Returns information about the current session, if any.

POST
Login

Logs in and returns the session ID. In the subsequent requests, include the 'x-dr-session' header with the returned session ID value.

DELETE
Logout

Logs out if the session is authenticated.

Pairing
GET
Get Vr Pairings

Get a list of all existing pairings.

POST
Pair Vr

Pair to the remote vSphere Replication Management Server.

GET
Get Vr Pairing

Get information about the pairing.

DELETE
Delete Vr Pairing

Delete the existing pairing with the remote vSphere Replication Management server.

POST
Reconnect Vr Pairing

Reconnect the existing pairing to the remote vSphere Replication Management Server (VRMS).

GET
Get Vr Pairing Issues

Get all issues for the pairing.

GET
Get Remote Session

Returns information about the current session to the remote vSphere Replication Management server, if any.

POST
Create Remote Session

Returns information about the current session to the remote vSphere Replication Management server.

GET
Get Replication Capabilities

Get replication capabilities of a given pairing. Optionally could pass virtual machine ID to get VM replication capabilities.

GET
Get All Vr Details In Pairing

Get information about vSphere Replication servers that are paired.

GET
Get Vr Info In Pairing

Get information about a specific vSphere Replication Management Server in a pairing.

GET
Get All Vr Servers In Pairing

Get all registered replication servers for a vSphere Replication in a pairing.

POST
Register Vr Server In Pairing

Register a replication server for a vSphere Replication in a pairing.

GET
Get Vr Server In Pairing

Get information about a registered vSphere Replication server for a VRMS, which is part of a pairing.

DELETE
Unregister Vr Server In Pairing

Unregister a vSphere Replication server for a vSphere Replication in a pairing.

POST
Reconnect Vr Server In Pairing

Update the connection information for this vSphere Replication server and reset any current connection for a vSphere Replication in a pairing.

Replication
GET
Get All Replications

Get a list of all the incoming or outgoing replications from a vCenter Server.

POST
Configure Replication

Use this workflow to configure a replication.


1. Search for VMs that are suitable for a replication.
GET /{pairing_id}/vcenters/{vcenter_id}/vms
 - Query parameter suitable_for_replication should be true
2. Choose VMs.
3. For each VM, get disks:
GET /{pairing_id}/vcenters/{vcenter_id}/vms/{vm_id}/disks
4. Optionally, for each VM, check capabilities if replication is supported and what are the supported replication settings:
GET /{pairing_id}/vcenters/{vcenter_id}/vms/{vm_id}/capability
5. Request storage policies at the target vCenter Server:
GET /{pairing_id}/vcenters/{vcenter_id}/storage-policies
6. Choose a storage policy. If default storage policy will be used, then set destination_storage_policy_id in the resulting ConfigureReplicationSpec to null.
7. Search for possible target datastores at the target vCenter Server:
GET /{pairing_id}/vcenters/{vcenter_id}/datastores
8. Choose a target datastore.
9. Optionally check the selected target datastore's compliance against the selected target storage policy.
POST /{pairing_id}/vcenters/{vcenter_id}/storage-policies/{storage_policy_id}/actions/check-compliance
 - Pass the chosen datastore IDs as a body to the endpoint
10. Optionally search for seeds at the target vCenter Server for the chosen target datastore from step 8:
 a. POST /{pairing_id}/vcenters/{vcenter_id}/datastores/{datastore_id}/actions/find-seeds
 - Pass spec based on the VM disks retrieved in step 3
 b. Or browse the datastore to select manually seed folder/file
POST /{pairing_id}/vcenters/{vcenter_id}/datastores/{datastore_id}/actions/browse
 - Pass spec for specific type and path of files/folders
11. Construct ConfigureReplicationSpec.
12. Create a replication.
POST /{pairing_id}/replications

GET
Get Replications Count

Get the total number of replications - both incoming and outgoing.

GET
Get Replications Issues

Get a list of all the current issues for all incoming or outgoing replications.

GET
Get Replication Info

Get information about the replication.

DELETE
Destroy Replication

Delete replication of a VM. The operation deletes the replication only on the local site. Remove the replication configuration first.

POST
Run Cleanup

Run a cleanup test recovery for a given replication. This includes removing or reloading the placeholder VM from original path and reverting the test bubble image. Operation is available only on recovery site (for incoming replications).

POST
Demote Test Image

Remove the promotion of the latest promoted test image associated with this group (if any) as an established promoted instance. The promoted instance is "demoted" to a regular group instance and becomes a candidate for pruning. Operation is available only on recovery site (for incoming replications)

POST
Pause Replication

Pause the replication for a virtual machine from the source site to a remote vCenter Server site.

POST
Promote Test Image

Cleanup files and objects associated with the image of a group while retaining the contents of the image as a new instance. Only one image of any type can exist for a group at any given moment. The image must be a test bubble image, attempting to promote a failover image will fail. Operation is available only on recovery site (for incoming replications).

POST
Reconfigure Replication

Change the settings of a replication, including reconfiguring a replication on new virtual hard disks and enabling the default seed disk to use a replica disk in the VM folder.

POST
Run Disaster Recovery

Run a disaster recovery for a given replication. Operation is available only on recovery site (for incoming replications). The operation requires a valid VMware Live Recovery subscription.

POST
Resume Replication

Resume a paused replication to the target vCenter Server site.

POST
Sync Replication

Sync the latest changes for a virtual machine with a configured replication to the target vCenter Server site.

POST
Run Test

Run a test recovery for a given replication. A VM is created and registered at the recovery site. You can use the VM to run tests, security scans and ransomware-cleanup. Operation is available only on recovery site (for incoming replications). The operation requires a valid VMware Live Recovery subscription.

POST
Unconfigure Replication

Gracefully remove the replication configuration of a VM. If the remote site is not available, use DELETE /replications/{replication_id} to delete the replication from the local site.

GET
Get Active Replication Image

There are two types of images: test-bubble and failover. A test-bubble image is expected to be reverted after any testing is completed. Optionally, it is possible to promote the image to a recovery image. A failover image will either be reverted or committed. Will return 404 Not Found in case there is no active replication image. Operation is available only on recovery site (for incoming replications).

GET
Get Replicated Vm Disks

Retrieve information about the disks of a replicated VM.

GET
Get All Point In Time Instances

Get a list of all available consistent replicas (point in time instances) for a given replication.

GET
Get Point In Time Instance

Get a specific consistent replica (point in time instance) for a given replication.

GET
Get Vr Capable Target Datastores

Retrieve vSphere Replication supported datastores.

POST
Browse Datastore

Browse the datastore that is defined in the URL by its ID. This API returns files that reside on the given datastore. These files are filtered based on the given search criteria.

POST
Get Seeds For Disks

Retrieve information about possible seeds for a given set of disks.

GET
Get Vc Storage Policies

Retrieve vCenter Server's storage policies.

POST
Check Storage Policy Compliance

Check datastores for compliance against a given storage policy.

GET
Get Local Vms

Get a list of all VMs on the vCenter Server specified by vCenter Server ID in the URL.

GET
Get Vm Capability

Retrieve vSphere Replication capability information about a given VM.

GET
Get Local Vm Disks

Retrieve information about the disks of a VM.

Replication Mappings
GET
Get Replication Mappings

Get information about all replication mappings in a pairing.

POST
Create Replication Mapping

Add replication mappings for a vSphere Replication Management Server in a given pairing.

POST
Calculate Replication Mappings

Calculate replication mappings for a vSphere Replication Management Server by a given set of datastores as source and a set of datastores/datastore clusters as a target. The result will contain a list of mappings between all compute clusters where the source and target datastores/datastore clusters are accessible from.

POST
Run Replication Mappings Tests

Run tests for all replication mappings for a vSphere Replication Management Server in a given pairing.

GET
Get Replication Mapping

Get information about a specific replication mapping in a pairing.

DELETE
Delete Replication Mapping

Delete a configured replication mapping for a vSphere Replication Management Server in a given pairing.

GET
Get Replication Mapping Test Results

Get test results about a specific replication mapping in a pairing.

Server
GET
Get Vr Info

Lists details about the vSphere Replication Management Server.

GET
Get All Vr Servers

Get all registered replication servers.

POST
Register Vr Server

Register a replication server.

GET
Get Vr Server

Get information about a registered vSphere Replication server.

DELETE
Unregister Vr Server

Unregister a vSphere Replication server.

POST
Reconnect Vr Server

Update the connection information of this vSphere Replication server and reset any current connection.

Tasks
GET
Get Recent Tasks Info

Retrieve all recent tasks.

GET
Get Task Info

Retrieve task information.

Vcenters
GET
Get Vcenter Compute Inventory

Get information about the vCenter Server's compute inventory.

GET
Get Vcenter Compute Item

Get information about the vCenter Server's compute object.

GET
Get Compute Resource Accessible Datastores

Retrieve datastores accessible by a given vCenter Server's compute resource.

GET
Get Vcenter Vm Folder Inventory

Returns a list of children of a given folder by path.

GET
Get Vcenter Vm Folder

Get information about the vCenter Server's VM folder object.