Create an NFS share
omv_create_nfs_shareStages an NFS export of an existing OpenMediaVault shared folder to one client host, address, or CIDR network, with read-only or read-write options; apply changes later.
Instructions
Export an existing shared folder over NFS to one client: a host, an address, or a CIDR network. Staged. Use it when asked "export Media over NFS", "let 192.0.2.10 mount it", or "add an NFS share for Linux"; for Windows or macOS clients, omv_create_smb_share. The export options come from a fixed list: ro (the default) or rw, subtree_check (on by default; off sends no_subtree_check, the NFS default), and insecure (only when asked); nothing else, and no free-text options. A folder may have several NFS shares, one per client: refuses when it already has one for this client, and returns outcome unchanged when that one exports exactly the same options. client '*' (any host) needs allow_any_client=true. Creating a share does not enable a disabled NFS service; the detail says so. Apply with omv_apply_changes. Needs OMV_ALLOW_WRITES=1.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shared_folder": "<shared_folder>",
"client": "<client>"
},
"name": "omv_create_nfs_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | Who may mount it: one host name (nas-client.example.com), one address (192.0.2.10), or one network in CIDR form (192.0.2.0/24). '*' (anyone) only together with allow_any_client=true. | |
| comment | No | A comment: one line of printable text, up to 200 characters. | |
| insecure | No | Add the insecure export option, allowing client ports above 1023 (macOS needs it). | |
| read_only | No | Export read-only (ro, the default) or read-write (rw). | |
| shared_folder | Yes | The shared folder to share, by name, as omv_list_shared_folders shows it. | |
| subtree_check | No | Add the subtree_check export option (the default). | |
| allow_any_client | No | Must be true for client '*', which lets any host mount it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| outcome | Yes | ||
| pending | Yes |