pool.export =========== Export pool of `id`. `cascade` will delete all attachments of the given pool (`pool.attachments`). `restart_services` will restart services that have open files on given pool. `destroy` will also PERMANENTLY destroy the pool/data. .. examples(websocket):: Export pool of id 1. :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "pool.export, "params": [1, { "cascade": true, "destroy": false }] } If this is an HA system and failover is enabled and the last zpool is exported/disconnected, then this will raise EOPNOTSUPP. Failover must be disabled before exporting the last zpool on the system. .. raw:: html
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: id

id

Type: integer
Parameter 2: options

options

Type: object
No Additional Properties

Cascade

Type: boolean Default: false

Delete all attachments of the given pool (pool.attachments).

Restart Services

Type: boolean Default: false

Restart services that have open files on given pool.

Destroy

Type: boolean Default: false

PERMANENTLY destroy the pool/data.

Result

Type: null


*Required roles:* POOL_WRITE