Actions27
NFS Export Rule → Create
AI-generatedSummary
Create a new NFS export rule on a specified ONTAP export policy by specifying clients, read-only and read-write security flavors, and optional advanced settings.
Inputs
- Cluster Host (required) — The hostname or IP address of the ONTAP cluster management LIF used for API connectivity.
- Port — HTTPS port for the ONTAP REST API, defaults to 443.
- Export Policy (required) — The export policy ID under which the NFS export rule will be created.
- Clients (required) — Client match specification as IP, subnet, or hostname to which this rule applies (e.g., '0.0.0.0/0' or '192.168.1.0/24').
- RO Rule (required) — List of allowed read-only access security flavors (e.g., any, krb5, sys). Defaults to ['sys'].
- RW Rule (required) — List of allowed read-write access security flavors, defaults to ['sys'].
- Additional Options — Optional advanced settings including anonymous user ID for requests, allowed protocols, optional explicit rule index (0 to auto-assign), and superuser security flavors.
Output shape
a single JSON object containing details of the created export rule, including job status if asynchronous
The operation returns the created export rule details or an async job status if creation is processed asynchronously. The export policy must exist prior to creating a rule under it.
Examples
Example 1: Create an export rule for all clients with sys security flavor and default settings
Set Cluster Host, Export Policy ID, Clients='0.0.0.0/0', RO Rule=['sys'], RW Rule=['sys'], and leave Additional Options as defaults.