Web Apps - Update Diagnostic Logs Config Slot

アプリのログ記録構成をUpdatesするための説明。

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs?api-version=2023-12-01

URI パラメーター

名前 / 必須 説明
name
path True

string

アプリの名前。

resourceGroupName
path True

string

リソースが属しているリソース グループの名前。

Regex pattern: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

デプロイ スロットの名前。 スロットが指定されていない場合、API によって運用スロットのログ構成が更新されます。

subscriptionId
path True

string

Azure のサブスクリプション ID。 これは GUID 形式の文字列です (たとえば、000000000-0000-0000-0000-000000000000000000000000000000000000000000000000000000000000、

api-version
query True

string

API バージョン

要求本文

名前 説明
kind

string

リソースの種類。

properties.applicationLogs

ApplicationLogsConfig

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

properties.detailedErrorMessages

EnabledConfig

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

properties.failedRequestsTracing

EnabledConfig

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

properties.httpLogs

HttpLogsConfig

HTTP ログの構成。

応答

名前 説明
200 OK

SiteLogsConfig

OK

Other Status Codes

DefaultErrorResponse

エラー応答をApp Serviceします。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名前 説明
user_impersonation ユーザー アカウントの借用

定義

名前 説明
ApplicationLogsConfig

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

AzureBlobStorageApplicationLogsConfig

アプリケーション ログ Azure BLOB ストレージの構成。

AzureBlobStorageHttpLogsConfig

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

AzureTableStorageApplicationLogsConfig

Azure テーブル ストレージの構成に対するアプリケーション ログ。

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

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

sasUrl

string

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

AzureBlobStorageHttpLogsConfig

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

名前 説明
enabled

boolean

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

retentionInDays

integer

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

sasUrl

string

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

AzureTableStorageApplicationLogsConfig

Azure テーブル ストレージの構成に対するアプリケーション ログ。

名前 説明
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

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

retentionInMb

integer

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

HttpLogsConfig

Http ログの構成。

名前 説明
azureBlobStorage

AzureBlobStorageHttpLogsConfig

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

fileSystem

FileSystemHttpLogsConfig

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

LogLevel

ログ レベル。

名前 説明
Error

string

Information

string

Off

string

Verbose

string

Warning

string

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

リソースの種類。