# 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.

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.

This method is a job.

Type: object

##

Type: array
No Additional Items

#### Tuple Validation

##### Parameter 1: id

#### id

Type: integer

ID of the pool to export.

##### Parameter 2: options

#### options

Type: object

Options for controlling the pool export process.

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

Returns `null` on successful pool export.

Required roles: POOL_WRITE