ContainerServiceExtensions.GetManagedClusterSnapshots Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

GetManagedClusterSnapshots(SubscriptionResource, CancellationToken)

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots
  • Operation Id: ManagedClusterSnapshots_List
GetManagedClusterSnapshots(ResourceGroupResource)

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

GetManagedClusterSnapshots(SubscriptionResource, CancellationToken)

Source:
ContainerServiceExtensions.cs

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots
  • Operation Id: ManagedClusterSnapshots_List
C#
public static Azure.Pageable<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource> GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance 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

Azure SDK for .NET Preview
Product Versions
Azure SDK for .NET Preview

GetManagedClusterSnapshots(ResourceGroupResource)

Source:
ContainerServiceExtensions.cs

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

C#
public static Azure.ResourceManager.ContainerService.ManagedClusterSnapshotCollection GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ManagedClusterSnapshotResources and their operations over a ManagedClusterSnapshotResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview
Product Versions
Azure SDK for .NET Preview