|
| Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
| Name | Type | Description |
|---|---|---|
| None | ||
Methods
This method does not automatically protect VMs stored on the storage array. ProtectVms must be separately called for the VMs on the the storage array that are to be protected.
The following exceptions are presented by the SrmCreateProtectionGroupTask instance that is returned by this method:
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
| location P | ManagedObjectReference
to a SrmFolder |
Folder in which to create the protection group
Since SRM API 3.0 |
| name P | xsd:string |
The name of the protection group
Since SRM API 3.0 |
| description* P | xsd:string |
An optional description of the protection group
Since SRM API 3.0 |
| datastores P | vim.Datastore[] |
Datastores to add to the new protection group
Since SRM API 3.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmCreateProtectionGroupTask | A task instance to monitor the asynchronous operation of this method. |
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.InvalidType | Thrown if the parent folder isn't meant to hold child-types of type SrmProtectionGroup |
| SrmFaultInvalidArgument | Thrown if the name of the protection group is empry or the datastores are not stored on replicated storage arrays that have been configured in SRM. |
| SrmFaultReplicationProviderFault | Thrown if either {@code ReplicationProvider} rejected the operation |
Events
| Type | |
|---|---|
| None | |
The following exceptions are presented by the SrmCreateProtectionGroupTask instance that is returned by this method:
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
| location P | ManagedObjectReference
to a SrmFolder |
Folder in which to create the protection group
Since SRM API 3.0 |
| name P | xsd:string |
The name of the protection group
Since SRM API 3.0 |
| description* P | xsd:string |
An optional description of the protection group
Since SRM API 3.0 |
| vms P | vim.VirtualMachine[] |
VirtualMachines to associate with the new protection group.
ProtectVms must be called for these VMs to be
protected.
Since SRM API 3.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmCreateProtectionGroupTask | A task instance to monitor the asynchronous operation of this method. |
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.InvalidType | Thrown if the parent folder isn't meant to hold child-types of type SrmProtectionGroup |
| SrmFaultInternalError | Thrown if we cannot find the hbr provider (null reference) |
| SrmFaultInvalidArgument | Thrown if the name of the protection group is empry or the list of virtual machines is empty or null. |
| SrmFaultReplicationProviderFault | Thrown if either {@code ReplicationProvider} rejected the operation |
Events
| Type | |
|---|---|
| None | |
The following exceptions are presented by the SrmCreateProtectionGroupTask instance that is returned by this method:
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
| location P | ManagedObjectReference
to a SrmFolder |
Folder in which to create the protection group
Since SRM API 11.0 |
| name P | xsd:string |
The name of the protection group
Since SRM API 11.0 |
| description* P | xsd:string |
An optional description of the protection group
Since SRM API 11.0 |
| vms* P | vim.VirtualMachine[] |
VirtualMachines to associate with the new protection group.
ProtectVms must be called for these VMs to be
protected.
Since SRM API 11.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmCreateProtectionGroupTask | A task instance to monitor the asynchronous operation of this method. |
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.InvalidType | Thrown if the parent folder isn't meant to hold child-types of type SrmProtectionGroup |
| SrmFaultInternalError | Thrown if we cannot find the hbr provider (null reference) |
| SrmFaultInvalidArgument | Thrown if the name of the protection group is empry. |
| SrmFaultReplicationProviderFault | Thrown if either {@code ReplicationProvider} rejected the operation |
Events
| Type | |
|---|---|
| None | |
The following exceptions are presented by the SrmCreateProtectionGroupTask instance that is returned by this method:
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
| location P | ManagedObjectReference
to a SrmFolder |
Folder in which to create the protection group
Since SRM API 10.0 |
| name P | xsd:string |
The name of the protection group
Since SRM API 10.0 |
| description* P | xsd:string |
An optional description of the protection group
Since SRM API 10.0 |
| replicationGroups* P | vim.vm.replication.ReplicationGroupId[] |
Optional list of replication groups to configure for the protection
group. Only virtual machines replicated by these replication groups
can be protected in the created protection group.
Since SRM API 10.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmCreateProtectionGroupTask | A task instance to monitor the asynchronous operation of this method. |
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. |
| SrmFaultInternalError | Thrown if the VVol provider was not found (null reference) |
| SrmFaultInvalidArgument | Thrown if the name of the protection group is empty |
| SrmFaultReplicationProviderFault | Thrown if either {@code ReplicationProvider} rejected the operation |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmProtectionGroupFolder | The top-level folder for protection groups. |
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 | |
The destination of each of the resources (network, resource pool, folder) are not available in the data structure that is returned. If needed use: drextapi.InventoryMapping.networkMappings drextapi.InventoryMapping.resourcePoolMappings drextapi.InventoryMapping.folderMappings
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| SrmProtectionInventoryMappingInfo | A list of the configured inventory mappings on the protection 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 SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference[]
to a SrmProtectionGroup[] | A list of all the protection groups that are currently configured. |
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 SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.Datastore[] | A list of all datastores on this site that are replicated but not currently protected by SRM. |
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 SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.Datastore[] | A list of all datastores on this site that are replicated but not currently protected by SRM. |
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 SrmProtection used to make the method call. |
| replicationType P | xsd:string |
The type of VMs to find. Valid values are defined in
SrmProtectionGroupReplicationType
Since SRM API 3.0 |
Return Value
| Type | Description |
|---|---|
| vim.VirtualMachine[] | A list of replicated VMs that are suitable for protection by SRM. |
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 replicationType parameter does not match a supported replication type. |
Events
| Type | |
|---|---|
| None | |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.Datastore[] | A list of all datastores on this site that are replicated and protected by SRM. |
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 SrmProtection used to make the method call. |
Return Value
| Type | Description |
|---|---|
| vim.VirtualMachine[] | A list of replicated VMs that are protected by SRM. |
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 | |
Note: The SrmProtectionGroup removal step still requires the protection group to be empty. It is possible for another operation to occur on this group while the protected VMs are being unprotected. Thus, if a VM is protected into the SrmProtectionGroup during the unprotect step then the SrmProtectionGroup removal step may still fail.
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the SrmProtection used to make the method call. |
| group P | ManagedObjectReference
to a SrmProtectionGroup |
The SrmProtectionGroup to be removed after unprotecting
all SrmProtectionGroupProtectedVms.
Since SRM API 3.0 |
Return Value
| Type | Description |
|---|---|
| ManagedObjectReference
to a SrmRemoveProtectionGroupTask | A task instance to monitor the asynchronous operation of this method. |
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. |
| SrmFaultConnectionDownFault | Thrown if the other site involved in the operation could not be contacted |
| SrmFaultProtectionGroupNotEmpty | Thrown if this group still contains protected VMs |
| SrmFaultReplicationProviderFault |
Events
| Type | |
|---|---|
| None | |
| Top of page | Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |