Get-AzApiManagementLogger
API Management Logger オブジェクトを取得します。
構文
Get-AzApiManagementLogger
-Context <PsApiManagementContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzApiManagementLogger
-Context <PsApiManagementContext>
-LoggerId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
説明
Get-AzApiManagementLogger コマンドレットは、Azure API Management ロガーまたはすべてのロガーを取得します。
例
例 1: すべてのロガーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementLogger -Context $apimContext
このコマンドは、指定されたコンテキストのすべてのロガーを取得します。
例 2: 特定のロガーを取得する
$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Get-AzApiManagementLogger -Context $apimContext -LoggerId "Logger123"
このコマンドは、ID Logger123 を持つロガーを削除します。
パラメーター
-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 |
-LoggerId
取得する特定のロガーの ID を指定します。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |