WebSiteOperationsExtensions.SwapSlotsAsync Method

Definition

You can swap a web site from one slot to another slot.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse> SwapSlotsAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName, string sourceSlotName, string targetSlotName);
static member SwapSlotsAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse>
<Extension()>
Public Function SwapSlotsAsync (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String, sourceSlotName As String, targetSlotName As String) As Task(Of WebSiteOperationStatusResponse)

Parameters

operations
IWebSiteOperations

Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.

webSpaceName
String

Required. The name of the web space.

webSiteName
String

Required. The name of the web site.

sourceSlotName
String

Required. The name of the first web site slot to swap (source).

targetSlotName
String

Required. The name of the second web site slot to swap with (target).

Returns

The response body contains the status of the specified long-running operation, indicating whether it has succeeded, is inprogress, has timed out, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the long-running operation failed, the response body includes error information regarding the failure.

Applies to