|
| Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |
This interface works only on the locally connected site except where specified.
Properties
| Name | Type | Description |
|---|---|---|
| None | ||
Methods
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| datastores* P | vim.Datastore[] |
The list of datastores that will be added to the protection group.
Since SRM API 7.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | Thrown if this group is not array based. |
| vim.fault.ConcurrentAccess | |
| SrmFaultInvalidArgument | Thrown if the list of datastores is empty or null. |
| SrmFaultInvalidState | In case of exception from the SRM. For example the datastore is already protected by another protection group. |
| SrmFaultReplicationProviderFault | Generic fault describing if the {@code ReplicationProvider} rejected the operation. |
Events
| Type | |
|---|---|
| None | |
In order to protect a VirtualMachine, the VirtualMachine has to be associated with the group first.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| vms P | vim.VirtualMachine[] |
The list of virtual machines to associate with.
Since SRM API 2.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vim.fault.ConcurrentAccess | |
| SrmFaultInvalidArgument | Thrown if the list of virtual machines is empty or null. |
| SrmFaultInvalidState | Thrown if a specified VM is already associated with another group. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| xsd:boolean | Returns true if the group is configured and ready to use. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | Thrown if this group is not a VR, SAN or a vVol group. |
| SrmFaultInvalidState | Thrown if this group is not on the protected site and cannot get information about its remote object. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmStorageProviderGroupDetails |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | When the protection group is not a ABR group. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupInfo | The basic information about this group. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupPeer | The peer protection group from the remote site. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| protectedVm P | SrmProtectionGroupProtectedVm |
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupPlaceholderVmInfo |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupProtectionState | The state of the protection group. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| protectedVm P | SrmProtectionGroupProtectedVm |
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupRecoveryLocationSettings |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmVvolGroupDetails |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | When the protection group is not a vVol group. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.VirtualMachine[] | The list of associated VMs. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.Datastore[] | An array of all datastores protected by this group. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupProtectedVm[] | The list of protected VMs. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| destination P | ManagedObjectReference
to a SrmFolder |
the folder which will become the new parent folder of this
group.
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmExtApiTask |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| xsd:string |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmProtectionGroupFolder |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference[]
to a SrmRecoveryPlan[] | All the Recovery Plans this Protection group is a member of. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
In order to protect a VirtualMachine, the VirtualMachine's folder, resource pool, and network must be mapped to the recovery site. A list of the currently configured mappings is available ListInventoryMappings
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| vms P | vim.VirtualMachine[] |
The list of virtual machines to look into.
Since SRM API 2.0 |
Return Value
| Type | Description |
|---|---|
| SrmProtectionGroupVmProtectionInfo[] | The protection status of the VMs. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument | Thrown if the list of virtual machines is empty or null. |
Events
| Type | |
|---|---|
| None | |
In order to protect a VirtualMachine, the VirtualMachine's folder, resource pool, and network must be mapped to the recovery site. This can be done using the VmProtectionSpec#recoverySpec or use the global inventory mappings. A list of currently configured mappings is available ListInventoryMappings
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| vms P | SrmProtectionGroupVmProtectionSpec[] |
The list of virtual machines to protect. If some of the virtual
machines from the list or all of them are already protected,
the operation will succeed.
Since SRM API 2.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmProtectionTask | A task object to monitor for the status of the requested VMs. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument | Thrown if the list of virtual machines is empty or null. If a task fails, its error field (ProtectionTask#getResult#error) may contain one of:
|
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| protectedVm P | SrmProtectionGroupProtectedVm |
The protected VM which settings will be updated.
Since SRM API 11.0 |
| recoveryLocationSettings P | SrmProtectionGroupRecoveryLocationSettings |
The new settings to apply.
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmExtApiTask |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| name* P | xsd:string |
The new name of this protection group.
Since SRM API 10.0 |
| description* P | xsd:string |
Sets a new description for this protection group.
Since SRM API 10.0 |
| replicationGroups* P | vim.vm.replication.ReplicationGroupId[] |
Replication groups that will be configured for this group.
Since SRM API 10.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | When the protection group is not a vVol group. |
| vim.fault.ConcurrentAccess | |
| SrmFaultDuplicateName | Thrown if there are multiple protection groups that have the specified name. |
| SrmFaultInvalidArgument | Thrown if the name parameter is empty string. |
| SrmFaultInvalidState | Thrown if the operation is not allowed in the current state. |
| SrmFaultReplicationProviderFault | Generic fault describing if the {@code ReplicationProvider} rejected the operation. |
| SrmFaultStringArgumentTooLong | Thrown if the size of either name or description of the Protection Group is too long. |
Events
| Type | |
|---|---|
| None | |
Called when the placeholder needs to be recreated due to one of these reasons:
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| protectedVm P | SrmProtectionGroupProtectedVm |
The protectedVm for which the placeholder VM will be recreated.
Since SRM API 11.0 |
| placeholderVmLocation P | SrmProtectionGroupPlaceholderVmLocation |
The new location for the placeholder VM.
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmExtApiTask |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| datastores* P | vim.Datastore[] |
The list of datastores that will be added to the protection group.
Since SRM API 7.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vmodl.fault.NotSupported | Thrown if this group is not array based. |
| vim.fault.ConcurrentAccess | |
| SrmFaultInvalidArgument | Thrown if the list of datastores is empty or null. |
| SrmFaultInvalidState | Thrown if the function tries to remove the last datastore from the protection group. |
| SrmFaultReplicationProviderFault | Generic fault describing if the {@code ReplicationProvider} rejected the operation. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| vms P | vim.VirtualMachine[] |
The list of virtual machines to unassociate with.
Since SRM API 2.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| vim.fault.ConcurrentAccess | |
| SrmFaultInvalidArgument | Thrown if the list of virtual machines is empty or null. |
| SrmFaultInvalidState | Thrown if a specified VM is being protected or is not associated with this group. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtectionGroup used to make the method call. |
| vms P | vim.VirtualMachine[] |
The list of virtual machines to unprotect.
Since SRM API 2.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmProtectionTask | A task object to monitor for the status of the requested VMs. |
Faults
| Type | Description |
|---|---|
| vmodl.RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
| SrmFaultInvalidArgument | Thrown if the list of virtual machines is empty or null. |
| SrmFaultInvalidState | Thrown if a specified VM is not being protected. |
Events
| Type | |
|---|---|
| None | |
| Top of page | Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |