VMware Site Recovery Manager REST API Gateway Operations Index

VMware Site Recovery Manager REST API Gateway Operations Index

All available VMware Site Recovery Manager 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 value of the returned session ID.

DELETE
Logout

Logs out if the session is authenticated.

Inventory Mappings
GET
Get Folder Mappings

Get currently configured folder mappings for an SRM in a given pairing.

POST
Create Folder Mapping

Add folder mappings for an SRM in a given pairing.

GET
Get Folder Mapping

Get details about a configured folder mapping for an SRM in a given pairing.

DELETE
Delete Folder Mapping

Delete a configured folder mapping for an SRM in a given pairing.

GET
Get Network Mappings

Get currently configured network mappings for an SRM in a given pairing.

POST
Create Network Mapping

Add network mappings for an SRM in a given pairing.

GET
Get Network Mapping

Get details about a configured network mapping for an SRM in a given pairing.

DELETE
Delete Network Mapping

Delete a configured network mapping for an SRM in a given pairing.

GET
Get Network Ip Subnet Mapping

Get details about a configured IP subnet mapping for a network mapping.

PUT
Update Network Ip Subnet Mapping

Create or update the IP subnet mapping for a network mapping.

DELETE
Remove Network Ip Subnet Mapping

Delete the configured IP subnet mapping for a network mapping.

GET
Get Placeholder Datastores

Get currently configured placeholder datastores for an SRM in a given pairing.

POST
Create Placeholder Datastores

Add placeholder datastores for an SRM in a given pairing.

POST
Query Suitable Datastores

A query for suitable datastores to be used as placeholder datastores.

GET
Get Placeholder Datastore

Get details about a configured placeholder datastore for an SRM in a given pairing.

DELETE
Delete Placeholder Datastore

Delete a configured placeholder datastore for an SRM in a given pairing.

GET
Get Resource Mappings

Get currently configured resource mappings for an SRM in a given pairing.

POST
Create Resource Mapping

Add resource mappings for an SRM in a given pairing.

GET
Get Resource Mapping

Get details about a configured resource mapping for an SRM in a given pairing.

DELETE
Delete Resource Mapping

Delete a configured resource mapping for an SRM in a given pairing.

GET
Get Storage Policy Mappings

Get currently configured storage policy mappings for an SRM in a given pairing.

POST
Create Storage Policy Mapping

Add storage policy mappings for an SRM in a given pairing.

GET
Get Storage Policy Mapping

Get details about a configured storage policy mapping for an SRM in a given pairing.

DELETE
Delete Storage Policy Mapping

Delete a configured storage policy mapping for an SRM in a given pairing.

GET
Get Test Network Mappings

Get currently configured test network mappings for an SRM in a given pairing.

POST
Create Test Network Mappings

Add test network mappings for an SRM in a given pairing.

GET
Get Test Network Mapping

Get details about a configured test network mappings for an SRM in a given pairing.

DELETE
Delete Test Network Mapping

Delete a configured test network mapping for an SRM in a given pairing.

Licensing
GET
Get Licensing

Get information about a VMware Live Site Recovery licensing.

POST
Generate Offline Key Activation Request

Generate offline VMware Live Site Recovery activation request key, to be used in VMware Live Recovery Cloud Service to create offline VMware Live Site Recovery license key. Then the received license key must be applied to this server.

POST
Apply Offline License Key

Apply offline VMware Live Site Recovery key, retrieved from VMware Live Recovery Cloud Service. VMware Live Site Recovery will be licensed to use only the number of VMs specified in the license key. To retrieve the offline license key you must generate activation request key and then use it in VMware Live Recovery Cloud Service.

DELETE
Remove Offline License Key

Deactivate the offline VMware Live Site Recovery key if present. This API can be called even if the offline key has already been deactivated. Task result contains deactivation request key, which you must enter in VMware Live Recovery Cloud Service to free the license in the cloud.

Pairing
GET
Get Pairings

Get a list of all existing pairings.

POST
Create Pairing

Pair to remote Site Recovery Manager server.

GET
Get Pairing

Get information about the pairing.

DELETE
Delete Pairing

Delete existing pairing with remote Site Recovery Manager server.

POST
Reconnect Pairing

Reconnect existing pairing to remote Site Recovery Manager server.

GET
Get Pairing Issues

