Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Set-NaFpolicyVolumeList


NAME
Set-NaFpolicyVolumeList

SYNOPSIS
Manipulate a list of volumes in an exclude or include set.

SYNTAX
Set-NaFpolicyVolumeList [-Name] <String> [-ListType] <String> [[-Volumes] <S
tring[]>] [-Controller <NaController>] [<CommonParameters>]


DESCRIPTION
Manipulate a list of volumes in an exclude or include set. This limits the
set of volumes for which client requests trigger (include) or suppress (excl
ude) fpolicy processing for the provided policy. The list provided will repl
ace the list currently in place, if any. Note that if a policy has both an e
xclude list and an include list, the include list is ignored by the filer.


PARAMETERS
-Name <String>
Name of the fpolicy to set the volume list for.

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

-ListType <String>
Defines to which set (exclude or include) a list will be applied. Possib
le values: "exclude", "include".

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Volumes <String[]>
List of volume specifications (including wild cards). The volumes are ca
se insensitive. If no volume list is provided, then the list will be res
et to an empty list. Supported wild card values: "?" to match any charac
ter and "*" to match any number of characters. Example specifications: v
ol0 vol? users*

Required? false
Position? 3
Default value
Accept pipeline input? false
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
DataONTAP.Types.Fpolicy.PolicyInfo


NOTES


Category: fpolicy
API: fpolicy-volume-list-set

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

C:\PS>Set-NaFpolicyVolumeList policy2 include vol0 tmp1 | Get-NaFpolicyVolum
eList


Sets the include volume list for policy2 to {vol0, tmp1} then gets the volum
e list for policy2.


Name : policy2
Include : {vol0, tmp1}
Exclude : {}


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

C:\PS>Set-NaFpolicyVolumeList policy2 include | Get-NaFpolicyVolumeList


Resets the include volume list for fpolicy fpolicy2 to an empty list then ge
ts the volume list for fpolicy fpolicy2.


Name : policy2
Include : {}
Exclude : {}



RELATED LINKS
Get-NaFpolicyVolumeList







 Data ONTAP® PowerShell Toolkit