IWebSiteOperations.SwapSlotsAsync Method (String, String, String, String, CancellationToken)
You can swap a web site from one slot to another slot.
Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
Task<WebSiteOperationStatusResponse> SwapSlotsAsync(
string webSpaceName,
string webSiteName,
string sourceSlotName,
string targetSlotName,
CancellationToken cancellationToken
)
Task<WebSiteOperationStatusResponse^>^ SwapSlotsAsync(
String^ webSpaceName,
String^ webSiteName,
String^ sourceSlotName,
String^ targetSlotName,
CancellationToken cancellationToken
)
abstract SwapSlotsAsync :
webSpaceName:string *
webSiteName:string *
sourceSlotName:string *
targetSlotName:string *
cancellationToken:CancellationToken -> Task<WebSiteOperationStatusResponse>
Function SwapSlotsAsync (
webSpaceName As String,
webSiteName As String,
sourceSlotName As String,
targetSlotName As String,
cancellationToken As CancellationToken
) As Task(Of WebSiteOperationStatusResponse)
Parameters
webSpaceName
Type: System.StringThe name of the web space.
webSiteName
Type: System.StringThe name of the web site.
sourceSlotName
Type: System.StringThe name of the first web site slot to swap (source).
targetSlotName
Type: System.StringThe name of the second web site slot to swap with (target).
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<WebSiteOperationStatusResponse>
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.
See Also
IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace
Return to top