Edit

Share via


Get-AzApiManagementGatewayHostnameConfiguration

Gets all or specific hostname configuration for the existing Gateway.

Syntax

GetByGatewayId (Default)

Get-AzApiManagementGatewayHostnameConfiguration
    -Context <PsApiManagementContext>
    -GatewayId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

GetByGatewayHostnameId

Get-AzApiManagementGatewayHostnameConfiguration
    -Context <PsApiManagementContext>
    -GatewayId <String>
    -GatewayHostnameConfigurationId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzApiManagementGatewayHostnameConfiguration cmdlet gets all or specific hostname configuration for the existing Gateway.

Examples

Example 1: Get all hostname configurations for the gateway

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementGatewayHostnameConfiguration -Context $apimContext  -GatewayId "0123456789"

This command gets all hostname configurations for a "0123456789" gateway.

Example 2: Get a hostname configuration for the gateway

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementGatewayHostnameConfiguration -Context $apimContext -GatewayId "0123456789" -GatewayHostnameConfigurationId "123"

This command gets "123" hostname configuration for a "0123456789" gateway.

Parameters

-Context

Instance of PsApiManagementContext. This parameter is required.

Parameter properties

Type:PsApiManagementContext
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-GatewayHostnameConfigurationId

Hostname Configuration identifier. This parameter is optional.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetByGatewayHostnameId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-GatewayId

Gateway identifier. This parameter is required.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

PsApiManagementContext

String

Outputs

PsApiManagementGatewayHostnameConfiguration