次の方法で共有


Web Apps - Get Diagnostic Logs Configuration

[説明] アプリのログ記録構成を取得します。

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs?api-version=2022-03-01

URI パラメーター

名前 / 必須 説明
name
path True

string

アプリの名前。

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

リソースが属するリソース グループの名前。

subscriptionId
path True

string

Azure サブスクリプション ID。 これは GUID 形式の文字列です (例: 000000000-0000-0000-0000-000000000000)。

api-version
query True

string

API バージョン

応答

名前 説明
200 OK

SiteLogsConfig

わかりました

Other Status Codes

DefaultErrorResponse

App Service エラー応答。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

定義

名前 説明
ApplicationLogsConfig

アプリケーション ログの構成。

AzureBlobStorageApplicationLogsConfig

アプリケーションは、Azure BLOB ストレージの構成をログに記録します。

AzureBlobStorageHttpLogsConfig

Azure BLOB ストレージ構成への Http ログ。

AzureTableStorageApplicationLogsConfig

Azure Table Storage の構成に対するアプリケーション ログ。

DefaultErrorResponse

App Service エラー応答。

Details
EnabledConfig

有効な構成。

Error

エラー モデル。

FileSystemApplicationLogsConfig

ファイル システム構成へのアプリケーション ログ。

FileSystemHttpLogsConfig

ファイル システム構成への Http ログ。

HttpLogsConfig

Http ログの構成。

LogLevel

ログ レベル。

SiteLogsConfig

App Service サイト ログの構成。

ApplicationLogsConfig

アプリケーション ログの構成。

名前 説明
azureBlobStorage

AzureBlobStorageApplicationLogsConfig

BLOB ストレージ構成に対するアプリケーション ログ。

azureTableStorage

AzureTableStorageApplicationLogsConfig

Azure Table Storage の構成に対するアプリケーション ログ。

fileSystem

FileSystemApplicationLogsConfig

ファイル システム構成へのアプリケーション ログ。

AzureBlobStorageApplicationLogsConfig

アプリケーションは、Azure BLOB ストレージの構成をログに記録します。

名前 説明
level

LogLevel

ログ レベル。

retentionInDays

integer (int32)

リテンション期間 (日数)。 X 日より前の BLOB を削除します。 0 以下は、保持がないことを意味します。

sasUrl

string

読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。

AzureBlobStorageHttpLogsConfig

Azure BLOB ストレージ構成への Http ログ。

名前 説明
enabled

boolean

構成が有効な場合は true、無効な場合は false、構成が設定されていない場合は null。

retentionInDays

integer (int32)

リテンション期間 (日数)。 X 日より前の BLOB を削除します。 0 以下は、保持がないことを意味します。

sasUrl

string

読み取り/書き込み/リスト/削除のアクセス許可を持つ Azure BLOB コンテナーへの SAS URL。

AzureTableStorageApplicationLogsConfig

Azure Table Storage の構成に対するアプリケーション ログ。

名前 説明
level

LogLevel

ログ レベル。

sasUrl

string

追加/クエリ/削除アクセス許可を持つ Azure テーブルへの SAS URL。

DefaultErrorResponse

App Service エラー応答。

名前 説明
error

Error

エラー モデル。

Details

名前 説明
code

string

プログラムによってエラーを識別するための標準化された文字列。

message

string

エラーの詳細な説明とデバッグ情報。

target

string

エラーの詳細な説明とデバッグ情報。

EnabledConfig

有効な構成。

名前 説明
enabled

boolean

構成が有効な場合は true、無効な場合は false、構成が設定されていない場合は null。

Error

エラー モデル。

名前 説明
code

string

プログラムによってエラーを識別するための標準化された文字列。

details

Details[]

詳細なエラー。

innererror

string

デバッグ エラーの詳細。

message

string

エラーの詳細な説明とデバッグ情報。

target

string

エラーの詳細な説明とデバッグ情報。

FileSystemApplicationLogsConfig

ファイル システム構成へのアプリケーション ログ。

名前 規定値 説明
level

LogLevel

Off

ログ レベル。

FileSystemHttpLogsConfig

ファイル システム構成への Http ログ。

名前 説明
enabled

boolean

構成が有効な場合は true、無効な場合は false、構成が設定されていない場合は null。

retentionInDays

integer (int32)

リテンション期間 (日数)。 X 日より前のファイルを削除します。 0 以下は、保持がないことを意味します。

retentionInMb

integer (int32)

minimum: 25
maximum: 100

http ログ ファイルで使用できる最大サイズ (メガバイト単位)。 古いログ ファイルに達すると、新しいログ ファイル用の領域を作成するために削除されます。 値の範囲は 25 ~ 100 です。

HttpLogsConfig

Http ログの構成。

名前 説明
azureBlobStorage

AzureBlobStorageHttpLogsConfig

Azure BLOB ストレージ構成への Http ログ。

fileSystem

FileSystemHttpLogsConfig

ファイル システム構成への Http ログ。

LogLevel

ログ レベル。

説明
Error
Information
Off
Verbose
Warning

SiteLogsConfig

App Service サイト ログの構成。

名前 説明
id

string

リソース ID。

kind

string

リソースの種類。

name

string

リソース名。

properties.applicationLogs

ApplicationLogsConfig

アプリケーション ログの構成。

properties.detailedErrorMessages

EnabledConfig

詳細なエラー メッセージの構成。

properties.failedRequestsTracing

EnabledConfig

失敗した要求のトレース構成。

properties.httpLogs

HttpLogsConfig

HTTP ログの構成。

type

string

リソースの種類。