This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRDefaultGatewayConfiguration

In this article

    Short Description

    Returns configuration of default gateways.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    This cmdlet provides two parameter sets.

    • For looking for default gateways of all cloud service providers:

    Get-VBRDefaultGatewayConfiguration  [<CommonParameters>]

    • For looking for default gateways of a selected cloud service provider:

    Get-VBRDefaultGatewayConfiguration [-CloudProvider <VBRCloudProvider[]>]  [<CommonParameters>]

    Detailed Description

    This cmdlet returns configuration information on service provider default gateways. You can get information about all gateways of all service providers, or look for a selected service provider. Use an appropriate parameter set for each case.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    CloudProvider

    Specifies the array of cloud providers. The cmdlet will return the default gateways of these cloud providers.

    False

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Related Commands

    Get-VBRCloudProvider

    Return Type

    VBRDefaultGatewayConfiguration[]

    Example 1

    This command looks for configuration of default gateways of all cloud providers.

    PS C:\PS> Get-VBRDefaultGatewayConfiguration

    Example 2

    This example shows how to look for configuration of default gateway of the selected cloud provider.

    1. Run Get-VBRCloudProvider to get the cloud service provider. Save the result to the $cloudprovider variable.
    2. Run Get-VBRDefaultGatewayConfiguration to get the configuration of default gateways of a selected cloud provider. Use the saved variable.

    PS C:\PS> $cloudprovider = Get-VBRCloudprovider -Name "Cloud provider01"

    PS C:\PS> Get-VBRDefaultGatewayConfiguration -CloudProvider $cloudprovider