Web Apps - Get Diagnostic Logs Configuration Slot
Beschreibung für Ruft die Protokollierungskonfiguration einer App ab.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs?api-version=2023-12-01
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
name
|
path | True |
string |
Name der App |
resource
|
path | True |
string |
Name der Ressourcengruppe, zu der die Ressource gehört. Regex pattern: |
slot
|
path | True |
string |
Name des Bereitstellungsslots. Wenn kein Slot angegeben ist, ruft die API die Protokollierungskonfiguration für den Produktionsslot ab. |
subscription
|
path | True |
string |
die Azure-Abonnement-ID Dies ist eine GUID-formatierte Zeichenfolge (z. B. 0000000-0000-0000-0000-00000000000000000). |
api-version
|
query | True |
string |
API-Version |
Antworten
Name | Typ | Beschreibung |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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 |
---|---|
Application |
Konfiguration von Anwendungsprotokollen. |
Azure |
Die Azure Blob Storage-Konfiguration wird von der Anwendung protokolliert. |
Azure |
HTTP-Protokolle für die Azure Blob Storage-Konfiguration. |
Azure |
Anwendungsprotokolle für die Azure Table Storage-Konfiguration. |
Default |
App Service Fehlerantwort. |
Details | |
Enabled |
Aktivierte Konfiguration. |
Error |
Fehlermodell. |
File |
Anwendungsprotokolle für die Dateisystemkonfiguration. |
File |
HTTP-Protokolle für die Dateisystemkonfiguration. |
Http |
Konfiguration von HTTP-Protokollen. |
Log |
Protokollebene. |
Site |
Konfiguration von App Service-Websiteprotokollen. |
ApplicationLogsConfig
Konfiguration von Anwendungsprotokollen.
Name | Typ | Beschreibung |
---|---|---|
azureBlobStorage |
Anwendungsprotokolle in blob storage-Konfiguration. |
|
azureTableStorage |
Anwendungsprotokolle für die Azure Table Storage-Konfiguration. |
|
fileSystem |
Anwendungsprotokolle für die Dateisystemkonfiguration. |
AzureBlobStorageApplicationLogsConfig
Die Azure Blob Storage-Konfiguration wird von der Anwendung protokolliert.
Name | Typ | Beschreibung |
---|---|---|
level |
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 Table Storage-Konfiguration.
Name | Typ | Beschreibung |
---|---|---|
level |
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 |
Fehlermodell. |
Details
Name | Typ | Beschreibung |
---|---|---|
code |
string |
Standardisierte Zeichenfolge zum programmgesteuerten Identifizieren des Fehlers. |
message |
string |
Ausführliche Fehlerbeschreibung und Debuginformationen. |
target |
string |
Ausführliche Fehlerbeschreibung und Debuginformationen. |
EnabledConfig
Aktivierte 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. |
Error
Fehlermodell.
Name | Typ | Beschreibung |
---|---|---|
code |
string |
Standardisierte Zeichenfolge zum programmgesteuerten Identifizieren des Fehlers. |
details |
Details[] |
Detaillierte Fehler. |
innererror |
string |
Weitere Informationen zum Debuggen des Fehlers. |
message |
string |
Ausführliche Fehlerbeschreibung und Debuginformationen. |
target |
string |
Ausführliche Fehlerbeschreibung und Debuginformationen. |
FileSystemApplicationLogsConfig
Anwendungsprotokolle für die Dateisystemkonfiguration.
Name | Typ | Standardwert | Beschreibung |
---|---|---|---|
level | 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 |
Maximale Größe in Megabyte, die HTTP-Protokolldateien verwenden können. Wenn sie erreicht haben, werden alte Protokolldateien entfernt, um Speicherplatz für neue zu schaffen. Der Wert kann zwischen 25 und 100 liegen. |
HttpLogsConfig
Konfiguration von HTTP-Protokollen.
Name | Typ | Beschreibung |
---|---|---|
azureBlobStorage |
HTTP-Protokolle für die Azure Blob Storage-Konfiguration. |
|
fileSystem |
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-Websiteprotokollen.
Name | Typ | Beschreibung |
---|---|---|
id |
string |
Ressourcen-ID. |
kind |
string |
Art der Ressource. |
name |
string |
Ressourcenname. |
properties.applicationLogs |
Konfiguration von Anwendungsprotokollen. |
|
properties.detailedErrorMessages |
Detaillierte Konfiguration von Fehlermeldungen. |
|
properties.failedRequestsTracing |
Konfiguration der Ablaufverfolgung fehlgeschlagener Anforderungen. |
|
properties.httpLogs |
Konfiguration von HTTP-Protokollen. |
|
type |
string |
Der Ressourcentyp. |