Dela via


MockableNetworkResourceGroupResource.GetCloudServiceSwapAsync Method

Definition

Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type on a cloud service can either be Staging or Production

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}
  • Operation Id: VipSwap_Get
  • Default Api Version: 2024-03-01
  • Resource: CloudServiceSwapResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>> GetCloudServiceSwapAsync (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCloudServiceSwapAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
override this.GetCloudServiceSwapAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
Public Overridable Function GetCloudServiceSwapAsync (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CloudServiceSwapResource))

Parameters

resourceName
String

The name of the cloud service.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceName is null.

resourceName is an empty string, and was expected to be non-empty.

Applies to