public sealed class NfsExportOptions : IMessage<NfsExportOptions>, IEquatable<NfsExportOptions>, IDeepCloneable<NfsExportOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Filestore v1 API class NfsExportOptions.
public NfsExportOptions.Types.AccessMode AccessMode { get; set; }
Either READ_ONLY, for allowing only read requests on the exported
directory, or READ_WRITE, for allowing both read and write requests.
The default is READ_WRITE.
An integer representing the anonymous group id with a default value of
65534.
Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
returned if this field is specified for other squash_mode settings.
An integer representing the anonymous user id with a default value of
65534.
Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
returned if this field is specified for other squash_mode settings.
List of either an IPv4 addresses in the format
{octet1}.{octet2}.{octet3}.{octet4} or CIDR ranges in the format
{octet1}.{octet2}.{octet3}.{octet4}/{mask size} which may mount the
file share.
Overlapping IP ranges are not allowed, both within and across
NfsExportOptions. An error will be returned.
The limit is 64 IP ranges/addresses for each FileShareConfig among all
NfsExportOptions.
public NfsExportOptions.Types.SquashMode SquashMode { get; set; }
Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
or ROOT_SQUASH, for not allowing root access. The default is
NO_ROOT_SQUASH.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eNfsExportOptions\u003c/code\u003e class within the Google Cloud Filestore v1 API, detailing its functionality and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNfsExportOptions\u003c/code\u003e class, used for defining NFS export configurations, supports various properties such as \u003ccode\u003eAccessMode\u003c/code\u003e, \u003ccode\u003eAnonGid\u003c/code\u003e, \u003ccode\u003eAnonUid\u003c/code\u003e, \u003ccode\u003eIpRanges\u003c/code\u003e, and \u003ccode\u003eSquashMode\u003c/code\u003e to manage file share access and security.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be implemented as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API available, ranging from version 1.0.0 to the latest 2.7.0, which can be used for \u003ccode\u003eNfsExportOptions\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe IpRanges property can hold a maximum of 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.\u003c/p\u003e\n"]]],[],null,["# Cloud Filestore v1 API - Class NfsExportOptions (2.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.6.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.5.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.4.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.3.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.2.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.1.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/2.0.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.2.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.1.0/Google.Cloud.Filestore.V1.NfsExportOptions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Filestore.V1/1.0.0/Google.Cloud.Filestore.V1.NfsExportOptions) \n\n public sealed class NfsExportOptions : IMessage\u003cNfsExportOptions\u003e, IEquatable\u003cNfsExportOptions\u003e, IDeepCloneable\u003cNfsExportOptions\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Filestore v1 API class NfsExportOptions.\n\nNFS export options specifications. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e NfsExportOptions \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NfsExportOptions](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.NfsExportOptions), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NfsExportOptions](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.NfsExportOptions), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NfsExportOptions](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1.NfsExportOptions), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Filestore.V1](/dotnet/docs/reference/Google.Cloud.Filestore.V1/latest/Google.Cloud.Filestore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Filestore.V1.dll\n\nConstructors\n------------\n\n### NfsExportOptions()\n\n public NfsExportOptions()\n\n### NfsExportOptions(NfsExportOptions)\n\n public NfsExportOptions(NfsExportOptions other)\n\nProperties\n----------\n\n### AccessMode\n\n public NfsExportOptions.Types.AccessMode AccessMode { get; set; }\n\nEither READ_ONLY, for allowing only read requests on the exported\ndirectory, or READ_WRITE, for allowing both read and write requests.\nThe default is READ_WRITE.\n\n### AnonGid\n\n public long AnonGid { get; set; }\n\nAn integer representing the anonymous group id with a default value of\n65534.\nAnon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings.\n\n### AnonUid\n\n public long AnonUid { get; set; }\n\nAn integer representing the anonymous user id with a default value of\n65534.\nAnon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be\nreturned if this field is specified for other squash_mode settings.\n\n### IpRanges\n\n public RepeatedField\u003cstring\u003e IpRanges { get; }\n\nList of either an IPv4 addresses in the format\n`{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format\n`{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the\nfile share.\nOverlapping IP ranges are not allowed, both within and across\nNfsExportOptions. An error will be returned.\nThe limit is 64 IP ranges/addresses for each FileShareConfig among all\nNfsExportOptions.\n\n### SquashMode\n\n public NfsExportOptions.Types.SquashMode SquashMode { get; set; }\n\nEither NO_ROOT_SQUASH, for allowing root access on the exported directory,\nor ROOT_SQUASH, for not allowing root access. The default is\nNO_ROOT_SQUASH."]]