Share via


ContainerServiceExtensions.GetManagedClusterSnapshotsAsync Method

Definition

Gets a list of managed cluster snapshots in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots
  • Operation Id: ManagedClusterSnapshots_List
public static Azure.AsyncPageable<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource> GetManagedClusterSnapshotsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedClusterSnapshotsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource>
<Extension()>
Public Function GetManagedClusterSnapshotsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedClusterSnapshotResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ManagedClusterSnapshotResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to