IWebAppsOperations.BeginSwapSlotSlotWithHttpMessagesAsync(String, String, CsmSlotEntityInner, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Swaps two deployment slots of an app.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginSwapSlotSlotWithHttpMessagesAsync (string resourceGroupName, string name, Microsoft.Azure.Management.AppService.Fluent.Models.CsmSlotEntityInner slotSwapEntity, string slot, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member BeginSwapSlotSlotWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.AppService.Fluent.Models.CsmSlotEntityInner * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>

Parameters

resourceGroupName
String

Name of the resource group to which the resource belongs.

name
String

Name of the app.

slotSwapEntity
CsmSlotEntityInner

JSON object that contains the target slot name. See example.

slot
String

Name of the source slot. If a slot is not specified, the production slot is used as the source slot.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.AzureOperationResponse>

Exceptions

Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Remarks

Swaps two deployment slots of an app.

Applies to