ArmStorageCacheModelFactory.NfsAccessRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.StorageCache.Models.NfsAccessRule NfsAccessRule(Azure.ResourceManager.StorageCache.Models.NfsAccessRuleScope scope = default, string filter = default, Azure.ResourceManager.StorageCache.Models.NfsAccessRuleAccess access = default, bool? allowSuid = default, bool? allowSubmountAccess = default, bool? enableRootSquash = default, string anonymousUID = default, string anonymousGID = default);
static member NfsAccessRule : Azure.ResourceManager.StorageCache.Models.NfsAccessRuleScope * string * Azure.ResourceManager.StorageCache.Models.NfsAccessRuleAccess * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string -> Azure.ResourceManager.StorageCache.Models.NfsAccessRule
Public Shared Function NfsAccessRule (Optional scope As NfsAccessRuleScope = Nothing, Optional filter As String = Nothing, Optional access As NfsAccessRuleAccess = Nothing, Optional allowSuid As Nullable(Of Boolean) = Nothing, Optional allowSubmountAccess As Nullable(Of Boolean) = Nothing, Optional enableRootSquash As Nullable(Of Boolean) = Nothing, Optional anonymousUID As String = Nothing, Optional anonymousGID As String = Nothing) As NfsAccessRule
Parameters
- scope
- NfsAccessRuleScope
Scope for this rule. The scope and filter determine which clients match the rule.
- filter
- String
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.
- access
- NfsAccessRuleAccess
Access allowed by this rule.
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'.
- anonymousUID
- String
UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.
- anonymousGID
- String
GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.
Returns
A new NfsAccessRule instance for mocking.