다음을 통해 공유


NetworkExtensions.GetVirtualWans Method

Definition

Overloads

GetVirtualWans(ResourceGroupResource)

Gets a collection of VirtualWanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualWans() instead.

GetVirtualWans(SubscriptionResource, CancellationToken)

Lists all the VirtualWANs in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans
  • Operation Id: VirtualWans_List
  • Default Api Version: 2024-03-01
  • Resource: VirtualWanResource

GetVirtualWans(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of VirtualWanResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualWans() instead.

public static Azure.ResourceManager.Network.VirtualWanCollection GetVirtualWans (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualWans : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.VirtualWanCollection
<Extension()>
Public Function GetVirtualWans (resourceGroupResource As ResourceGroupResource) As VirtualWanCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VirtualWanResources and their operations over a VirtualWanResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVirtualWans(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Lists all the VirtualWANs in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans
  • Operation Id: VirtualWans_List
  • Default Api Version: 2024-03-01
  • Resource: VirtualWanResource
public static Azure.Pageable<Azure.ResourceManager.Network.VirtualWanResource> GetVirtualWans (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualWans : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.VirtualWanResource>
<Extension()>
Public Function GetVirtualWans (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualWanResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VirtualWanResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to