Share via


NetworkCloudExtensions.GetNetworkCloudClusters Method

Definition

Overloads

GetNetworkCloudClusters(ResourceGroupResource)

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

GetNetworkCloudClusters(SubscriptionResource, CancellationToken)

Get a list of clusters in the provided subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.NetworkCloud/clusters
  • Operation Id: Clusters_ListBySubscription

GetNetworkCloudClusters(ResourceGroupResource)

Source:
NetworkCloudExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of NetworkCloudClusterResources and their operations over a NetworkCloudClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetNetworkCloudClusters(SubscriptionResource, CancellationToken)

Source:
NetworkCloudExtensions.cs

Get a list of clusters in the provided subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to