Web Apps - Update Diagnostic Logs Config
Beschrijving voor Updates de configuratie van logboekregistratie van een app.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs?api-version=2023-12-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Naam van de app. |
resource
|
path | True |
string |
Naam van de resourcegroep waartoe de resource behoort. Regex-patroon: |
subscription
|
path | True |
string |
Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 000000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API-versie |
Aanvraagbody
Name | Type | Description |
---|---|---|
kind |
string |
Soort resource. |
properties.applicationLogs |
Configuratie van toepassingslogboeken. |
|
properties.detailedErrorMessages |
Gedetailleerde configuratie van foutberichten. |
|
properties.failedRequestsTracing |
Configuratie voor tracering van mislukte aanvragen. |
|
properties.httpLogs |
Configuratie van HTTP-logboeken. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
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 |
---|---|
Application |
Configuratie van toepassingslogboeken. |
Azure |
Toepassingslogboeken azure blob storage-configuratie. |
Azure |
HTTP-logboeken naar azure blob storage-configuratie. |
Azure |
Toepassingslogboeken naar configuratie van Azure Table Storage. |
Default |
App Service foutreactie. |
Details | |
Enabled |
Configuratie ingeschakeld. |
Error |
Foutmodel. |
File |
Toepassingslogboeken naar bestandssysteemconfiguratie. |
File |
HTTP-logboeken naar bestandssysteemconfiguratie. |
Http |
Configuratie van HTTP-logboeken. |
Log |
Logboekniveau. |
Site |
Configuratie van App Service sitelogboeken. |
ApplicationLogsConfig
Configuratie van toepassingslogboeken.
Name | Type | Description |
---|---|---|
azureBlobStorage |
Toepassingslogboeken naar blobopslagconfiguratie. |
|
azureTableStorage |
Toepassingslogboeken naar azure Table Storage-configuratie. |
|
fileSystem |
Toepassingslogboeken naar bestandssysteemconfiguratie. |
AzureBlobStorageApplicationLogsConfig
Toepassingslogboeken azure blob storage-configuratie.
Name | Type | Description |
---|---|---|
level |
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 |
Waar 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 configuratie van Azure Table Storage.
Name | Type | Description |
---|---|---|
level |
Logboekniveau. |
|
sasUrl |
string |
SAS-URL naar een Azure-tabel met machtigingen voor toevoegen/query's/verwijderen. |
DefaultErrorResponse
App Service foutreactie.
Name | Type | Description |
---|---|---|
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 |
Waar 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 | Off |
Logboekniveau. |
FileSystemHttpLogsConfig
HTTP-logboeken naar bestandssysteemconfiguratie.
Name | Type | Description |
---|---|---|
enabled |
boolean |
Waar 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 dit is 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 |
HTTP-logboeken naar azure blob storage-configuratie. |
|
fileSystem |
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 |
Configuratie van toepassingslogboeken. |
|
properties.detailedErrorMessages |
Gedetailleerde configuratie van foutberichten. |
|
properties.failedRequestsTracing |
Configuratie voor tracering van mislukte aanvragen. |
|
properties.httpLogs |
Configuratie van HTTP-logboeken. |
|
type |
string |
Resourcetype. |