Share via


Web Apps - Update Diagnostic Logs Config

Beschreibung für Updates der Protokollierungskonfiguration einer App.

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

URI-Parameter

Name In Erforderlich Typ Beschreibung
name
path True

string

Name der App

resourceGroupName
path True

string

Name der Ressourcengruppe, zu der die Ressource gehört.

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

subscriptionId
path True

string

die Azure-Abonnement-ID Dies ist eine GUID-formatierte Zeichenfolge (z. B. 00000000-0000-0000-0000-00000000000000).

api-version
query True

string

API-Version

Anforderungstext

Name Typ Beschreibung
kind

string

Art der Ressource.

properties.applicationLogs

ApplicationLogsConfig

Anwendungsprotokollkonfiguration.

properties.detailedErrorMessages

EnabledConfig

Detaillierte Konfiguration von Fehlermeldungen.

properties.failedRequestsTracing

EnabledConfig

Fehler bei der Konfiguration der Anforderungsablaufverfolgung.

properties.httpLogs

HttpLogsConfig

HTTP-Protokollkonfiguration.

Antworten

Name Typ Beschreibung
200 OK

SiteLogsConfig

OK

Other Status Codes

DefaultErrorResponse

App Service Fehlerantwort.

Sicherheit

azure_auth

Azure Active Directory-OAuth2-Flow

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

Scopes

Name Beschreibung
user_impersonation Identitätswechsel Ihres Benutzerkontos

Definitionen

Name Beschreibung
ApplicationLogsConfig

Anwendungsprotokollkonfiguration.

AzureBlobStorageApplicationLogsConfig

Anwendungsprotokolle für die Azure Blob Storage-Konfiguration.

AzureBlobStorageHttpLogsConfig

Http-Protokolle für die Azure Blob Storage-Konfiguration.

AzureTableStorageApplicationLogsConfig

Anwendungsprotokolle für die Azure-Tabellenspeicherkonfiguration.

DefaultErrorResponse

App Service Fehlerantwort.

Details
EnabledConfig

Konfiguration aktiviert.

Error

Fehlermodell.

FileSystemApplicationLogsConfig

Anwendungsprotokolle für die Dateisystemkonfiguration.

FileSystemHttpLogsConfig

Http-Protokolle für die Dateisystemkonfiguration.

HttpLogsConfig

Http-Protokollkonfiguration.

LogLevel

Protokollebene.

SiteLogsConfig

Konfiguration von App Service Standortprotokollen.

ApplicationLogsConfig

Anwendungsprotokollkonfiguration.

Name Typ Beschreibung
azureBlobStorage

AzureBlobStorageApplicationLogsConfig

Anwendungsprotokolle für die Blobspeicherkonfiguration.

azureTableStorage

AzureTableStorageApplicationLogsConfig

Anwendungsprotokolle für die Azure-Tabellenspeicherkonfiguration.

fileSystem

FileSystemApplicationLogsConfig

Anwendungsprotokolle für die Dateisystemkonfiguration.

AzureBlobStorageApplicationLogsConfig

Anwendungsprotokolle für die Azure Blob Storage-Konfiguration.

Name Typ Beschreibung
level

LogLevel

Protokollebene.

retentionInDays

integer

Aufbewahrung in Tagen. Entfernen Sie Blobs, die älter als X Tage sind. 0 oder niedriger bedeutet keine Aufbewahrung.

sasUrl

string

SAS-URL zu einem Azure-Blobcontainer mit Lese-,Schreib-/Listen-/Löschberechtigungen.

AzureBlobStorageHttpLogsConfig

Http-Protokolle für die Azure Blob Storage-Konfiguration.

Name Typ Beschreibung
enabled

boolean

True, wenn die Konfiguration aktiviert ist, false, wenn sie deaktiviert ist, und NULL, wenn die Konfiguration nicht festgelegt ist.

retentionInDays

integer

