Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP 7-mode documentation.

Cmdlet: Set-NcExportRule


NAME
Set-NcExportRule

SYNOPSIS
Modify an export rule configuration.

SYNTAX
Set-NcExportRule [-Policy] <String> [-Index] <UInt32> [-ClientMatch <String>
] [-ReadOnlySecurityFlavor <String[]>] [-ReadWriteSecurityFlavor <String[]>]
[-Protocol <String[]>] [-Anon <String>] [-SuperUserSecurityFlavor <String[]
>] [-EnableSetUid] [-DisableSetUid] [-EnableDev] [-DisableDev] [-NtfsUnixSec
urityOps <String>] [-ChownMode <String>] [-VserverContext <String>] [-Contro
ller <NcController[]>] [-WhatIf] [-Confirm] [<CommonParameters>]


DESCRIPTION
Modify 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.

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

-ClientMatch <String>
Client match value for this rule.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ReadOnlySecurityFlavor <String[]>
Security flavor for read only access.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ReadWriteSecurityFlavor <String[]>
Security flavor for read write access.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Protocol <String[]>
Client access protocol.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Anon <String>
Username or ID to which anonymous users are mapped.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-SuperUserSecurityFlavor <String[]>
Security flavor(s) for the superuser.

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 honor SetUID bits in SETATTR opera
tion.

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 a
re "ignore", "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"
.

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-modify
Family: vserver

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

C:\PS>Set-NcExportRule dlamotta0101 3 -Protocol nfs


Set the protocol to nfs for rule with index 3 for export policy dlamotta0101
.


PolicyName RuleIndex ClientMatch Protocol RoRule
RwRule Vserver
---------- --------- ----------- -------- ------
------ -------
dlamotta0101 3 10.69.169.172 {nfs} {any}
{sys} dlamotta01



RELATED LINKS
Get-NcExportRule
Remove-NcExportRule
Set-NcExportRuleIndex
New-NcExportRule







 Data ONTAP® PowerShell Toolkit