Get-AzApiManagementOpenIdConnectProvider
OpenID Connect プロバイダーを取得します。
構文
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>]
説明
Get-AzApiManagementOpenIdConnectProvider コマンドレットは、Azure API Management で OpenID Connect プロバイダーを取得します。 ClientSecret は結果の詳細には含まれません。 クライアント シークレットを取得するには、Get-AzApiManagementOpenIdConnectProviderClientSecret を使用します。
例
例 1: すべてのプロバイダーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext
このコマンドは、指定されたコンテキストのすべての OpenID Connect プロバイダーを取得します。
例 2: ID を使用してプロバイダーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext -OpenIdConnectProviderId "OICProvider01"
このコマンドは、ID OICProvider01 を持つプロバイダーを取得します。
例 3: 名前を使用してプロバイダーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementOpenIdConnectProvider -Context $apimContext -Name "Contoso OpenID Connect Provider"
このコマンドは、Contoso OpenID Connect 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
プロバイダーのフレンドリ名を指定します。 名前を指定すると、このコマンドレットはそのプロバイダーを取得します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-OpenIdConnectProviderId
このコマンドレットが削除するプロバイダーの ID を指定します。 ID を指定すると、このコマンドレットはそのプロバイダーを取得します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
入力
出力
PsApiManagementOpenIdConnectProvider