Aufbewahrung in Tagen. Entfernen Sie Blobs, die älter als X Tage sind. 0 oder niedriger bedeutet keine Aufbewahrung.

sasUrl

string

SAS-URL zu einem Azure-Blobcontainer mit Lese-,Schreib-/Listen-/Löschberechtigungen.

AzureTableStorageApplicationLogsConfig

Anwendungsprotokolle für die Azure-Tabellenspeicherkonfiguration.

Name Typ Beschreibung
level

LogLevel

Protokollebene.

sasUrl

string

SAS-URL für eine Azure-Tabelle mit Berechtigungen zum Hinzufügen/Abfragen/Löschen.

DefaultErrorResponse

App Service Fehlerantwort.

Name Typ Beschreibung
error

Error

Fehlermodell.

Details

Name Typ Beschreibung
code

string

Standardisierte Zeichenfolge, um den Fehler programmgesteuert zu identifizieren.

message

string

Detaillierte Fehlerbeschreibung und Debuginformationen.

target

string

Detaillierte Fehlerbeschreibung und Debuginformationen.

EnabledConfig

Konfiguration aktiviert.

Name Typ Beschreibung
enabled

boolean

True, wenn die Konfiguration aktiviert ist, false, wenn sie deaktiviert ist, und NULL, wenn die Konfiguration nicht festgelegt ist.

Error

Fehlermodell.

Name Typ Beschreibung
code

string

Standardisierte Zeichenfolge, um den Fehler programmgesteuert zu identifizieren.

details

Details[]

Detaillierte Fehler.

innererror

string

Weitere Informationen zum Debuggen eines Fehlers.

message

string

Detaillierte Fehlerbeschreibung und Debuginformationen.

target

string

Detaillierte Fehlerbeschreibung und Debuginformationen.

FileSystemApplicationLogsConfig

Anwendungsprotokolle für die Dateisystemkonfiguration.

Name Typ Standardwert Beschreibung
level

LogLevel

Off

Protokollebene.

FileSystemHttpLogsConfig

Http-Protokolle für die Dateisystemkonfiguration.

Name Typ Beschreibung
enabled

boolean

True, wenn die Konfiguration aktiviert ist, false, wenn sie deaktiviert ist, und NULL, wenn die Konfiguration nicht festgelegt ist.

retentionInDays

integer

Aufbewahrung in Tagen. Entfernen Sie Dateien, die älter als X Tage sind. 0 oder niedriger bedeutet keine Aufbewahrung.

retentionInMb

integer

Die maximale Größe in Megabytes, die http-Protokolldateien verwenden können. Wenn sie erreicht sind, werden alte Protokolldateien entfernt, um Platz für neue Protokolldateien zu schaffen. Der Wert kann zwischen 25 und 100 liegen.

HttpLogsConfig

Http-Protokollkonfiguration.

Name Typ Beschreibung
azureBlobStorage

AzureBlobStorageHttpLogsConfig

Http-Protokolle für die Azure Blob Storage-Konfiguration.

fileSystem

FileSystemHttpLogsConfig

Http-Protokolle für die Dateisystemkonfiguration.

LogLevel

Protokollebene.

Name Typ Beschreibung
Error

string

Information

string

Off

string

Verbose

string

Warning

string

SiteLogsConfig

Konfiguration von App Service Standortprotokollen.

Name Typ Beschreibung
id

string

Ressourcen-ID.

kind

string

Art der Ressource.

name

string

Ressourcenname.

properties.applicationLogs

ApplicationLogsConfig

Anwendungsprotokollkonfiguration.

properties.detailedErrorMessages

EnabledConfig

Detaillierte Konfiguration von Fehlermeldungen.

properties.failedRequestsTracing

EnabledConfig

Fehler bei der Konfiguration der Anforderungsablaufverfolgung.

properties.httpLogs

HttpLogsConfig

HTTP-Protokollkonfiguration.

type

string

Der Ressourcentyp.