Get-SpbmReplicationGroup

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

Syntax

[-FailedOver]
[-FaultDomain  <SpbmFaultDomain[]>]
[-Name  <String[]>]
[-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
    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.

    [-HardDisk  <HardDisk[]>]
    [-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
    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
  • wildcards
  • pipeline
  • Specifies the virtual machines to which replication groups apply. This parameter accepts both virtual machine and hard disk objects.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Filters the retrieved replication groups by ID.
    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.

    -StoragePolicy  <SpbmStoragePolicy>
    [-Datastore  <Datastore[]>]
    [-Name  <String[]>]
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    StoragePolicy
    SpbmStoragePolicy named
  • wildcards
  • pipeline
  • Specifies the storage policy to which the replication groups comply.
    optional
    Datastore
    Datastore[] named
  • wildcards
  • pipeline
  • 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
    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

    Feedback

    Was this page helpful?