Dela via


Web Apps - Get Diagnostic Logs Configuration Slot

Beskrivning för Hämtar loggningskonfigurationen för en app.

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

URI-parametrar

Name I Obligatorisk Typ Description
name
path True

string

Namnet på appen.

resourceGroupName
path True

string

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

Namnet på resursgruppen som resursen tillhör.

slot
path True

string

Namnet på distributionsfacket. Om ett fack inte anges hämtar API:et loggningskonfigurationen för produktionsplatsen.

subscriptionId
path True

string

Ditt Azure-prenumerations-ID. Det här är en GUID-formaterad sträng (t.ex. 00000000-0000-0000-0000-000000000000).

api-version
query True

string

API-version

Svar

Name Typ Description
200 OK

SiteLogsConfig

OKEJ

Other Status Codes

DefaultErrorResponse

App Service-felsvar.

Säkerhet

azure_auth

Azure Active Directory OAuth2 Flow

Typ: oauth2
Flow: implicit
Auktoriseringswebbadress: https://login.microsoftonline.com/common/oauth2/authorize

Omfattningar

Name Description
user_impersonation personifiera ditt användarkonto

Definitioner

Name Description
ApplicationLogsConfig

Konfiguration av programloggar.

AzureBlobStorageApplicationLogsConfig

Programmet loggar azure blob storage-konfigurationen.

AzureBlobStorageHttpLogsConfig

Http-loggar till Azure Blob Storage-konfiguration.

AzureTableStorageApplicationLogsConfig

Programloggar till Azure Table Storage-konfiguration.

DefaultErrorResponse

App Service-felsvar.

Details
EnabledConfig

Aktiverad konfiguration.

Error

Felmodell.

FileSystemApplicationLogsConfig

Programloggar för filsystemkonfiguration.

FileSystemHttpLogsConfig

Http-loggar till filsystemkonfiguration.

HttpLogsConfig

Konfiguration av HTTP-loggar.

LogLevel

Loggnivå.

SiteLogsConfig

Konfiguration av App Service-platsloggar.

ApplicationLogsConfig

Konfiguration av programloggar.

Name Typ Description
azureBlobStorage

AzureBlobStorageApplicationLogsConfig

Programloggar till bloblagringskonfiguration.

azureTableStorage

AzureTableStorageApplicationLogsConfig

Programloggar till Azure Table Storage-konfiguration.

fileSystem

FileSystemApplicationLogsConfig

Programloggar för filsystemkonfiguration.

AzureBlobStorageApplicationLogsConfig

Programmet loggar azure blob storage-konfigurationen.

Name Typ Description
level

LogLevel

Loggnivå.

retentionInDays

integer (int32)

Kvarhållning i dagar. Ta bort blobar som är äldre än X dagar. 0 eller lägre innebär ingen kvarhållning.

sasUrl

string

SAS-url till en Azure Blob-container med läs-/skriv-/list-/borttagningsbehörigheter.

AzureBlobStorageHttpLogsConfig

Http-loggar till Azure Blob Storage-konfiguration.

Name Typ Description
enabled

boolean

Sant om konfigurationen är aktiverad, false om den är inaktiverad och null om konfigurationen inte har angetts.

retentionInDays

integer (int32)

Kvarhållning i dagar. Ta bort blobar som är äldre än X dagar. 0 eller lägre innebär ingen kvarhållning.

sasUrl

string

SAS-url till en Azure Blob-container med läs-/skriv-/list-/borttagningsbehörigheter.

AzureTableStorageApplicationLogsConfig

Programloggar till Azure Table Storage-konfiguration.

Name Typ Description
level

LogLevel

Loggnivå.

sasUrl

string

SAS-URL till en Azure-tabell med behörighet att lägga till/fråga/ta bort.

DefaultErrorResponse

App Service-felsvar.

Name Typ Description
error

Error

Felmodell.

Details

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

EnabledConfig

Aktiverad konfiguration.

Name Typ Description
enabled

boolean

Sant om konfigurationen är aktiverad, false om den är inaktiverad och null om konfigurationen inte har angetts.

Error

Felmodell.

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

details

Details[]

Detaljerade fel.

innererror

string

Mer information om felsökningsfel.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

FileSystemApplicationLogsConfig

Programloggar för filsystemkonfiguration.

Name Typ Standardvärde Description
level

LogLevel

Off

Loggnivå.

FileSystemHttpLogsConfig

Http-loggar till filsystemkonfiguration.

Name Typ Description
enabled

boolean

Sant om konfigurationen är aktiverad, false om den är inaktiverad och null om konfigurationen inte har angetts.

retentionInDays

integer (int32)

Kvarhållning i dagar. Ta bort filer som är äldre än X dagar. 0 eller lägre innebär ingen kvarhållning.

retentionInMb

integer (int32)

minimum: 25
maximum: 100

Maximal storlek i megabyte som http-loggfiler kan använda. När du når gamla loggfiler tas de bort för att skapa utrymme för nya. Värdet kan vara mellan 25 och 100.

HttpLogsConfig

Konfiguration av HTTP-loggar.

Name Typ Description
azureBlobStorage

AzureBlobStorageHttpLogsConfig

Http-loggar till Azure Blob Storage-konfiguration.

fileSystem

FileSystemHttpLogsConfig

Http-loggar till filsystemkonfiguration.

LogLevel

Loggnivå.

Värde Description
Error
Information
Off
Verbose
Warning

SiteLogsConfig

Konfiguration av App Service-platsloggar.

Name Typ Description
id

string

Resurs-ID.

kind

string

Typ av resurs.

name

string

Resursnamn.

properties.applicationLogs

ApplicationLogsConfig

Konfiguration av programloggar.

properties.detailedErrorMessages

EnabledConfig

Detaljerad konfiguration av felmeddelanden.

properties.failedRequestsTracing

EnabledConfig

Det gick inte att spåra konfigurationen för begäranden.

properties.httpLogs

HttpLogsConfig

Konfiguration av HTTP-loggar.

type

string

Resurstyp.