VirtualNetworkGatewayConnectionsOperationsExtensions.SetSharedKeyAsync(IVirtualNetworkGatewayConnectionsOperations, String, String, ConnectionSharedKeyInner, CancellationToken) Method

Definition

The Put VirtualNetworkGatewayConnectionSharedKey operation sets 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.ConnectionSharedKeyInner> SetSharedKeyAsync (this Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, Microsoft.Azure.Management.Network.Fluent.Models.ConnectionSharedKeyInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member SetSharedKeyAsync : Microsoft.Azure.Management.Network.Fluent.IVirtualNetworkGatewayConnectionsOperations * string * string * Microsoft.Azure.Management.Network.Fluent.Models.ConnectionSharedKeyInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionSharedKeyInner>
<Extension()>
Public Function SetSharedKeyAsync (operations As IVirtualNetworkGatewayConnectionsOperations, resourceGroupName As String, virtualNetworkGatewayConnectionName As String, parameters As ConnectionSharedKeyInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectionSharedKeyInner)

Parameters

operations
IVirtualNetworkGatewayConnectionsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

virtualNetworkGatewayConnectionName
System.String

The virtual network gateway connection name.

parameters
ConnectionSharedKeyInner

Parameters supplied to the Begin Set Virtual Network Gateway connection Shared key operation throughNetwork resource provider.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ConnectionSharedKeyInner>

Applies to