NetworkExtensions.GetCloudServiceSwap 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 |
|---|---|
| GetCloudServiceSwap(ResourceGroupResource, String, CancellationToken) |
Invokes the GetCloudServiceSwap compatibility operation. |
| GetCloudServiceSwap(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 GetCloudServiceSwap(ResourceIdentifier, CancellationToken) instead. </item> |
GetCloudServiceSwap(ResourceGroupResource, String, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Invokes the GetCloudServiceSwap compatibility operation.
public static Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource> GetCloudServiceSwap(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string cloudServiceName, System.Threading.CancellationToken cancellationToken);
public static Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource> GetCloudServiceSwap(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServiceSwap : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>
static member GetCloudServiceSwap : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>
<Extension()>
Public Function GetCloudServiceSwap (resourceGroupResource As ResourceGroupResource, cloudServiceName As String, cancellationToken As CancellationToken) As Response(Of CloudServiceSwapResource)
<Extension()>
Public Function GetCloudServiceSwap (resourceGroupResource As ResourceGroupResource, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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
GetCloudServiceSwap(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 GetCloudServiceSwap(ResourceIdentifier, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource> GetCloudServiceSwap(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
static member GetCloudServiceSwap : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.CloudServiceSwapResource>
<Extension()>
Public Function GetCloudServiceSwap (client As ArmClient, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As 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.