Share via


NetworkCloudExtensions.GetNetworkCloudRacks Method

Definition

Overloads

GetNetworkCloudRacks(SubscriptionResource, CancellationToken)

Get a list of racks in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/racks
  • Operation Id: Racks_ListBySubscription
GetNetworkCloudRacks(ResourceGroupResource)

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

GetNetworkCloudRacks(SubscriptionResource, CancellationToken)

Source:
NetworkCloudExtensions.cs

Get a list of racks in the provided subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetNetworkCloudRacks(ResourceGroupResource)

Source:
NetworkCloudExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkCloudRackResources and their operations over a NetworkCloudRackResource.

Exceptions

resourceGroupResource is null.

Applies to