Delen via


Web Apps - Restore From Deleted App

Beschrijving voor Herstelt een verwijderde web-app naar deze web-app.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restoreFromDeletedApp?api-version=2023-12-01

URI-parameters

Name In Vereist Type Description
name
path True

string

Naam van web-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 000000000-0000-0000-0000-000000000000).

api-version
query True

string

API-versie

Aanvraagbody

Name Type Description
kind

string

Soort resource.

properties.deletedSiteId

string

ARM-resource-id van de verwijderde app. Voorbeeld: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}

properties.recoverConfiguration

boolean

Als dit waar is, wordt de verwijderde siteconfiguratie, naast de inhoud, hersteld.

properties.snapshotTime

string

Tijdstip voor het herstellen van de verwijderde app, opgemaakt als een datum/tijd-tekenreeks. Als u dit niet hebt opgegeven, is de standaardwaarde de tijd waarop de app is verwijderd.

properties.useDRSecondary

boolean

Als waar is, wordt de momentopname opgehaald uit drSecondary-eindpunt.

Antwoorden

Name Type Description
200 OK

De herstelbewerking is gestart.

202 Accepted

De herstelbewerking is 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.

DeletedAppRestoreRequest

Details over het herstellen van een verwijderde app.

Details
Error

Foutmodel.

DefaultErrorResponse

App Service foutreactie.

Name Type Description
error

Error

Foutmodel.

DeletedAppRestoreRequest

Details over het herstellen van een verwijderde app.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.deletedSiteId

string

ARM-resource-id van de verwijderde app. Voorbeeld: /subscriptions/{subId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}

properties.recoverConfiguration

boolean

Als dit waar is, wordt de verwijderde siteconfiguratie, naast de inhoud, hersteld.

properties.snapshotTime

string

Tijdstip voor het herstellen van de verwijderde app, opgemaakt als een datum/tijd-tekenreeks. Als u dit niet hebt opgegeven, is de standaardwaarde de tijd waarop de app is verwijderd.

properties.useDRSecondary

boolean

Als waar is, wordt de momentopname opgehaald uit drSecondary-eindpunt.

type

string

Resourcetype.

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.