Share via


ContainerServiceExtensions.GetAgentPoolSnapshots Method

Definition

Overloads

GetAgentPoolSnapshots(ResourceGroupResource)

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

GetAgentPoolSnapshots(SubscriptionResource, CancellationToken)

Gets a list of snapshots in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots
  • Operation Id: Snapshots_List
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource

GetAgentPoolSnapshots(ResourceGroupResource)

Source:
ContainerServiceExtensions.cs
Source:
ContainerServiceExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of AgentPoolSnapshotResources and their operations over a AgentPoolSnapshotResource.

Exceptions

resourceGroupResource is null.

Applies to

GetAgentPoolSnapshots(SubscriptionResource, CancellationToken)

Source:
ContainerServiceExtensions.cs
Source:
ContainerServiceExtensions.cs

Gets a list of snapshots in the specified subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to