Get-VsanFileShareSnapshot

This cmdlet retrieves vSAN file share snapshots based on name or other filters.

Syntax

[-EndTime  <DateTime>]
[-FileShare  <VsanFileShare[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[-StartTime  <DateTime>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
EndTime
DateTime named Specifies end time of creation for the vSAN file share snapshots you want to retrieve.
optional
FileShare
VsanFileShare[] named
  • pipeline
  • Specifies the vSAN file share to which the file share snapshots belong.
    optional
    Name
    String[] named Filters the retrieved vSAN file share snapshots by name.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
    optional
    StartTime
    DateTime named Specifies start time of creation for the vSAN file share snapshots you want to retrieve.

    Output

    VMware.VimAutomation.Storage.Types.V1.Vsan.FileService.VsanFileShare

    Examples


    Example 1

    Get-VsanFileShareSnapshot -Name "SnapshotName"

    Retrieves the vSAN file share snapshots whose name is "SnapshotName".

    Example 2

    Get-VsanFileShareSnapshot -StartTime "12/21/2020" -EndTime "12/22/2020"

    Retrieves the vSAN file share snapshots which have been created in the specified time interval.

    Related Commands

    Feedback

    Was this page helpful?