RecreatePlaceholder
Recreates a placeholder VM.
This method is called when the
placeholder needs to be recreated due to one of these reasons:
- Placeholder creation failed.
- Placeholder was deleted.
- Placeholder inventory was lost or needs to be reentered - one use case for this is when production vm was a template but then gets converted to a VM.
This method can be called only on the
recovery site. It does not need primary site to be up for succesful completion. This
method requires
Resource.com.vmware.vcDr.RecoveryUse
on the host,
resorce pool, datastore, and folder.Synopsis
@task void recreatePlaceholder(ProtectedVm protectedVm, PlaceholderVmLocation placeholderVmLocation)
recreatePlaceholder has the following
parameters:
Field | Description |
---|---|
protectedVm | ProtectedVm for which the placeholder VM will
be recreated. For more information, see ListProtectedVms. |
placeholderVmLocation | New location for the placeholder VM. For more
information, see ProtectVms. |
If a task fails, its error field may contain the following:
- drextapi.fault.InvalidState- if repair is called from the wrong site.
Faults
- InvalidArgument
- RuntimeFault