Get-AzApiManagementOpenIdConnectProvider
取得 OpenID 連線 提供者。
Syntax
Get-AzApiManagementOpenIdConnectProvider
-Context <PsApiManagementContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementOpenIdConnectProvider
-Context <PsApiManagementContext>
[-OpenIdConnectProviderId <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementOpenIdConnectProvider
-Context <PsApiManagementContext>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzApiManagementOpenId 連線 Provider Cmdlet 會取得 Azure API 管理 中的 OpenID 連線 提供者。 ClientSecret 將不會包含在結果詳細數據中。 若要取得客戶端密碼,請使用 Get-AzApiManagementOpenId 連線 ProviderClientSecret。
範例
範例 1:取得所有提供者
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext
此命令會取得指定內容的所有 OpenID 連線 提供者。
範例 2:使用標識碼取得提供者
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext -OpenIdConnectProviderId "OICProvider01"
此命令會取得標識碼為 OICProvider01 的提供者。
範例 3:使用名稱取得提供者
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext -Name "Contoso OpenID Connect Provider"
此命令會取得名為 Contoso OpenID 連線 Provider 的提供者。
參數
-Context
指定 PsApiManagementContext 物件。
Type: | PsApiManagementContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
指定提供者的易記名稱。 如果您指定名稱,此 Cmdlet 會取得該提供者。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-OpenIdConnectProviderId
指定這個 Cmdlet 移除之提供者的標識碼。 如果您指定標識碼,此 Cmdlet 會取得該提供者。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸入
輸出
PsApiManagementOpenIdConnectProvider
相關連結
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應