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.
The protection group name cannot be the same as the folder in which it will be created.

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. For more information, see Create Protection Group Task.

Faults

  • InvalidArgument
  • InvalidType
  • ReplicationProviderFault
  • RuntimeFault
Example for CreateAbrProtectionGroup
ManagedObjectReference abrGroupRef = srmPortType.createAbrProtectionGroup(ManagedObjectReference _this, ManagedObjectReference location, String name, String description, List < ManagedObjectReference > datastores); Where ManagedObjectReference _this = _protectionRef; where _protectionRef can be taken from: SrmServiceInstanceContent content = _srmPortType.retrieveContent(_svcRef); ManagedObjectReference _protectionRef = content.getProtection();
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.