Partilhar via


NetAppVolumeSnapshotCollection Class

Definition

A class representing a collection of NetAppVolumeSnapshotResource and their operations. Each NetAppVolumeSnapshotResource in the collection will belong to the same instance of NetAppVolumeResource. To get a NetAppVolumeSnapshotCollection instance call the GetNetAppVolumeSnapshots method from an instance of NetAppVolumeResource.

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

Constructors

NetAppVolumeSnapshotCollection()

Initializes a new instance of the NetAppVolumeSnapshotCollection 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, NetAppVolumeSnapshotData, CancellationToken)

Create the specified snapshot within the given volume

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Create
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
CreateOrUpdateAsync(WaitUntil, String, NetAppVolumeSnapshotData, CancellationToken)

Create the specified snapshot within the given volume

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Create
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
Get(String, CancellationToken)

Get details of the specified snapshot

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
GetAll(CancellationToken)

List all snapshots associated with the volume

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots
  • Operation Id: Snapshots_List
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
GetAllAsync(CancellationToken)

List all snapshots associated with the volume

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots
  • Operation Id: Snapshots_List
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
GetAsync(String, CancellationToken)

Get details of the specified snapshot

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}
  • Operation Id: Snapshots_Get
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeSnapshotResource
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<NetAppVolumeSnapshotResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<NetAppVolumeSnapshotResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to