Condividi tramite


ContainerServiceExtensions.GetManagedClusterSnapshotsAsync Method

Definition

Gets a list of managed cluster snapshots in the specified subscription. <item> Mocking. To mock this method, please mock GetManagedClusterSnapshotsAsync(CancellationToken) instead. </item>

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 the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to