Share via


MockableNetworkResourceGroupResource.GetVpnSite Method

Definition

Retrieves the details of a VPN site.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}
  • Operation Id: VpnSites_Get
  • Default Api Version: 2024-03-01
  • Resource: VpnSiteResource
public virtual Azure.Response<Azure.ResourceManager.Network.VpnSiteResource> GetVpnSite (string vpnSiteName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVpnSite : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VpnSiteResource>
override this.GetVpnSite : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VpnSiteResource>
Public Overridable Function GetVpnSite (vpnSiteName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VpnSiteResource)

Parameters

vpnSiteName
String

The name of the VpnSite being retrieved.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

vpnSiteName is null.

vpnSiteName is an empty string, and was expected to be non-empty.

Applies to