This method moves the RecoveryPlan to a different folder.
Synopsis
@task void movePlan(RecoveryPlan recoveryPlan, drextapi.Folder destination)
movePlan returns a task instance to monitor the asynchronous operation of this method. This method has the following parameters:
Field | Description |
---|---|
recoveryPlan | Recovery plan to move. For more information, see Recovery Plan. |
destination | Folder which will become the new parent folder of this plan. For more information, see SRM Folder. |
If a task fails, its error field may contain one of the following:
- drextapi.fault.DuplicateName - A RecoveryPlan with the same name already exists within the destination folder.
- vim.fault.NotSupported - if the RecoveryPlan is being moved into a folder whose childType() property is not set to the appropriate value. For example, a RecoveryPlan cannot be moved into a folder whose
ChildType
property value does not contain "RecoveryPlan". - drextapi.fault.ConnectionDownFault - if the sites are not connected.
Faults
- RuntimeFault
See Faults in Site Recovery Manager API for more details.