CreateHbrProtectionGroup2

This method creates a new host based (that is vSphere replication) Protection Group using the provided virtual machines. The list of virtual machines can be empty.

Note: The protection group name cannot be the same as the folder in which it will be created.

Synopsis

CreateProtectionGroupTask createHbrProtectionGroup2(
       drextapi.Folder location,
       String name,
       @optional String description,
       @optional vim.VirtualMachine[] vms)

createHbrProtectionGroup2 returns CreateProtectionGroupTask to monitor the asynchronous operation of this method. For more information, see Create Protection Group Task.

createHbrProtectionGroup2 method has the following parameters:
Field Description
location Folder in which to create the protection group.
name The name of the protection group.
description An optional description of the protection group.
vms VirtualMachines to associate with the new protection group. ProtectVms must be called for these VMs to be protected.

Faults

  • InvalidArgument
  • InternalError
  • InvalidType
  • ReplicationProviderFault
  • RuntimeFault

See Faults in Site Recovery Manager API for more details.