Udostępnij za pośrednictwem


VirtualNetworkGatewayConnectionsOperationsExtensions.GetSharedKeyAsync Method

Definition

The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves information about the specified virtual network gateway connection shared key through Network resource provider.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.ConnectionSharedKey> GetSharedKeyAsync (this Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionsOperations operations, string resourceGroupName, string virtualNetworkGatewayConnectionName, System.Threading.CancellationToken cancellationToken = default);
static member GetSharedKeyAsync : Microsoft.Azure.Management.Network.IVirtualNetworkGatewayConnectionsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.ConnectionSharedKey>
<Extension()>
Public Function GetSharedKeyAsync (operations As IVirtualNetworkGatewayConnectionsOperations, resourceGroupName As String, virtualNetworkGatewayConnectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectionSharedKey)

Parameters

operations
IVirtualNetworkGatewayConnectionsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

virtualNetworkGatewayConnectionName
String

The virtual network gateway connection shared key name.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to