KubernetesExtensions.GetConnectedClusters Method

Definition

Overloads

GetConnectedClusters(ResourceGroupResource)

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

GetConnectedClusters(SubscriptionResource, CancellationToken)

API to enumerate registered connected K8s clusters under a Subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Kubernetes/connectedClusters
  • Operation Id: ConnectedCluster_ListBySubscription

GetConnectedClusters(ResourceGroupResource)

Source:
KubernetesExtensions.cs

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

public static Azure.ResourceManager.Kubernetes.ConnectedClusterCollection GetConnectedClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetConnectedClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Kubernetes.ConnectedClusterCollection
<Extension()>
Public Function GetConnectedClusters (resourceGroupResource As ResourceGroupResource) As ConnectedClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ConnectedClusterResources and their operations over a ConnectedClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetConnectedClusters(SubscriptionResource, CancellationToken)

Source:
KubernetesExtensions.cs

API to enumerate registered connected K8s clusters under a Subscription

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to