Get-AzApiManagementGatewayHostnameConfiguration
取得現有閘道的所有或特定主機名組態。
語法
Get-AzApiManagementGatewayHostnameConfiguration
-Context <PsApiManagementContext>
-GatewayId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementGatewayHostnameConfiguration
-Context <PsApiManagementContext>
-GatewayId <String>
-GatewayHostnameConfigurationId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzApiManagementGatewayHostnameConfiguration Cmdlet 會取得現有網關的所有或特定主機名組態。
範例
範例 1:取得閘道的所有主機名設定
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementGatewayHostnameConfiguration -Context $apimContext -GatewayId "0123456789"
此命令會取得「0123456789」閘道的所有主機名組態。
範例 2:取得閘道的主機名設定
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementGatewayHostnameConfiguration -Context $apimContext -GatewayId "0123456789" -GatewayHostnameConfigurationId "123"
此命令會取得 「0123456789」 閘道的 「123」 主機名組態。
參數
-Context
PsApiManagementContext 的實例。 這是必要參數。
類型: | PsApiManagementContext |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-GatewayHostnameConfigurationId
主機名組態標識碼。 這個參數是選擇性的。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-GatewayId
閘道識別碼。 這是必要參數。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |