WebSiteOperationsExtensions.BeginSwappingSlotsAsync 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 static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse> BeginSwappingSlotsAsync (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName, string sourceSlotName, string targetSlotName);
static member BeginSwappingSlotsAsync : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.WebSites.Models.WebSiteOperationStatusResponse>
<Extension()>
Public Function BeginSwappingSlotsAsync (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
Azure SDK for .NET