Get-SpbmReplicationGroup
This cmdlet retrieves replication groups. The replication groups can be of type source or target.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional | FailedOver | SwitchParameter | named |
|
Returns only failed over replication groups. |
optional | FaultDomain | SpbmFaultDomain[] | named |
|
Specifies the fault domains which the replication groups are in. |
optional | Name | String[] | named |
|
Specifies names of replication groups you want to retrieve. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. |
optional | VasaProvider | VasaProvider[] | named |
|
Specifies the VASA provider to retrieve replication groups from. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional | HardDisk | HardDisk[] | named |
|
Specifies virtual disk objects to which replication groups apply. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. |
optional | VM | VIObject[] | named |
|
Specifies the virtual machines to which replication groups apply. This parameter accepts both virtual machine and hard disk objects. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Id | String[] | named |
|
Filters the retrieved replication groups by ID. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
StoragePolicy | SpbmStoragePolicy | named |
|
Specifies the storage policy to which the replication groups comply. |
optional | Datastore | Datastore[] | named |
|
Specifies the datastore to which replication groups apply. If not specified, all datastores which are compatible with the specified storage policy are considered. |
optional | Name | String[] | named |
|
Specifies names of replication groups you want to retrieve. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. |
Output
VMware.VimAutomation.Storage.Types.V1.Spbm.Replication.SpbmReplicationGroupExamples
Example 1
Get-SpbmReplicationGroup -Name 'ReplicationGroup' -FaultDomain $faultDomain
Retrieves replication groups named 'ReplicationGroup' in the $faultDomain fault domain.
Example 2
Get-SpbmReplicationGroup -Datastore $datastore -StoragePolicy $policy
Retrieves replication groups which are applicable to the $datastore datastore and comply with the $policy storage policy.
Example 3
Get-SpbmReplicationGroup -VM $vm -HardDisk $hd
Retrieves replication groups which are associated with the $vm virtual machine and the $hd hard disk.
Related Commands
SpbmReplicationFailover
This cmdlet performs a failover of the devices in the specified replication groups.
SpbmReplicationGroup
This cmdlet retrieves replication groups.
This cmdlet synchronizes the data between source and replica for the specified replication group.
SpbmReplicationPair
This cmdlet retrieves the relation of replication groups in a pair of source and target replication group.
SpbmReplicationPrepareFailover
This cmdlet prepares the specified replication groups to fail over.
SpbmReplicationPromote
This cmdlet promotes a target replication group from InTest to FailedOver state.
SpbmReplicationReverse
This cmdlet initiates reverse replication, by making the currently failed over replication group the source and its peer replication group the target.
SpbmReplicationTestFailover
This cmdlet performs a test failover of a target replication group.
This cmdlet stops the test failover on the specified replication groups and tries to perform a cleanup on the target site.