Get all issues for the pairing.

GET
Get Remote Session

Returns information about the current session to the remote Site Recovery Manager server, if any.

POST
Create Remote Session

Creates a session to the remote Site Recovery Manager server.

GET
Get Srms

Get a list of all Site Recovery Manager servers in the pairing.

GET
Get Srm

Get information about a Site Recovery Manager server, which is part of a given pairing.

GET
Get Srm Issues

Get a list of all Site Recovery Manager server issues for a given Site Recovery Manager server.

GET
Get Srm Permissions

Get a list of all Site Recovery Manager server permissions for a given Site Recovery Manager object.

PUT
Manage Srm Permissions

Adds or modifies a permission rule from a given Site Recovery Manager object.

DELETE
Remove Srm Permissions Deprecated

DEPRECATED - use /pairings/{pairing_id}/srms/{srm_id}/permissions/actions/remove instead.

POST
Delete Srm Permissions

Removes a permission rule from a given Site Recovery Manager object.

Protection
GET
Get All Groups

Get information about all protection groups in a given pairing.

POST
Create Group

Create a new protection group in a given pairing.

GET
Get Group

Get information about a protection group in a given pairing.

DELETE
Delete Group

Delete a protection group in a given pairing.

POST
Configure All

Configure protection for all virtual machines that are part of the protection group in a given pairing.

Empty list of tasks is returned when all virtual machines in the protection group are already protected.

POST
Reconfigure Group

Reconfigure settings for this group.

POST
Restore All Placeholders

Repair placeholder VMs.

Called when the placeholder needs to be recreated due to one of these reasons:

  • Placeholder creation failed.
  • Placeholder was deleted.
  • Placeholder inventory was lost or needs to be reentered - one use case for this is when production VM was a template but then gets converted to a VM.

This method can be called only on the recovery site. It does not require the primary site to be up for successful completion.

Empty list of tasks is returned when no virtual machines need repair of their placeholder VMs.

GET
Get Datastore Groups

List of replicated datastore groups.

Each datastore group represents a minimal set of datastores that must be protected and recovered together.
The rules for combining datastores are:

  • Datastores are backed by storage devices from the same consistency group.
  • Virtual machine spans multiple datastores.
  • Two virtual machines on two different datastores share an RDM device.

For non-Array-Based Replication protection group, this will return an empty response.

POST
Add Datastore Group

Add a replicated datastore group from an Array-Based Replication protection group. This operation also protects all VMs, including VMs residing on any datastore that is part of the newly added datastore group. For a non-Array-Based Replication protection group, this will return an empty response.

GET
Get Datastore Group

A group of replicated datastores.

A datastore group represents a minimal set of datastores that must be protected and recovered together.
The rules for combining datastores are:

  • Datastores are backed by storage devices from the same consistency group.
  • Virtual machine spans multiple datastores.
  • Two virtual machines on two different datastores share an RDM device.

For a non-Array-Based Replication protection group, this will return an empty response.

DELETE
Remove Datastore Group

Remove a replicated datastore group from an Array-Based Replication protection group. This operation also removes the protection of VMs residing on any datastore that is part of the removed datastore group.

GET
Get Group Issues

Get issues about a protection group in a given pairing.

GET
Get Group Related Recovery Plans

Get recovery plans in which the protection group is part of.

GET
Get Vvol Replication Groups

The source VVOL replication groups for this protection group. Both protection and recovery site report the same replication groups. For non-VVOL protection group, this will return an error response.

GET
Get Vvol Replication Group

The source vSphere Virtual Volumes replication groups for this protection group. Both protection and recovery site report the same replication groups.

GET
Get Group Vms

A list of details for virtual machines that are part of the protection group.

GET
Get Group Vm

Details of a protected virtual machine that is part of the protection group.

POST
Remove Vm From Protection Group

Remove the virtual machine for a VR protection group

POST
Remove Vm Protection

Remove the protection of a given virtual machine for this group. Once the protection of a VM is removed, the VM will not be recovered during recovery. To protect the VM again, run the configure protection operation.

GET
Get Vm Protection Settings

Get details about the current protection settings of a virtual machine.

PUT
Update Vm Protection Settings

Update the protection settings of a virtual machine. This endpoint must be called after the remove protection operation in order for the VM to be recovered during recovery.

GET
Get Protection Group Folders

