WebSiteOperationsExtensions.BeginSwappingSlots Method (IWebSiteOperations, String, String, String, String)
You can swap a web site from one slot to another slot.
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
Syntax
public static WebSiteOperationStatusResponse BeginSwappingSlots(
this IWebSiteOperations operations,
string webSpaceName,
string webSiteName,
string sourceSlotName,
string targetSlotName
)
public:
[ExtensionAttribute]
static WebSiteOperationStatusResponse^ BeginSwappingSlots(
IWebSiteOperations^ operations,
String^ webSpaceName,
String^ webSiteName,
String^ sourceSlotName,
String^ targetSlotName
)
static member BeginSwappingSlots :
operations:IWebSiteOperations *
webSpaceName:string *
webSiteName:string *
sourceSlotName:string *
targetSlotName:string -> WebSiteOperationStatusResponse
<ExtensionAttribute>
Public Shared Function BeginSwappingSlots (
operations As IWebSiteOperations,
webSpaceName As String,
webSiteName As String,
sourceSlotName As String,
targetSlotName As String
) As WebSiteOperationStatusResponse
Parameters
operations
Type: Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperationsReference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
webSpaceName
Type: System.StringRequired. The name of the web space.
webSiteName
Type: System.StringRequired. The name of the web site.
sourceSlotName
Type: System.StringRequired. The name of the first web site slot to swap (source).
targetSlotName
Type: System.StringRequired. The name of the second web site slot to swap with (target).
Return Value
Type: Microsoft.WindowsAzure.Management.WebSites.Models.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
WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace
Return to top