NetworkExtensions.GetVpnSites Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetVpnSites(ResourceGroupResource) |
Gets a collection of VpnSiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVpnSites() instead. |
GetVpnSites(SubscriptionResource, CancellationToken) |
Lists all the VpnSites in a subscription.
|
GetVpnSites(ResourceGroupResource)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Gets a collection of VpnSiteResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVpnSites() instead.
public static Azure.ResourceManager.Network.VpnSiteCollection GetVpnSites (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVpnSites : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.VpnSiteCollection
<Extension()>
Public Function GetVpnSites (resourceGroupResource As ResourceGroupResource) As VpnSiteCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of VpnSiteResources and their operations over a VpnSiteResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetVpnSites(SubscriptionResource, CancellationToken)
- Source:
- NetworkExtensions.cs
- Source:
- NetworkExtensions.cs
Lists all the VpnSites in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites
- Operation Id: VpnSites_List
- Default Api Version: 2024-03-01
- Resource: VpnSiteResource
public static Azure.Pageable<Azure.ResourceManager.Network.VpnSiteResource> GetVpnSites (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVpnSites : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.VpnSiteResource>
<Extension()>
Public Function GetVpnSites (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VpnSiteResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of VpnSiteResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET