Share via


ManagedNetworkFabricExtensions.GetNetworkDevices Method

Definition

Overloads

GetNetworkDevices(ResourceGroupResource)

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

GetNetworkDevices(SubscriptionResource, CancellationToken)

List all the Network Device resources in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkDevices
  • Operation Id: NetworkDevices_ListBySubscription

GetNetworkDevices(ResourceGroupResource)

Source:
ManagedNetworkFabricExtensions.cs

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

public static Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceCollection GetNetworkDevices (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNetworkDevices : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ManagedNetworkFabric.NetworkDeviceCollection
<Extension()>
Public Function GetNetworkDevices (resourceGroupResource As ResourceGroupResource) As NetworkDeviceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkDeviceResources and their operations over a NetworkDeviceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkDevices(SubscriptionResource, CancellationToken)

Source:
ManagedNetworkFabricExtensions.cs

List all the Network Device resources in a given subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to