IWebSiteOperations.SwapSlotsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
You can swap a web site from one slot to another slot.
public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse> SwapSlotsAsync (string webSpaceName, string webSiteName, string sourceSlotName, string targetSlotName, System.Threading.CancellationToken cancellationToken);
abstract member SwapSlotsAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse>
Public Function SwapSlotsAsync (webSpaceName As String, webSiteName As String, sourceSlotName As String, targetSlotName As String, cancellationToken As CancellationToken) As Task(Of WebSiteOperationStatusResponse)
Parameters
- webSpaceName
- String
The name of the web space.
- webSiteName
- String
The name of the web site.
- sourceSlotName
- String
The name of the first web site slot to swap (source).
- targetSlotName
- String
The name of the second web site slot to swap with (target).
- cancellationToken
- CancellationToken
Cancellation token.
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
Azure SDK for .NET