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 select Storage. Under File Storage, select File Systems.
    2. Select the compartment that has the export you want to work with.
    3. On the file systems details page, select the name of the file system that has the export you want to edit, then select Exports.
    4. On the Exports page, select the export you want to edit.
    5. On the export's details page, select NFS client Export options and then select Edit options.
    6. In the Edit options panel, update the following information and
      • Change any of the export option entries in the list.
      • Select Add option to create a new export option entry.

      For more information, see NFS Export Options.

    7. Select 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 parameters and values for CLI commands, see the CLI Command 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.