VirtualNetworkGatewayConnectionsOperationsExtensions.ResetSharedKeyAsync(IVirtualNetworkGatewayConnectionsOperations, String, String, Int32, CancellationToken) VirtualNetworkGatewayConnectionsOperationsExtensions.ResetSharedKeyAsync(IVirtualNetworkGatewayConnectionsOperations, String, String, Int32, CancellationToken) Method

Definition

The VirtualNetworkGatewayConnectionResetSharedKey operation resets the virtual network gateway connection shared key for passed virtual network gateway connection in the specified resource group through Network resource provider.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionResetSharedKeyInner> ResetSharedKeyAsync (this Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, int keyLength, System.Threading.CancellationToken cancellationToken = null);
static member ResetSharedKeyAsync : Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations * string * string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionResetSharedKeyInner>

Parameters

operations
IVirtualNetworkGatewayConnectionsOperations IVirtualNetworkGatewayConnectionsOperations

The operations group for this extension method.

resourceGroupName
String String

The name of the resource group.

virtualNetworkGatewayConnectionName
String String

The virtual network gateway connection reset shared key Name.

keyLength
Int32 Int32

The virtual network connection reset shared key length, should between 1 and 128.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Applies to