Share via


ElasticSanSnapshotCollection Class

Definition

A class representing a collection of ElasticSanSnapshotResource and their operations. Each ElasticSanSnapshotResource in the collection will belong to the same instance of ElasticSanVolumeGroupResource. To get an ElasticSanSnapshotCollection instance call the GetElasticSanSnapshots method from an instance of ElasticSanVolumeGroupResource.

public class ElasticSanSnapshotCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ElasticSan.ElasticSanSnapshotResource>
type ElasticSanSnapshotCollection = class
    inherit ArmCollection
    interface seq<ElasticSanSnapshotResource>
    interface IEnumerable
    interface IAsyncEnumerable<ElasticSanSnapshotResource>
Public Class ElasticSanSnapshotCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ElasticSanSnapshotResource), IEnumerable(Of ElasticSanSnapshotResource)
Inheritance
ElasticSanSnapshotCollection
Implements

Constructors

ElasticSanSnapshotCollection()

Initializes a new instance of the ElasticSanSnapshotCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, ElasticSanSnapshotData, CancellationToken)

Create a Volume Snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Create
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
CreateOrUpdateAsync(WaitUntil, String, ElasticSanSnapshotData, CancellationToken)

Create a Volume Snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Create
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
Get(String, CancellationToken)

Get a Volume Snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
GetAll(String, CancellationToken)

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
GetAllAsync(String, CancellationToken)

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
GetAsync(String, CancellationToken)

Get a Volume Snapshot.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}
  • Operation Id: VolumeSnapshots_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanSnapshotResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<ElasticSanSnapshotResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ElasticSanSnapshotResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to