Get-SpbmReplicationGroup Command | Vmware PowerCLI Reference

Get-SpbmReplicationGroup

This cmdlet retrieves replication groups. The replication groups can be of type source or target.

Syntax

Get-SpbmReplicationGroup
[-FailedOver ]
[-FaultDomain < SpbmFaultDomain[] > ]
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-VasaProvider < VasaProvider[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional FailedOver SwitchParameter named
Returns only failed over replication groups.
optional FaultDomain SpbmFaultDomain[] named
  • wildcards
Specifies the fault domains which the replication groups are in.
optional Name String[] named
  • wildcards
Specifies names of replication groups you want to retrieve.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
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
  • wildcards
Specifies the VASA provider to retrieve replication groups from.
Get-SpbmReplicationGroup
[-HardDisk < HardDisk[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[-VM < VIObject[] > ]
[CommonParameters]

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
  • wildcards
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
  • pipeline
  • wildcards
Specifies the virtual machines to which replication groups apply. This parameter accepts both virtual machine and hard disk objects.
Get-SpbmReplicationGroup
-Id < String[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

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
  • wildcards
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.
Get-SpbmReplicationGroup
-StoragePolicy < SpbmStoragePolicy >
[-Datastore < Datastore[] > ]
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
StoragePolicy SpbmStoragePolicy named
  • pipeline
  • wildcards
Specifies the storage policy to which the replication groups comply.
optional Datastore Datastore[] named
  • pipeline
  • wildcards
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
  • wildcards
Specifies names of replication groups you want to retrieve.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
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.SpbmReplicationGroup

Examples

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.