Previously, the NFS share API at /api/2.0/sharing/nfs had more fields, but as of TrueNAS 22.12.3, it's been reduced to the following four fields:
path local path to be exported.
aliases IGNORED, for now.
networks is a list of authorized networks that are allowed to access the share having format "network/mask" CIDR notation. If empty, all networks are allowed.
hosts is a list of IP's/hostnames which are allowed to access the share. If empty, all IP's/hostnames are allowed.
Fields like comment, maproot*, or even paths were removed, so using terraform to get or set nfs shares causes the plugin to either error when trying to apply, or crash when trying to import.
Previously, the NFS share API at /api/2.0/sharing/nfs had more fields, but as of TrueNAS 22.12.3, it's been reduced to the following four fields:
path
local path to be exported.aliases
IGNORED, for now.networks
is a list of authorized networks that are allowed to access the share having format "network/mask" CIDR notation. If empty, all networks are allowed.hosts
is a list of IP's/hostnames which are allowed to access the share. If empty, all IP's/hostnames are allowed.Fields like
comment
,maproot*
, or evenpaths
were removed, so using terraform to get or set nfs shares causes the plugin to either error when trying to apply, or crash when trying to import.