Freigeben über


WebSiteResource.SwapSlotWithProductionAsync Methode

Definition

Beschreibung für Swaps zwei Bereitstellungsslots einer App.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slotsswap
  • Vorgang IdWebApps_SwapSlotWithProduction
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> SwapSlotWithProductionAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.AppService.Models.CsmSlotEntity slotSwapEntity, System.Threading.CancellationToken cancellationToken = default);
abstract member SwapSlotWithProductionAsync : Azure.WaitUntil * Azure.ResourceManager.AppService.Models.CsmSlotEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.SwapSlotWithProductionAsync : Azure.WaitUntil * Azure.ResourceManager.AppService.Models.CsmSlotEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function SwapSlotWithProductionAsync (waitUntil As WaitUntil, slotSwapEntity As CsmSlotEntity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

slotSwapEntity
CsmSlotEntity

JSON-Objekt, das den Namen des Zielslots enthält. Weitere Informationen sind im Beispiel enthalten.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

slotSwapEntity ist NULL.

Gilt für: