|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: New-NcExportRule
NAME
New-NcExportRule
SYNOPSIS
Create an export rule configuration.
SYNTAX
New-NcExportRule [-Policy] <String> [[-Index] <UInt32>] -ClientMatch <String
> -ReadOnlySecurityFlavor <String[]> -ReadWriteSecurityFlavor <String[]> [-P
rotocol <String[]>] [-Anon <String>] [-SuperUserSecurityFlavor <String[]>] [
-EnableSetUid] [-DisableSetUid] [-EnableDev] [-DisableDev] [-NtfsUnixSecurit
yOps <String>] [-ChownMode <String>] [-VserverContext <String>] [-Controller
<NcController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Create an export rule configuration.
PARAMETERS
-Policy <String>
Export policy name.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Index <UInt32>
Export rule index. A next available value is assigned if no value is pro
vided during create else the rule is inserted at the given rule index po
sition in the export-rule table.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ClientMatch <String>
Client match specification for Export rule. The clients specified are en
forced with this Export rule. The rule with the higher rule index value
takes precedence.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ReadOnlySecurityFlavor <String[]>
Rule for read-only access.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ReadWriteSecurityFlavor <String[]>
Rule for read-write access.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Protocol <String[]>
Client access protocol. Default value is 'any'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Anon <String>
User name or ID to which anonymous users are mapped. Default value is '6
5534'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-SuperUserSecurityFlavor <String[]>
Security flavors for the superuser. Default value is 'never'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-EnableSetUid
If specified, the NFS server will honor SetUID bits in SETATTR operation
.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DisableSetUid
If specified, the NFS server will not honor SetUID bits in SETATTR opera
tion.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-EnableDev
If specified, the NFS server will allow creation of devices.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-DisableDev
If specified, the NFS server will not allow creation of devices.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NtfsUnixSecurityOps <String>
Ignore/Fail unix security operations on NTFS volumes. Possible values ar
e 'ignore', 'fail'. Default value is 'fail'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ChownMode <String>
Change ownership mode. Possible values are 'restricted', 'unrestricted'.
Default value is 'restricted'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-WhatIf
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm
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.C.Types.Exports.ExportRuleInfo
NOTES
Category: exports
API: export-rule-create
Family: vserver
-------------- Example 1 --------------
C:\PS>New-NcExportRule dlamotta0101 -ClientMatch 10.69.169.172 -ReadOnlySecu
rityFlavor any -ReadWriteSecurityFlavor sys
Create a new export policy rule.
RELATED LINKS
Get-NcExportRule
Remove-NcExportRule
Set-NcExportRule
Set-NcExportRuleIndex
| Copyright © 2012 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|