Delen via


Web Apps - Get Diagnostic Logs Configuration Slot

Beschrijving voor Hiermee haalt u de configuratie voor logboekregistratie van een app op.

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

URI-parameters

Name In Vereist Type Description
name
path True

string

Naam van de app.

resourceGroupName
path True

string

Naam van de resourcegroep waartoe de resource behoort.

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

slot
path True

string

Naam van de implementatiesite. Als er geen site is opgegeven, krijgt de API de configuratie voor logboekregistratie voor de productiesite.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000).

api-version
query True

string

API-versie

Antwoorden

Name Type Description
200 OK

SiteLogsConfig

OK

Other Status Codes

DefaultErrorResponse

App Service foutreactie.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation uw gebruikersaccount imiteren

Definities

Name Description
ApplicationLogsConfig

Configuratie van toepassingslogboeken.

AzureBlobStorageApplicationLogsConfig

Toepassingslogboeken azure blob storage-configuratie.

AzureBlobStorageHttpLogsConfig

HTTP-logboeken naar azure Blob Storage-configuratie.

AzureTableStorageApplicationLogsConfig

Toepassingslogboeken naar Azure Table Storage-configuratie.

DefaultErrorResponse

App Service foutreactie.

Details
EnabledConfig

Configuratie ingeschakeld.

Error

Foutmodel.

FileSystemApplicationLogsConfig

Toepassingslogboeken naar bestandssysteemconfiguratie.

FileSystemHttpLogsConfig

HTTP-logboeken naar bestandssysteemconfiguratie.

HttpLogsConfig

Configuratie van HTTP-logboeken.

LogLevel

Logboekniveau.

SiteLogsConfig

Configuratie van App Service sitelogboeken.

ApplicationLogsConfig

Configuratie van toepassingslogboeken.

Name Type Description
azureBlobStorage

AzureBlobStorageApplicationLogsConfig

Toepassingslogboeken naar blobopslagconfiguratie.

azureTableStorage

AzureTableStorageApplicationLogsConfig

Toepassingslogboeken naar azure Table Storage-configuratie.

fileSystem

FileSystemApplicationLogsConfig

Toepassingslogboeken naar bestandssysteemconfiguratie.

AzureBlobStorageApplicationLogsConfig

Toepassingslogboeken azure blob storage-configuratie.

Name Type Description
level

LogLevel

Logboekniveau.

retentionInDays

integer

Retentie in dagen. Verwijder blobs die ouder zijn dan X dagen. 0 of lager betekent geen retentie.

sasUrl

string

SAS-URL naar een Azure Blob-container met machtigingen voor lezen/schrijven/lijst/verwijderen.

AzureBlobStorageHttpLogsConfig

HTTP-logboeken naar azure Blob Storage-configuratie.

Name Type Description
enabled

boolean

True als configuratie is ingeschakeld, onwaar als deze is uitgeschakeld en null als de configuratie niet is ingesteld.

retentionInDays

integer

Retentie in dagen. Verwijder blobs die ouder zijn dan X dagen. 0 of lager betekent geen retentie.

sasUrl

string

SAS-URL naar een Azure Blob-container met machtigingen voor lezen/schrijven/lijst/verwijderen.

AzureTableStorageApplicationLogsConfig

Toepassingslogboeken naar Azure Table Storage-configuratie.

Name Type Description
level

LogLevel

Logboekniveau.

sasUrl

string

SAS-URL naar een Azure-tabel met machtigingen voor toevoegen/query's/verwijderen.

DefaultErrorResponse

App Service foutreactie.

Name Type Description
error

Error

Foutmodel.

Details

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

EnabledConfig

Configuratie ingeschakeld.

Name Type Description
enabled

boolean

True als configuratie is ingeschakeld, onwaar als deze is uitgeschakeld en null als de configuratie niet is ingesteld.

Error

Foutmodel.

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

details

Details[]

Gedetailleerde fouten.

innererror

string

Meer informatie over foutopsporing.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

FileSystemApplicationLogsConfig

Toepassingslogboeken naar bestandssysteemconfiguratie.

Name Type Default value Description
level

LogLevel

Off

Logboekniveau.

FileSystemHttpLogsConfig

HTTP-logboeken naar bestandssysteemconfiguratie.

Name Type Description
enabled

boolean

True als configuratie is ingeschakeld, onwaar als deze is uitgeschakeld en null als de configuratie niet is ingesteld.

retentionInDays

integer

Retentie in dagen. Verwijder bestanden die ouder zijn dan X dagen. 0 of lager betekent geen retentie.

retentionInMb

integer

Maximale grootte in megabytes die http-logboekbestanden kunnen gebruiken. Wanneer u bereikt, worden oude logboekbestanden verwijderd om ruimte te maken voor nieuwe. De waarde kan variƫren tussen 25 en 100.

HttpLogsConfig

Configuratie van HTTP-logboeken.

Name Type Description
azureBlobStorage

AzureBlobStorageHttpLogsConfig

HTTP-logboeken naar azure Blob Storage-configuratie.

fileSystem

FileSystemHttpLogsConfig

HTTP-logboeken naar bestandssysteemconfiguratie.

LogLevel

Logboekniveau.

Name Type Description
Error

string

Information

string

Off

string

Verbose

string

Warning

string

SiteLogsConfig

Configuratie van App Service sitelogboeken.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.applicationLogs

ApplicationLogsConfig

Configuratie van toepassingslogboeken.

properties.detailedErrorMessages

EnabledConfig

Configuratie van gedetailleerde foutberichten.

properties.failedRequestsTracing

EnabledConfig

Configuratie voor tracering van mislukte aanvragen.

properties.httpLogs

HttpLogsConfig

Configuratie van HTTP-logboeken.

type

string

Resourcetype.