共用方式為


GatewayOperationsExtensions.GetSharedKeyV2Async Method

Definition

The Get Virtual Network Gateway Shared Key V2 operation gets the shared key used between the gateway and customer vpn.

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse> GetSharedKeyV2Async (this Microsoft.WindowsAzure.Management.Network.IGatewayOperations operations, string gatewayId, string connectedentityId);
static member GetSharedKeyV2Async : Microsoft.WindowsAzure.Management.Network.IGatewayOperations * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Network.Models.GatewayGetSharedKeyResponse>
<Extension()>
Public Function GetSharedKeyV2Async (operations As IGatewayOperations, gatewayId As String, connectedentityId As String) As Task(Of GatewayGetSharedKeyResponse)

Parameters

operations
IGatewayOperations

Reference to the Microsoft.WindowsAzure.Management.Network.IGatewayOperations.

gatewayId
String

Required. The virtual network for this gateway Id.

connectedentityId
String

Required. The connected entity Id.

Returns

The response to the get shared key request.

Applies to