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
| Name | Description |
|---|---|
| GetManagedClusterSnapshots(ResourceGroupResource) |
Gets a collection of ManagedClusterSnapshots in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetManagedClusterSnapshots() instead. </item> |
| GetManagedClusterSnapshots(SubscriptionResource, CancellationToken) |
Gets a list of managed cluster snapshots in the specified subscription. <item> Mocking. To mock this method, please mock GetManagedClusterSnapshots(CancellationToken) instead. </item> |
GetManagedClusterSnapshots(ResourceGroupResource)
Gets a collection of ManagedClusterSnapshots in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetManagedClusterSnapshots() instead. </item>
public static Azure.ResourceManager.ContainerService.ManagedClusterSnapshotCollection GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetManagedClusterSnapshots : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ContainerService.ManagedClusterSnapshotCollection
<Extension()>
Public Function GetManagedClusterSnapshots (resourceGroupResource As ResourceGroupResource) As ManagedClusterSnapshotCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of ManagedClusterSnapshots and their operations over a ManagedClusterSnapshotResource.
Exceptions
resourceGroupResource is null.
Applies to
GetManagedClusterSnapshots(SubscriptionResource, CancellationToken)
Gets a list of managed cluster snapshots in the specified subscription. <item> Mocking. To mock this method, please mock GetManagedClusterSnapshots(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource> GetManagedClusterSnapshots(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetManagedClusterSnapshots : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ContainerService.ManagedClusterSnapshotResource>
<Extension()>
Public Function GetManagedClusterSnapshots (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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.