Condividi tramite


IWebAppsOperations.BeginRestoreSnapshotSlotWithHttpMessagesAsync Metodo

Definizione

Ripristina un'app Web da uno snapshot.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginRestoreSnapshotSlotWithHttpMessagesAsync (string resourceGroupName, string name, Microsoft.Azure.Management.AppService.Fluent.Models.SnapshotRestoreRequest restoreRequest, string slot, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginRestoreSnapshotSlotWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.AppService.Fluent.Models.SnapshotRestoreRequest * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function BeginRestoreSnapshotSlotWithHttpMessagesAsync (resourceGroupName As String, name As String, restoreRequest As SnapshotRestoreRequest, slot As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

Parametri

resourceGroupName
String

Nome del gruppo di risorse a cui appartiene la risorsa.

name
String

Nome dell'app Web.

restoreRequest
SnapshotRestoreRequest

Impostazioni di ripristino dello snapshot. È possibile ottenere informazioni snapshot chiamando GetDeletedSites o l'API GetSiteSnapshots.

slot
String

Nome dello slot dell'app Web. Se non specificato, per impostazione predefinita verrà predefinito lo slot di produzione.

customHeaders
Dictionary<String,List<String>>

Intestazioni che verranno aggiunte alla richiesta.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Eccezioni

Generata quando l'operazione ha restituito un codice di stato non valido

Generata quando l'operazione ha restituito un codice di stato non valido

Generata quando un parametro obbligatorio è Null

Commenti

Descrizione per Ripristinare un'app Web da uno snapshot.

Si applica a