New-AzStorageCacheNfsAccessRuleObject
Create an in-memory object for NfsAccessRule.
Syntax
New-AzStorageCacheNfsAccessRuleObject
-Access <NfsAccessRuleAccess>
-Scope <NfsAccessRuleScope>
[-AnonymousGid <String>]
[-AnonymousUid <String>]
[-Filter <String>]
[-RootSquash <Boolean>]
[-SubmountAccess <Boolean>]
[-Suid <Boolean>]
[<CommonParameters>]
Description
Create an in-memory object for NfsAccessRule.
Examples
Example 1: Create an in-memory object for NfsAccessRule.
New-AzStorageCacheNfsAccessRuleObject -Access 'rw' -Scope 'network' -AnonymousUid "65534" -AnonymousGid "65534" -SubmountAccess:$True -RootSquash:$True -Suid:$False -Filter "10.99.1.0/24"
Access AnonymousGid AnonymousUid Filter RootSquash Scope SubmountAccess Suid
------ ------------ ------------ ------ ---------- ----- -------------- ----
rw 65534 65534 10.99.1.0/24 True network True False
Create an in-memory object for NfsAccessRule.
Parameters
-Access
Access allowed by this rule.
Type: | NfsAccessRuleAccess |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AnonymousGid
GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AnonymousUid
UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Filter
Filter applied to the scope for this rule. The filter's format depends on its scope. 'default' scope matches all clients and has no filter value. 'network' scope takes a filter in CIDR format (for example, 10.99.1.0/24). 'host' takes an IP address or fully qualified domain name as filter. If a client does not match any filter rule and there is no default rule, access is denied.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RootSquash
Map root accesses to anonymousUID and anonymousGID.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Scope
Scope for this rule. The scope and filter determine which clients match the rule.
Type: | NfsAccessRuleScope |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubmountAccess
For the default policy, allow access to subdirectories under the root export. If this is set to no, clients can only mount the path '/'. If set to yes, clients can mount a deeper path, like '/a/b'.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Suid
Allow SUID semantics.
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |