Set-UnityNFSShare
SYNOPSIS
Modifies NFS share.
SYNTAX
Set-UnityNFSShare [-session <Object>] [-ID] <Object[]> [-description <String>] [-isReadOnly <Boolean>]
[-defaultAccess <NFSShareDefaultAccessEnum>] [-minSecurity <NFSShareSecurityEnum>] [-noAccessHosts <String[]>]
[-readOnlyHosts <String[]>] [-readWriteHosts <String[]>] [-rootAccessHosts <String[]>] [-append] [-WhatIf]
[-Confirm]
DESCRIPTION
Modifies NFS share. You need to have an active session with the array.
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
Set-UnityNFSShare -id 'NFSShare_2' -rootAccessHosts Host_20 -append
Set NFS Share with id 'NFSShare_2'
PARAMETERS
-session
Specify an UnitySession Object.
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: ($global:DefaultUnitySession | where-object {$_.IsConnected -eq $true})
Accept pipeline input: False
Accept wildcard characters: False
-ID
ID of the NFS share.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-description
NFS share description
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-isReadOnly
Indicates whether the NFS share is read-only. Values are: - true - NFS share is read-only. - false - NFS share is read-write.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-defaultAccess
Default access level for all hosts accessing the NFS share.
Type: NFSShareDefaultAccessEnum
Parameter Sets: (All)
Aliases:
Accepted values: NoAccess, ReadOnly, ReadWrite, Root
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-minSecurity
Minimal security level that must be provided by a client to mount the NFS share.
Type: NFSShareSecurityEnum
Parameter Sets: (All)
Aliases:
Accepted values: Sys, Kerberos, KerberosWithIntegrity, KerberosWithEncryption
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-noAccessHosts
Hosts with no access to the NFS share or its snapshots, as defined by the host resource type.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-readOnlyHosts
Hosts with read-only access to the NFS share and its snapshots, as defined by the host resource type.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-readWriteHosts
Hosts with read-write access to the NFS share and its snapshots, as defined by the host resource type.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-rootAccessHosts
Hosts with root access to the NFS share and its snapshots, as defined by the host resource type.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-append
Append Hosts access to existing configuration
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
INPUTS
OUTPUTS
NOTES
Written by Erwan Quelin under MIT licence - https://github.com/equelin/Unity-Powershell/blob/master/LICENSE