共用方式為


AgentPoolSnapshotCollection.GetAllAsync(CancellationToken) Method

Definition

Lists snapshots in the specified subscription and resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/snapshots
  • Operation Id: Snapshots_ListByResourceGroup
  • Default Api Version: 2023-10-01
  • Resource: AgentPoolSnapshotResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.ContainerService.AgentPoolSnapshotResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.AgentPoolSnapshotResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ContainerService.AgentPoolSnapshotResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AgentPoolSnapshotResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to