Share via


ContainerServiceExtensions.GetContainerServiceManagedClusters Method

Definition

Overloads

GetContainerServiceManagedClusters(SubscriptionResource, CancellationToken)

Gets a list of managed clusters in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters
  • Operation Id: ManagedClusters_List
  • Default Api Version: 2023-10-01
  • Resource: ContainerServiceManagedClusterResource
GetContainerServiceManagedClusters(ResourceGroupResource)

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

GetContainerServiceManagedClusters(SubscriptionResource, CancellationToken)

Source:
ContainerServiceExtensions.cs
Source:
ContainerServiceExtensions.cs

Gets a list of managed clusters in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters
  • Operation Id: ManagedClusters_List
  • Default Api Version: 2023-10-01
  • Resource: ContainerServiceManagedClusterResource
public static Azure.Pageable<Azure.ResourceManager.ContainerService.ContainerServiceManagedClusterResource> GetContainerServiceManagedClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetContainerServiceManagedClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ContainerService.ContainerServiceManagedClusterResource>
<Extension()>
Public Function GetContainerServiceManagedClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ContainerServiceManagedClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetContainerServiceManagedClusters(ResourceGroupResource)

Source:
ContainerServiceExtensions.cs
Source:
ContainerServiceExtensions.cs

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

public static Azure.ResourceManager.ContainerService.ContainerServiceManagedClusterCollection GetContainerServiceManagedClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetContainerServiceManagedClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ContainerService.ContainerServiceManagedClusterCollection
<Extension()>
Public Function GetContainerServiceManagedClusters (resourceGroupResource As ResourceGroupResource) As ContainerServiceManagedClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ContainerServiceManagedClusterResources and their operations over a ContainerServiceManagedClusterResource.

Exceptions

resourceGroupResource is null.

Applies to