Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: Get-NaFpolicy


NAME
Get-NaFpolicy

SYNOPSIS
Returns a list of existing policies.

SYNTAX
Get-NaFpolicy [[-Names] <String[]>] [-Controller <NaController>] [<CommonPar
ameters>]


DESCRIPTION
Returns a list of existing policies.


PARAMETERS
-Names <String[]>
An array of fpolicy names to get. Wildcards are accepted.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
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.Fpolicy.PolicyInfo


NOTES


Category: fpolicy
API: fpolicy-list-info

-------------- Example 1 --------------

C:\PS>Get-NaFpolicy


Gets info for all the fpolicies on the current controller.


IsEnabled : False
MonitoredOperations : {}
MonitoredProtocols : {}
Name : policy1
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0

IsEnabled : False
MonitoredOperations : {}
MonitoredProtocols : {}
Name : policy2
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0

IsEnabled : False
MonitoredOperations : {file-create}
MonitoredProtocols : {}
Name : test
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0

IsEnabled : False
MonitoredOperations : {}
MonitoredProtocols : {}
Name : test2
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0


-------------- Example 2 --------------

C:\PS>Get-NaFpolicy policy*


Gets fpolicy info for all policies whose names begin with "policy".


IsEnabled : False
MonitoredOperations : {}
MonitoredProtocols : {}
Name : policy1
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0

IsEnabled : False
MonitoredOperations : {}
MonitoredProtocols : {}
Name : policy2
NumberOfScreenFailures : 0
NumberOfScreenedFiles : 0



RELATED LINKS
New-NaFpolicy
Set-NaFpolicy







 Data ONTAP® PowerShell Toolkit