Share via


NetworkCloudExtensions.GetNetworkCloudL2Networks Method

Definition

Overloads

GetNetworkCloudL2Networks(ResourceGroupResource)

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

GetNetworkCloudL2Networks(SubscriptionResource, CancellationToken)

Get a list of layer 2 (L2) networks in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks
  • Operation Id: L2Networks_ListBySubscription

GetNetworkCloudL2Networks(ResourceGroupResource)

Source:
NetworkCloudExtensions.cs

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

public static Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkCollection GetNetworkCloudL2Networks (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkCloudL2Networks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkCollection
<Extension()>
Public Function GetNetworkCloudL2Networks (resourceGroupResource As ResourceGroupResource) As NetworkCloudL2NetworkCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkCloudL2NetworkResources and their operations over a NetworkCloudL2NetworkResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkCloudL2Networks(SubscriptionResource, CancellationToken)

Source:
NetworkCloudExtensions.cs

Get a list of layer 2 (L2) networks in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/l2Networks
  • Operation Id: L2Networks_ListBySubscription
public static Azure.Pageable<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource> GetNetworkCloudL2Networks (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNetworkCloudL2Networks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.NetworkCloud.NetworkCloudL2NetworkResource>
<Extension()>
Public Function GetNetworkCloudL2Networks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NetworkCloudL2NetworkResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to