Share via


NfsAccessRule Class

Definition

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

public class NfsAccessRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.StorageCache.Models.NfsAccessRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.StorageCache.Models.NfsAccessRule>
type NfsAccessRule = class
    interface IJsonModel<NfsAccessRule>
    interface IPersistableModel<NfsAccessRule>
Public Class NfsAccessRule
Implements IJsonModel(Of NfsAccessRule), IPersistableModel(Of NfsAccessRule)
Inheritance
NfsAccessRule
Implements

Constructors

NfsAccessRule(NfsAccessRuleScope, NfsAccessRuleAccess)

Initializes a new instance of NfsAccessRule.

Properties

Access

Access allowed by this rule.

AllowSubmountAccess

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

AllowSuid

Allow SUID semantics.

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.

EnableRootSquash

Map root accesses to anonymousUID and anonymousGID.

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.

Scope

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

Explicit Interface Implementations

IJsonModel<NfsAccessRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NfsAccessRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NfsAccessRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NfsAccessRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NfsAccessRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to