Share via


ManagedNetworkFabricExtensions.GetNetworkRacks Method

Definition

Overloads

GetNetworkRacks(SubscriptionResource, CancellationToken)

List all Network Rack resources in the given subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkRacks
  • Operation Id: NetworkRacks_ListBySubscription
GetNetworkRacks(ResourceGroupResource)

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

GetNetworkRacks(SubscriptionResource, CancellationToken)

Source:
ManagedNetworkFabricExtensions.cs

List all Network Rack resources in the given subscription

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetNetworkRacks(ResourceGroupResource)

Source:
ManagedNetworkFabricExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkRackResources and their operations over a NetworkRackResource.

Exceptions

resourceGroupResource is null.

Applies to