Get information about Site Recovery Manager server protection inventory.

POST
Create Protection Group Folder

Create a new sub-folder with the specified name.

Because of the dual-server nature of Site Recovery Manager, the sites must be connected when creating folders.

Any % (percent) character used in this name parameter must be escaped, unless it is used to start an escape sequence. Clients can also escape any other characters in this name parameter.

This method requires VcDr.ProtectionProfile.com.vmware.vcDr.Create privilege on the containing folder.

GET
Get Protection Group Folder

Get information about Site Recovery Manager protection group folder.

DELETE
Delete Protection Group Folder

Remove Site Recovery Manager protection group folder.

POST
Move Protection Group Folder

Move a specified folder into a destination folder. This operation is typically used by clients when implementing a drag-and-drop interface for moving folders.

The objects that can be moved into a folder depend on the parent folder's type. You can move only recovery plans and recovery plan folders into a folder constructed for recovery plans. You can move only protection groups and protection group folders into a folder constructed for protection groups.

This method requires VcDr.ProtectionProfile.com.vmware.vcDr.Edit privilege on the moved folder and source and destination parent folders.

POST
Rename Protection Group Folder

Rename Site Recovery Manager protection group folder.

GET
Get Protection Group Folder Children

Get information about Site Recovery Manager protection group folder children.

Recovery
GET
Get All Plan History Records

If no start_date and end_date are specified, then the last seven days of data will be returned.

GET
Get Recovery Plan Folders

Get information about Site Recovery Manager server recovery inventory.

POST
Create Recovery Plan Folder

Create a new sub-folder with the specified name.

Any % (percent) character used in this name parameter must be escaped, unless it is used to start an escape sequence. Clients can also escape any other characters in this name parameter.

This method requires VcDr.RecoveryProfile.com.vmware.vcDr.Create andVcDr.RecoveryProfile.com.vmware.vcDr.Edit privilege on the containing folder.

GET
Get Recovery Plan Folder

Get information about Site Recovery Manager recovery plan folder.

DELETE
Delete Recovery Plan Folder

Delete the folder with the specified ID.VcDr.RecoveryProfile.com.vmware.vcDr.Delete privilege on the containing folder.

POST
Move Recovery Plan Folder

Move a specified folder into a destination folder. This operation is typically used by clients when implementing a drag-and-drop interface for moving folders.

The objects that can be moved into a folder depend on the parent folder's type. You can move only recovery plans and recovery plan folders into a folder constructed for recovery plans. You can move only protection groups and protection group folders into a folder constructed for protection groups.

This method requires VcDr.RecoveryProfile.com.vmware.vcDr.Edit privilege on the moved folder and the source and destination parent folders.

POST
Rename Recovery Plan Folder

Rename a folder with the specified name.

Any % (percent) character used in this name parameter must be escaped, unless it is used to start an escape sequence. Clients can also escape any other characters in this name parameter.

This method requires VcDr.RecoveryProfile.com.vmware.vcDr.Create andVcDr.RecoveryProfile.com.vmware.vcDr.Edit privilege on the containing folder.

GET
Get Recovery Plan Folder Children

Get information about Site Recovery Manager recovery plan folder children.

GET
Get All Recovery Plans

Recovery plans are used for automating the recovery execution during a migration or a failover.

POST
Create Plan

Create a new recovery plan in a given pairing.

GET
Get Recovery Plan

Recovery plans are used for automating the recovery execution during a migration or a failover.

DELETE
Delete Recovery Plan

Delete a recovery plan from a given pairing.

POST
Cancel Recovery Plan

Cancels a running recovery task for this recovery plan.

POST
Run Cleanup Test Recovery

Run a cleanup test recovery for this recovery plan.

POST
Reconfigure Recovery Plan

Reconfigure settings for this recovery plan.

POST
Run Recovery

Run the recovery for this recovery plan.

POST
Run Reprotect

Run reprotect for this recovery plan. Complete a recovery, and start protecting the groups so they can be recovered on the peer site. Reprotect involves unregistering the VMs on the peer site, configuring storage, and registering placeholders. The callers must ensure that they have all the required privileges for VM creation, deletion, and reconfiguration.

POST
Run Test Recovery

Run a test recovery for this recovery plan, leaving the primary site unaffected.

GET
Get Plan History Records

