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

Get-NetAppSnapshot

In this article

    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>]

    Related Commands

    Get-NetAppVolume

    Detailed Description

    This cmdlet returns NetApp storage snapshots.

    You can get the list of all storage snapshots, or look for a specific snapshot name or 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 looks for the list of all snapshots.

    PS C:\PS> Get-NetAppSnapshot

    Example 2

    This command looks for snapshots of a specific volume.

    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.

    PS C:\PS> $vol = Get-NetAppVolume | Select -last 1

    PS C:\PS> Get-NetAppSnapshot -Volume $vol