Delen via


ElasticSanSnapshotCollection.GetAllAsync(String, CancellationToken) Method

Definition

List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots
  • Operation Id: VolumeSnapshots_ListByVolumeGroup
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource> GetAllAsync (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ElasticSanSnapshotResource)

Parameters

filter
String

Specify $filter='volumeName eq <volume name>' to filter on volume.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to