If no start_date and end_date are specified, then the last seven days of data will be returned.

GET
Get Plan History Record

Get information about the history report for a recovery run of a recovery plan in a given pairing.

GET
Get Recovery Plan Issues

Get issues about a recovery plan in a given pairing.

GET
Get Plan Related Protection Groups

Get protection groups that are part of a recovery plan in a given pairing.

GET
Get Recovery Steps User Prompts

User prompts are configurable callouts which are triggered during a recovery operation.

User prompts must be dismissed by the client in order the recovery operation to continue.

GET
Get Recovery Steps User Prompt

User prompts are configurable callouts which are triggered during a recovery operation.

User prompts must be dismissed by the client in order the recovery operation to continue.

POST
Dismiss Recovery Steps Recovery Plan Prompt

Dismiss an user prompt waiting for a client acknowledgment during a recovery operation.

When dismissed the recovery operation will continue.

GET
Get Recovery Steps

Get information about recovery steps in a given recovery view mode.

Will fail if unable to retrieve recovery steps in the desired mode in the current recovery plan state.

POST
Create Recovery Steps Callout

Add a callout/prompt to the list of recovery steps in a given recovery view mode.

Will fail if cannot retrieve recovery steps in the desired mode in the current recovery plan state.

GET
Get Recovery Step

Get information about a recovery step in a given recovery view mode.

Will fail if can not retrieve recovery steps in the desired mode in the current recovery plan state.

DELETE
Delete Recovery Step

Delete a recovery step in a given recovery view mode.

This operation is possible only for custom-created prompts or callouts.

GET
Get Recovery Steps Callout Details

Get detailed information about a callout/prompt for a recovery step in a given recovery view mode.

Will fail if cannot retrieve recovery steps in the desired mode in the current recovery plan state or the recovery step is not callout/prompt-related.

POST
Edit Recovery Steps Callout

Modify a callout/prompt to the list of recovery steps in a given recovery view mode.

Will fail if cannot retrieve recovery steps in the desired mode in the current recovery plan state or the recovery step is not callout/prompt-related.

GET
Get Plan Related Test Networks

Get the test networks configured for a recovery plan in a given pairing.

GET
Get Plan Virtual Machines

Get virtual machines that are part of a recovery plan in a given pairing.

GET
Get Plan Virtual Machine

Get the protected virtual machine included in a recovery plan in a given pairing.

GET
Get Plan Virtual Machine Recovery Settings

Get recovery settings for a protected virtual machine.

POST
Update Plan Virtual Machine Recovery Settings

Update recovery settings for a protected virtual machine.

GET
Get Plan Virtual Machine Dependent Vms

Get the dependent VMs for a protected virtual machine.

POST
Update Plan Virtual Machine Dependent Vms

Update the dependent VMs of a protected virtual machine.

POST
Plan Virtual Machine Check Dependent Vms

Checks if a given list of dependent VMs is valid against the current VM.

GET
Get Plan Virtual Machine Ip Customization

Get the IP customization for a protected virtual machine.

POST
Update Plan Virtual Machine Ip Customization

Update the IP customization for a protected virtual machine.

GET
Get Plan Virtual Machine Recovery Priority

Get the protected virtual machine priority during a recovery.

PUT
Update Plan Virtual Machine Recovery Priority

Update the recovery priority of a protected virtual machine.

GET
Get Plan Virtual Machine Summarized Recovery Settings

Get a summary of the recovery settings for a protected virtual machine.

Replication
GET
Get Array Managers

Get information about all Site Recovery Manager array managers that are part of a given pairing.

POST
Create Array Manager

Create a Site Recovery Manager array manager that is part of a given pairing.

GET
Get Array Manager

Get information about a Site Recovery Manager array manager that is part of a given pairing.

DELETE
Delete Array Manager

Delete a Site Recovery Manager array manager that is part of a given pairing.

POST
Discover Replicated Array Pairs

Discovers storage arrays configured for replication by executing SRA command discoverArrays. IDs of discovered array must be unique across all array managers that use the same SRA.

GET
Get Replicated Array Pairs

Get information about all Site Recovery Manager replicated array pairs that are part of a given pairing.

POST
Create Replicated Array Pair

Create a Site Recovery Manager replicated array pair that is part of a given pairing.

After the creation of replicated array pair perform discover replicated array pair devices operation.

