Condividi tramite


NfsAccessRule Class

Definition

Rule to place restrictions on portions of the cache namespace being presented to clients.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.NfsAccessRuleTypeConverter))]
public class NfsAccessRule : Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.INfsAccessRule
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.NfsAccessRuleTypeConverter))>]
type NfsAccessRule = class
    interface INfsAccessRule
    interface IJsonSerializable
Public Class NfsAccessRule
Implements INfsAccessRule
Inheritance
NfsAccessRule
Attributes
Implements

Constructors

NfsAccessRule()

Creates an new NfsAccessRule instance.

Properties

Access

Access allowed by this rule.

AnonymousGid

GID value that replaces 0 when rootSquash is true. This will use the value of anonymousUID if not provided.

AnonymousUid

UID value that replaces 0 when rootSquash is true. 65534 will be used if not provided.

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.

RootSquash

Map root accesses to anonymousUID and anonymousGID.

Scope

Scope for this rule. The scope and filter determine which clients match the rule.

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'.

Suid

Allow SUID semantics.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of NfsAccessRule.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of NfsAccessRule.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.StorageCache.Models.Api20230501.INfsAccessRule.

FromJsonString(String)

Creates a new instance of NfsAccessRule, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of NfsAccessRule into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to