NetworkExtensions.GetCloudServiceSwapAsync 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.
Overloads
| Name | Description |
|---|---|
| GetCloudServiceSwapAsync(ResourceGroupResource, String, CancellationToken) |
Invokes the GetCloudServiceSwapAsync compatibility operation. |
| GetCloudServiceSwapAsync(ArmClient, ResourceIdentifier, CancellationToken) |
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 <item> Mocking. To mock this method, please mock GetCloudServiceSwapAsync(ResourceIdentifier, CancellationToken) instead. </item> |
GetCloudServiceSwapAsync(ResourceGroupResource, String, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Invokes the GetCloudServiceSwapAsync compatibility operation.
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>> GetCloudServiceSwapAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken);
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>> GetCloudServiceSwapAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServiceSwapAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
static member GetCloudServiceSwapAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
<Extension()>
Public Function GetCloudServiceSwapAsync (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, cancellationToken As CancellationToken) As Task(Of Response(Of CloudServiceSwapResource))
<Extension()>
Public Function GetCloudServiceSwapAsync (resourceGroupResource As ResourceGroupResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CloudServiceSwapResource))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- cloudServiceNameresourceName
- String
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource or resourceName is null.
resourceName is an empty string, and was expected to be non-empty.
Applies to
GetCloudServiceSwapAsync(ArmClient, ResourceIdentifier, CancellationToken)
- Source:
- NetworkExtensions.cs
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 <item> Mocking. To mock this method, please mock GetCloudServiceSwapAsync(ResourceIdentifier, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>> GetCloudServiceSwapAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServiceSwapAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>>
<Extension()>
Public Function GetCloudServiceSwapAsync (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CloudServiceSwapResource))
Parameters
- scope
- ResourceIdentifier
The scope of the resource collection to get.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
client is null.