ManagedNetworkFabricExtensions.GetNetworkDevices 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
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.
|
GetNetworkDevices(ResourceGroupResource)
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)
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
Azure SDK for .NET