This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-NetAppSnapshot

Short Description

Returns NetApp storage snapshots.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Get-NetAppSnapshot [-Name <String[]>] [-Volume <CSanVolume[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

This cmdlet returns existing NetApp storage snapshots.

You can get the list of all storage snapshots, or look for a specific snapshot by name or associated volume.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Name

Specifies the array of the snapshot names. The cmdlet will return the snapshots with these names.

False

Named

False

False

Volume

Specifies the array of volumes. The cmdlet will return the snapshots of these volumes.

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example 1

This command returns the list of all snapshots.

Get-NetAppSnapshot

Example 2

This example shows how to get snapshots of a specific volume.

You will need to perform the following steps:

  1. Run Get-NetAppVolume to get all NetApp volumes. Select the last volume in the list. Save the result to the $vol variable.
  2. Run Get-NetAppSnapshot with the saved variable.

$vol = Get-NetAppVolume | Select -last 1

Get-NetAppSnapshot -Volume $vol

Related Commands

Get-NetAppVolume