Actions27
NFS Export Rule → Update
AI-generatedSummary
Update an existing NFS export rule within a specified export policy on a NetApp ONTAP cluster by modifying selected rule properties.
Inputs
- Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF.
- Port — HTTPS port for the ONTAP REST API, defaults to 443.
- Export Policy (required) — The ID of the export policy containing the export rule to update.
- Rule Index (required) — Index of the export rule within the export policy to update.
- Update Fields (required) — Collection of fields to update for the export rule, including 'anonymousUser' (string user ID for anonymous requests), 'clients' (string of comma-separated client match specifications such as IP addresses or subnets), 'protocols' (array of protocols like 'any', 'cifs', 'flexcache', 'nfs', 'nfs3', 'nfs4'), 'roRule' (array of read-only access security flavors), 'rwRule' (array of read-write access security flavors), and 'superuser' (array of superuser security flavors).
- Options — Additional options such as 'Fields' specifying a comma-separated list of fields to include in the response.
Output shape
a single JSON object representing the updated export rule or the job response if the update operation is asynchronous
The operation sends a PATCH request to update the specified export rule. If the ONTAP API response includes a job, the node polls until the job completes and returns the final state. Errors are reported if the policy or rule does not exist or if the update fails.
Examples
Example 1: Update an export rule's clients and read-write access rules
Provide the cluster host, export policy ID, rule index, and specify update fields 'clients' with a new comma-separated list and 'rwRule' with desired access flavors.