Editing an Export and Export Options

Update a File Storage export and its options.

To be sure you be sure that you edit the correct export, check the following details:

  • The export path: This path uniquely identifies the file system within the mount target. No two exports in a mount target can have the same export path, even if the exports are for the same file system.

    Note

    Export paths can't be edited after the export is created. To use a different export path, you must create a new export with the preferred path. Optionally, you can then delete the export with the old path.
  • The mount target name: File systems can be exported through more than one mount target. Be sure to select the export for the correct mount target.

For more information, see Working with NFS Exports and Export Options.

    1. Open the navigation menu and click Storage. Under File Storage, click File Systems.
    2. In the List scope section, under Compartment, select a compartment. All the file systems in the selected compartment are displayed.
    3. Click the name of the file system that you want to set export options for.
    4. On the file system's details page, under Resources, click Exports.
    5. In the Exports list, click the name of the export for which you want to set options.
    6. On the export's details page, under NFS client Export options, click Edit options.
    7. In the Edit options panel, update the following information:

      • Change an export option entry in the list.
      • Click +Another option to create a new export option entry.
      • Click the Actions menu (Actions Menu) for an entry and move it up or down in the list.
      • Click the Actions menu (Actions Menu) for an entry and click Delete.

      For more information, see NFS Export Options.

    8. Click Update.
  • Use the fs export update command and include the --export-options parameter to update export options:

    oci fs export update --export-id <export_OCID> --export-options '[{"source":"<0.0.0.0/0>","require-privileged-source-port":"true","access":"READ_ONLY","identity-squash":"ROOT","anonymous-uid":"65534","anonymous-gid":"65534"}]'

    If you don't want a file system to be visible to any clients through this export, you can set source to an empty value. For example:

    oci fs export update --export-id <export_OCID> --export-options '[{"source":"","require-privileged-source-port":"true","access":"READ_ONLY","identity-squash":"ROOT","anonymous-uid":"65534","anonymous-gid":"65534"}]'
    Important

    Updates to --export-options will replace any existing values.

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateExport operation to update an export and its options.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.