zfs.resource.encryption.export_keys

Export the hex keys the system stores for path and its descendants.

The output pipe receives a JSON file mapping each encryption root to its key, which zfs.resource.encryption.unlock accepts with key_file. Stored keys that no longer open their encryption root are discarded first.

This method is a job.

This job MUST produce a file for download. See Downloading a File.

Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: data

data

Type: object

Export keys parameters.

No Additional Properties

Path

Type: string

Path whose stored keys, and those of its descendants, are exported.

Must be at least 1 characters long

Result

Type: null

Returns null once the keys are written to the output pipe.



Required roles: REPLICATION_TASK_WRITE | ZFS_RESOURCE_WRITE