Delen via


Web Apps - Restart

Beschrijving voor Start een app (of implementatiesite, indien opgegeven) opnieuw op.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart?api-version=2023-12-01
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart?softRestart={softRestart}&synchronous={synchronous}&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\._\(\)]+[^\.]$

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

softRestart
query

boolean

Geef true op om de configuratie-instellingen toe te passen en start de app alleen opnieuw als dat nodig is. Standaard wordt de API altijd opnieuw opgestart en wordt de app opnieuw opgegeven.

synchronous
query

boolean

Geef true op om te blokkeren totdat de app opnieuw wordt gestart. Deze is standaard ingesteld op false en de API reageert onmiddellijk (asynchroon).

Antwoorden

Name Type Description
200 OK

De app is opnieuw gestart.

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
DefaultErrorResponse

App Service foutreactie.

Details
Error

Foutmodel.

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.

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.