CreateAbrProtectionGroup

Create a new storage array-based ProtectionGroup using the provided datastores. This method does not automatically protect VMs on the storage array. Programs must call ProtectVms() separately for VMs on the storage array to be protected. If you have a replicated datastore with an existing VM on it and then create an ABR group, the VM will not be auto protected. Workaround is to add another VM to the datastore after the ABR protection group is created. This causes both the VMs to be protected with autoprotect.

Synopsis

CreateProtectionGroupTask createAbrProtectionGroup(Folder location, String name,@optional String description, vim.Datastore[] datastores)

Parameter 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
datastores array of datastores to add to the new protection group

Returns CreateProtectionGroupTask to monitor the asynchronous operation of this method.

Faults

  • InvalidType
  • InvalidArgument
  • ReplicationProviderFault
  • RuntimeFault

See Faults in Site Recovery Manager API for more details.

Example for CreateAbrProtectionGroup

MoRef ProtectionGroup
CreateAbrProtectionGroup(_this, MoRef protectionFolder, String nameAbrProtectionGroup,
@optional String descriptionAbrProtectionGroup, MoRef datastoreRef)
/* _this is a managed object reference to an SrmProtection object. */

The following exceptions are presented by the CreateProtectionGroupTask instance that is returned by the CreateAbrProtectionGroup and CreateHbrProtectionGroup methods:

  • ConnectionDownFault if the other site involved in the operation could not be contacted.
  • DuplicateName if a group with this name already exists.
  • StringArgumentTooLong if the size of either name or description in the settings parameter is too long.