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.webshare.query¶
Sent on sharing.webshare changes.
SharingWebshareAddedEvent
Type: objectNo Additional Properties
Id
Type: integerSharingWebshareEntry
Type: objectWebshare share entry on the TrueNAS server.
No Additional PropertiesId
Type: integerUnique identifier for this Webshare share.
Name
Type: stringWebshare share name.
Must be at least 1 characters long
Path
Type: stringLocal server path to share by using the Webshare protocol. The path must start with /mnt/ and must be in a ZFS pool.
Must be at least 1 characters long
Enabled
Type: boolean Default: trueIf unset, the Webshare share is not available.
Is Home Base
Type: boolean Default: falseIf set, this share is used as the base path for user home directories. Only one share can have this enabled.
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.
SharingWebshareChangedEvent
Type: objectNo Additional Properties
Id
Type: integerSharingWebshareEntry
Type: objectWebshare share entry on the TrueNAS server.
No Additional PropertiesId
Type: integerUnique identifier for this Webshare share.
Name
Type: stringWebshare share name.
Must be at least 1 characters long
Path
Type: stringLocal server path to share by using the Webshare protocol. The path must start with /mnt/ and must be in a ZFS pool.
Must be at least 1 characters long
Enabled
Type: boolean Default: trueIf unset, the Webshare share is not available.
Is Home Base
Type: boolean Default: falseIf set, this share is used as the base path for user home directories. Only one share can have this enabled.
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.
SharingWebshareRemovedEvent
Type: objectNo Additional Properties
Id
Type: integerRequired roles: SHARING_WEBSHARE_READ