GET
Get Replicated Array Pair

Get information about a Site Recovery Manager replicated array pair that is part of a given pairing.

DELETE
Delete Replicated Array Pair

Delete a Site Recovery Manager replicated array pair that is part of a given pairing.

POST
Discover Storage Devices

Discover storage devices and consistency groups of a Site Recovery Manager replicated array pair by calling command on a storage replication adapter. Perform discoveries and match source and target devices on both sites.

POST
Retrieve Unassigned Datastore Groups

Retrieve the unassigned datastore groups that are part of a replicated array pair. You can include these datastore groups in the Array-Based Replication protection groups.

GET
Get Storage Devices

Get information about all storage devices of a Site Recovery Manager replicated array pair that is part of a given pairing.

GET
Get Storage Adapters

Get information about all storage replication adapters of a Site Recovery Manager that is part of a given pairing.

GET
Get Storage Adapter

Get information about a storage replication adapter of a Site Recovery Manager that is part of a given pairing.

GET
Get Storage Adapter Connection Params

Get connection parameters for a storage replication adapter of a Site Recovery Manager that is part of a given pairing.

GET
Get Vsan Protection Groups

Get all vSAN Snapshot Manager protection groups with remote replication matching SRM pair direction.Once vSAN Snapshot Manager protection group is added to an SRM protection group it becomes a managed by SRM andany standalone recovery operations outside SRM control are disabled.

GET
Get Vsan Protection Group

Get information about a vSAN Snapshot Manager protection group with remote replication matching SRM pair direction.Once vSAN Snapshot Manager protection group is added to an SRM protection group it becomes a managed by SRM andany standalone recovery operations outside SRM control are disabled.

GET
Get All Vvol Fault Domains

Get information about all VMware vSphere Virtual Volumes (vVols) fault domains that are part of a given pairing.

GET
Get Vvol Fault Domain

Get details about a VMware vSphere Virtual Volumes (vVols) fault domain that is part of a given pairing.

GET
Get All Vvol Fault Domain Replication Groups

Get information about all replication groups that are part of a VMware vSphere Virtual Volumes fault domain.

GET
Get Vvol Fault Domain Replication Group

Get information about a replication group that is part of a VMware Virtual Volumes fault domain.

Server
POST
Export Configuration

Export the configuration on demand.

POST
Upload Export Files

Triggers upload operation on demand. The uploaded export files are generated since last upload operation. If there is no upload operation yet, upload all existed export files. If there are no export files to be uploaded, nothing happens.

GET
Get Export Files Info

Get all export files information available on the appliance.

DELETE
Delete Export Files

Delete the selected export files.

GET
Retrieve Export File

Retrieves the export file using the Binary datatype.

GET
Get Export Settings

Get current active export settings.

PATCH
Set Export Settings

Set the export settings. The export settings include enableScheduler, retention, scheduleSpec, and so on. If the 'enableScheduler' is set 'True' and 'ScheduleSpec' was set before or is set in the same time, a cron job which exports config on schedule will be created. If the 'enableScheduler' is not set, 'ScheduleSpec' is set and "enableScheduler" is enabled before, the cron job is also created. If the 'enableScheduler' is set to 'False', the existed cron job will be deleted.

GET
Get Info

Information about the current Site Recovery Manager server.

Tasks
GET
Get Recent Tasks Info

Retrieve all the recent tasks.

GET
Get Task Info

Retrieve the task information.

Vcenters
GET
Get Vcenters

Get a list of all vCenter Server instances in the pairing.

GET
Get Vcenter

Get information about a vCenter Server that is part of a given pairing.

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
Browse Vcenter Compute Item

Browse files and folders accessible to vCenter server's compute object.

GET
Get Vcenter Datastores

Get information about the vCenter Server's datastores.

GET
Get Vcenter Datastore Item

Get information about the vCenter Server's datastore object.

GET
Get Vcenter Network Inventory

Get information about the vCenter Server's network inventory.

GET
Get Vcenter Network Item

Get information about the vCenter Server's network object.

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.

GET
Get Replicated Vms

Replicated VMs that are not protected by Site Recovery Manager can be used to create a protection group.

GET
Get Vc Storage Policies

Retrieve the vCenter Server's storage policies.

GET
Get Vc Storage Policy

Get information about the vCenter Server's storage policy object.