|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NcSnapshotPolicy
NAME
Get-NcSnapshotPolicy
SYNOPSIS
Get information about snapshot policies.
SYNTAX
Get-NcSnapshotPolicy [[-Name] <String[]>] [-Attributes <SnapshotPolicyInfo>]
[-Controller <NcController[]>] [<CommonParameters>]
Get-NcSnapshotPolicy -Template [-Fill] [-Controller <NcController[]>] [<Comm
onParameters>]
Get-NcSnapshotPolicy -Query <SnapshotPolicyInfo> [-Attributes <SnapshotPolic
yInfo>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Get information about snapshot policies.
PARAMETERS
-Name <String[]>
Restrict results to the specified policies. Data ONTAP wildcards are pe
rmitted.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attributes <SnapshotPolicyInfo>
For improved scalability in large clusters, provide a SnapshotPolicyInfo
object with various fields set to indicate which fields to return on al
l objects. Undesired fields should remain set to null. Use "Get-NcSnap
shotPolicy -Template" to get the initially empty SnapshotPolicyInfo obje
ct. If not specified, all data is returned for each object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A Data ONTAP cluster-mode controller to receive this cmdlet, as embodied
by an NcController object. This parameter is returned by the Connect-N
cController cmdlet. If not specified, the value in the global variable
CurrentNcController is used. In the latter case, if CurrentNcController
contains a collection of NcController objects, this cmdlet is invoked o
n each controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Template
Specify to get an empty SnapshotPolicyInfo object for use with advanced
queries involving the Query attribute.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Fill
Specify when using the Template parameter to recursively fill in all obj
ect types.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Query <SnapshotPolicyInfo>
For advanced queries, provide a SnapshotPolicyInfo object with various f
ields set to indicate which records to retrieve. Other fields should re
main set to null. Use "Get-NcSnapshotPolicy -Template" to get the initi
ally empty SnapshotPolicyInfo object.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
NetApp.Ontapi.Filer.C.Snapshot810.SnapshotPolicyInfo
NOTES
Category: snapshot
API: snapshot-policy-get-iter
Family: cluster, vserver
-------------- Example 1 --------------
C:\PS>Get-NcSnapshotPolicy
Get all snapshot policies.
Policy Enabled SnapshotPolicySchedules
------ ------- -----------------------
default True {hourly (6), daily (2), weekly (2)}
none False
testSnapPolicy True {8hour (1), 5min (2)}
RELATED LINKS
New-NcSnapshotPolicy
Get-NcJobCronSchedule
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|