Table Of Contents
- JSON-RPC 2.0 over WebSocket API
- API Methods
- API Events
- acme.dns.authenticator
- alert
- alertservice
- api_key
- app
- app.image
- app.registry
- auth
- certificate
- cloud_backup
- cloudsync
- cloudsync.credentials
- container
- container.device
- core
- cronjob
- directoryservices
- disk
- docker
- docker.network
- failover
- failover.disabled
- failover.reboot
- fc.fc_host
- fcport
- filesystem
- filesystem.acltemplate
- group
- initshutdownscript
- interface
- iscsi.auth
- iscsi.extent
- iscsi.initiator
- iscsi.portal
- iscsi.target
- iscsi.targetextent
- jbof
- kerberos.keytab
- kerberos.realm
- keychaincredential
- nvmet.host
- nvmet.host_subsys
- nvmet.namespace
- nvmet.port
- nvmet.port_subsys
- nvmet.subsys
- pool
- pool.dataset
- pool.scrub
- pool.snapshot
- pool.snapshottask
- privilege
- replication
- reporting
- reporting.exporters
- rsynctask
- service
- sharing.nfs
- sharing.smb
- sharing.webshare
- staticroute
- system
- system.ntpserver
- system.reboot
- tn_connect
- truecommand
- tunable
- update
- user
- vm
- vm.device
- vmware
- Jobs
- Query Methods
Previous topic
Next topic
sharing.nfs.query¶
Sent on sharing.nfs changes.
SharingNFSAddedEvent
Type: objectNo Additional Properties
Id
Type: integerSharingNFSEntry
Type: objectNo Additional Properties
Id
Type: integerUnique identifier for the NFS share.
Path
Type: stringLocal path to be exported.
Must be at least 1 characters long
Aliases
Type: array of string Default: []IGNORED for now.
No Additional ItemsEach item of this array must be:
Must be at least 1 characters long
Comment
Type: string Default: ""User comment associated with share.
Networks
Type: array of string Default: []List of authorized networks that are allowed to access the share having format "network/mask" CIDR notation. Each entry must be unique. If empty, all networks are allowed.
Excessively long lists should be avoided.
Each item of this array must be:
Must be at least 1 characters long
Hosts
Type: array of string Default: []List of IP's/hostnames which are allowed to access the share. No quotes or spaces are allowed.
Each entry must be unique. If empty, all IP's/hostnames are allowed.
Excessively long lists should be avoided.
Each item of this array must be:
Must be at least 1 characters long
Ro
Type: boolean Default: falseExport the share as read only.
Security
Type: array of enum (of string) Default: []Specify the security schema.
No Additional ItemsEach item of this array must be:
Must be one of:
- "SYS"
- "KRB5"
- "KRB5I"
- "KRB5P"
Enabled
Type: boolean Default: trueEnable or disable the share.
Locked
Read-only value indicating whether the share is located on a locked dataset.
Returns:
- True: The share is in a locked dataset.
- False: The share is not in a locked dataset.
- None: Lock status is not available because path locking information was not requested.
Expose Snapshots
Type: boolean Default: falseEnterprise feature to enable access to the ZFS snapshot directory for the export.
Export path must be the root directory of a ZFS dataset.
SharingNFSChangedEvent
Type: objectNo Additional Properties
Id
Type: integerSharingNFSEntry
Type: objectNo Additional Properties
Id
Type: integerUnique identifier for the NFS share.
Path
Type: stringLocal path to be exported.
Must be at least 1 characters long
Aliases
Type: array of string Default: []IGNORED for now.
No Additional ItemsEach item of this array must be:
Must be at least 1 characters long
Comment
Type: string Default: ""User comment associated with share.
Networks
Type: array of string Default: []List of authorized networks that are allowed to access the share having format "network/mask" CIDR notation. Each entry must be unique. If empty, all networks are allowed.
Excessively long lists should be avoided.
Each item of this array must be:
Must be at least 1 characters long
Hosts
Type: array of string Default: []List of IP's/hostnames which are allowed to access the share. No quotes or spaces are allowed.
Each entry must be unique. If empty, all IP's/hostnames are allowed.
Excessively long lists should be avoided.
Each item of this array must be:
Must be at least 1 characters long
Ro
Type: boolean Default: falseExport the share as read only.
Security
Type: array of enum (of string) Default: []Specify the security schema.
No Additional ItemsEach item of this array must be:
Must be one of:
- "SYS"
- "KRB5"
- "KRB5I"
- "KRB5P"
Enabled
Type: boolean Default: trueEnable or disable the share.
Locked
Read-only value indicating whether the share is located on a locked dataset.
Returns:
- True: The share is in a locked dataset.
- False: The share is not in a locked dataset.
- None: Lock status is not available because path locking information was not requested.
Expose Snapshots
Type: boolean Default: falseEnterprise feature to enable access to the ZFS snapshot directory for the export.
Export path must be the root directory of a ZFS dataset.
SharingNFSRemovedEvent
Type: objectNo Additional Properties
Id
Type: integerRequired roles: SHARING_NFS_READ