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.
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 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.