Update an existing host option

Only available on NMC version 21.2 and higher.

SecurityAuthToken
Request
path Parameters
volume_guid
required
string

Volume identifier

filer_serial
required
string

Filer object identifier

export_id
required
string

Export object identifier

host_option_id
required
string

Host option object identifier

Request Body schema: application/json
required

Host option fields to update

readonly
boolean (ExportReadOnlyField)
Default: false

If true, files and directories cannot be changed on the exported directory. Default is false.

hostspec
string (ExportHostSpecField)
Default: "*"

A comma-separated list of the hostnames, IP addresses with optional netmasks, or @-prefixed netgroup names allowed to access the export. If blank, all hosts on your network can access the export. Hostnames may contain the * character as a wildcard (Default when being set on an Export).

access_mode
string (ExportAccessModeField)
Default: "root_squash"

Controls what User IDs are allowed when a client writes to the exported directory. Possible values:

  • 'root_squash' - Normal Users Permitted - Default
  • 'no_root_squash' - All Users Permitted
  • 'all_squash' - Anonymize All Users
Enum: "root_squash" "no_root_squash" "all_squash"
perf_mode
string (ExportPerfModeField)
Default: "sync"

Controls the method in which the NFS server replies to clients. Changing this may impact the safety of data if the Nasuni Filer is shut down abnormally! Possible values:

  • 'sync' - Default
  • 'no_wdelay' - No Write Delay
  • 'async' - Asynchronous Replies
Enum: "sync" "no_wdelay" "async"
sec_options
Array of strings (ExportSecOptionsField) <= 4 items

Security options in use by the exported directory. Multiple options may be applied, but they cannot be repeated.

Items Enum: "sys" "krb5" "krb5i" "krb5p"
Responses
202

Accepted - Filer has been sent a message

400

Validation error

401

Authentication failure

403

Permission denied

429

Request throttled

patch/volumes/{volume_guid}/filers/{filer_serial}/exports/{export_id}/nfs_host_options/{host_option_id}/
Request samples
application/json
{
  • "readonly": false,
  • "hostspec": "*",
  • "access_mode": "root_squash",
  • "perf_mode": "sync",
  • "sec_options": [
    ]
}
Response samples
application/json
{
  • "message": {
    }
}
Copyright © 2025 Nasuni Corporation. All rights reserved.