New-UnityNFSShare

SYNOPSIS

Creates NFS share.

SYNTAX

New-UnityNFSShare [-session <Object>] [-Filesystem] <String[]> -Path <String> -Name <String>
 [-description <String>] [-isReadOnly <Boolean>] [-defaultAccess <NFSShareDefaultAccessEnum>]
 [-minSecurity <NFSShareSecurityEnum>] [-noAccessHosts <String[]>] [-readOnlyHosts <String[]>]
 [-readWriteHosts <String[]>] [-rootAccessHosts <String[]>] [-WhatIf] [-Confirm]

DESCRIPTION

Creates NFS share. You need to have an active session with the array.

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

New-UnityNFSShare -Filesystem fs_17 -Path / -Name 'NFSSHARE01' -rootAccessHosts Host_20

Create a new NFS Share named 'NFSSHARE01'

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

-Filesystem

Specify Filesystem ID

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Path

Local path to a location within a file system.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Name of the NFS share unique to NAS server

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: False
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

-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

https://github.com/equelin/Unity-Powershell