zfs.resource.set ================ Change the properties of a ZFS resource (filesystem or volume). One request sets native properties, sets user properties and resets properties to their inherited value. Properties are given by native ZFS property name - exactly the names :doc:`zfs.resource.list ` returns - and are handed to ZFS as-is. The returned entry holds the values as canonicalized by ZFS, not the input. Inheriting a user property removes it. Inheriting ``acltype`` also inherits ``aclmode`` and ``aclinherit`` unless the request sets them, and setting ``acltype`` defaults them the way :doc:`zfs.resource.create ` does. A validation error is raised when: - a snapshot path (containing ``@``) is supplied (``EINVAL``) - the path references a protected internal resource (``EACCES``) - the resource does not exist (``ENOENT``) - nothing is set or inherited (``EINVAL``) - the same name is both set and inherited (``EINVAL``) - a name in ``inherit`` is neither a settable native property nor a user property name with a colon, or a user property name lacks a colon (``EINVAL``) - ``volsize`` is smaller than the volume's current size (``EINVAL``) - ``volsize`` is changed on a read-only (``EROFS``) or locked (``EACCES``) volume - ``volsize`` is not a multiple of the volume's ``volblocksize`` (``EINVAL``) - ``volsize`` exceeds 80% of the space available to the volume and ``force_size`` is not set (``EINVAL``) - a filesystem's ``refreservation`` would exceed its ``refquota``, or is ``auto`` (``EINVAL``) - ``force_size`` is set for a FILESYSTEM (``EINVAL``) - the effective ``acltype`` and ``aclmode`` combination is unusable - a posix or off acltype requires a discard aclmode and a discard aclmode may not be combined with the nfsv4 acltype (``EINVAL``) - ``special_small_blocks`` is set or inherited while ZFS tiering is enabled - placement is managed with :doc:`zfs.tier.dataset_set_tier ` (``EINVAL``) - deduplication is requested on a system that is not entitled to it, or for a filesystem whose data is placed on the SPECIAL vdev (the PERFORMANCE tier) while ZFS tiering is enabled (``EINVAL``) - a property is invalid for the resource type, is read-only, or has an invalid value (``EINVAL``) - ``acltype`` is changed on a filesystem hosting an enabled SMB share (``EINVAL``) - ``snapdev`` would hide a snapshot device backing an iSCSI extent, NVMe-oF namespace or VM disk (``EINVAL``) .. important:: A dependent service that fails to follow a ``volsize`` or ``readonly`` change fails the call, but the properties stay written. Examples: Set a property: .. code:: json {"path": "tank/documents", "properties": {"compression": "zstd"}} Reset a property to its inherited value: .. code:: json {"path": "tank/documents", "inherit": ["compression"]} Set one user property and remove another: .. code:: json { "path": "tank/documents", "user_properties": {"org.truenas:custom": "value"}, "inherit": ["org.truenas:obsolete"] } .. raw:: html
Type: object

Type: array
No Additional Items

Tuple Validation

Parameter 1: data

data

Type: object

Set parameters for changing a ZFS resource.

No Additional Properties

Path

Type: string

Path of the zfs resource (dataset or volume) to be updated. Must be of the form 'pool/name'. Snapshot paths (containing '@') are not accepted.

Must be at least 1 characters long

ZFSResourceSetProperties

Type: object

ZFS properties to set. Values are handed to ZFS verbatim and canonicalized by ZFS itself. Read the returned entry for the effective values. A property left as null is not touched. Any property not in this model may not be changed here.

An explicit 'acltype' also defaults the coupled acl properties unless they are given. An nfsv4 acltype defaults 'aclinherit' to 'passthrough' while a posix or off acltype defaults both 'aclmode' and 'aclinherit' to 'discard'.

A volume's 'volsize' may only grow. Encryption is managed with the pool.dataset key methods and shares with the sharing.nfs and sharing.smb APIs. Neither may be configured through these properties.

No Additional Properties

Aclinherit

Default: null

ACL inheritance behavior for new files and directories.

Type: enum (of string)
Must be one of:
  • "discard"
  • "noallow"
  • "restricted"
  • "passthrough"
  • "passthrough-x"
Type: null

Aclmode

Default: null

How ACLs are modified during chmod operations.

Type: enum (of string)
Must be one of:
  • "discard"
  • "groupmask"
  • "passthrough"
  • "restricted"
Type: null

Acltype

Default: null

The type of ACL to use (off, posix, or nfsv4).

Type: enum (of string)
Must be one of:
  • "off"
  • "posix"
  • "nfsv4"
Type: null

Atime

Default: null

Whether file access times are updated on read.

Type: enum (of string)
Must be one of:
  • "off"
  • "on"
Type: null

Checksum

Default: null

Checksum algorithm used to verify data integrity.

Type: enum (of string)
Must be one of:
  • "on"
  • "off"
  • "fletcher2"
  • "fletcher4"
  • "sha256"
  • "sha512"
  • "skein"
  • "edonr"
  • "blake3"
Type: null

Compression

Default: null

Compression algorithm for the resource.

Type: enum (of string)
Must be one of:
  • "on"
  • "off"
  • "lzjb"
  • "gzip"
  • "gzip-1"
  • "gzip-2"
  • "gzip-3"
  • "gzip-4"
  • "gzip-5"
  • "gzip-6"
  • "gzip-7"
  • "gzip-8"
  • "gzip-9"
  • "zle"
  • "lz4"
  • "zstd"
  • "zstd-1"
  • "zstd-2"
  • "zstd-3"
  • "zstd-4"
  • "zstd-5"
  • "zstd-6"
  • "zstd-7"
  • "zstd-8"
  • "zstd-9"
  • "zstd-10"
  • "zstd-11"
  • "zstd-12"
  • "zstd-13"
  • "zstd-14"
  • "zstd-15"
  • "zstd-16"
  • "zstd-17"
  • "zstd-18"
  • "zstd-19"
  • "zstd-fast"
  • "zstd-fast-1"
  • "zstd-fast-2"
  • "zstd-fast-3"
  • "zstd-fast-4"
  • "zstd-fast-5"
  • "zstd-fast-6"
  • "zstd-fast-7"
  • "zstd-fast-8"
  • "zstd-fast-9"
  • "zstd-fast-10"
  • "zstd-fast-20"
  • "zstd-fast-30"
  • "zstd-fast-40"
  • "zstd-fast-50"
  • "zstd-fast-60"
  • "zstd-fast-70"
  • "zstd-fast-80"
  • "zstd-fast-90"
  • "zstd-fast-100"
  • "zstd-fast-500"
  • "zstd-fast-1000"
Type: null

Copies

Default: null

Number of copies of data blocks to store (1, 2, or 3).

Type: integer

Value must be greater or equal to 1 and lesser or equal to 3

Type: null

Dedup

Default: null

Deduplication setting for the resource.

Type: enum (of string)
Must be one of:
  • "on"
  • "off"
  • "verify"
  • "sha256"
  • "sha256,verify"
  • "sha512"
  • "sha512,verify"
  • "skein"
  • "skein,verify"
  • "edonr,verify"
  • "blake3"
  • "blake3,verify"
Type: null

Exec

Default: null

Whether programs can be executed from the filesystem.

Type: enum (of string)
Must be one of:
  • "off"
  • "on"
Type: null

Quota

Default: null

Maximum space the dataset and its descendants may consume. Takes a size as described for 'volsize'. 'none' or 0 removes the limit.

Type: integer
Type: null

Readonly

Default: null

Whether the resource can be modified.

Type: enum (of string)
Must be one of:
  • "off"
  • "on"
Type: null

Recordsize

Default: null

Suggested block size for files in the filesystem. Takes a size as described for 'volsize'.

Type: integer
Type: null

Refquota

Default: null

Maximum space the dataset itself may consume. Takes a size as described for 'volsize'. 'none' or 0 removes the limit.

Type: integer
Type: null

Refreservation

Default: null

Minimum space reserved for the resource itself. Takes a size as described for 'volsize'. 'none' or 0 removes the reservation. 'auto' reserves the space the volume's size requires and is accepted for volumes only. Giving it together with a 'volsize' grow replaces the automatic re-reservation described for 'volsize'.

Type: integer
Type: const
Specific value: "auto"
Type: null

Reservation

Default: null

Minimum space reserved for the dataset and its descendants. Takes a size as described for 'volsize'. 'none' or 0 removes the reservation.

Type: integer
Type: null

Snapdev

Default: null

Snapshot device visibility under /dev/zvol.

Type: enum (of string)
Must be one of:
  • "hidden"
  • "visible"
Type: null

Snapdir

Default: null

Visibility of the .zfs/snapshot directory.

Type: enum (of string)
Must be one of:
  • "hidden"
  • "visible"
  • "disabled"
Type: null

Special Small Blocks

Default: null

Size threshold below which blocks are stored on the SPECIAL vdev. Takes a size as described for 'volsize'. 0 stores no data blocks on the SPECIAL vdev.

Type: integer
Type: null

Sync

Default: null

Synchronous write behavior.

Type: enum (of string)
Must be one of:
  • "standard"
  • "always"
  • "disabled"
Type: null

Volsize

Default: null

Logical size of the volume. A byte count, or a string with a binary suffix (K, M, G, T, P or E, optionally followed by B or iB) such as '128K'. A fractional value such as '1.5M' is accepted only when it is a whole number of bytes. It may only grow. A grow on a volume whose 'refreservation' equals its current size, or is what 'auto' computes for it, re-reserves the volume automatically, as 'refreservation' 'auto' does, unless 'refreservation' is given in the same request.

Type: integer
Type: null

Xattr

Default: null

Extended attribute storage mode. Defaults to 'sa' for performance.

Type: enum (of string)
Must be one of:
  • "off"
  • "sa"
  • "dir"
Type: null

User Properties

Type: object Default: {}

User properties to set or overwrite, keyed by their full name (e.g. 'org.truenas:custom'). A name must contain a colon, may consist only of lowercase letters, digits and the characters ':', '.', '_' and '-', and must be shorter than 256 characters. A value may be at most 1024 characters long.

Each additional property must conform to the following schema

Type: string

Inherit

Type: array of string Default: []

Property names to reset to their inherited value, as zfs inherit does. A native property must be one of those settable through properties except quota, refquota, reservation, refreservation and volsize, which have no inherited value. A user property name must contain a colon; inheriting one removes it from this resource. On a filesystem, inheriting acltype also inherits aclmode and aclinherit unless those are given in properties. On a pool's root dataset the property returns to its ZFS default.

No Additional Items
Each item of this array must be:
Type: string

Force Size

Type: boolean Default: false

Skip the check that refuses a 'volsize' above 80% of the space available to the VOLUME. ZFS still refuses a grow whose reservation it cannot back. Applies to a VOLUME only.

ZFSResourceEntry

Type: object
No Additional Properties

Createtxg

Type: integer

Transaction group when resource was created.

Guid

Type: integer

Globally unique identifier for the resource.

Name

Type: string

The name of the zfs resource.

Pool

Type: string

The name of the zpool that the zfs resouce is associated to.


The zfs properties for the resource.

ZFSPropertiesEntry

Type: object
No Additional Properties

Aclinherit

Type: object

Controls how ACEs are inherited for new files/directories.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

SourceValue

Type: object
No Additional Properties

Type

Type: enum (of string)

The source type.

Must be one of:
  • "NONE"
  • "DEFAULT"
  • "TEMPORARY"
  • "LOCAL"
  • "INHERITED"
  • "RECEIVED"

Value


The source value.

Type: string
Type: null
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Aclmode

Type: object

Determines how ACLs are modified during chmod operations.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Acltype

Type: object

Specifies type of ACL to use (off, nfsv4, posix).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Atime

Type: object

Controls whether access time is updated on file reads.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Canmount

Type: object

Controls whether filesystem can be mounted.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Casesensitivity

Type: object

Determines filename matching algorithm sensitivity.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultgroupobjquota

Type: object

Default object quota for new groups.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultgroupquota

Type: object

Default space quota for new groups.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultprojectobjquota

Type: object

Default object quota for new projects.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultprojectquota

Type: object

Default space quota for new projects.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultuserobjquota

Type: object

Default object quota for new users.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defaultuserquota

Type: object

Default space quota for new users.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Devices

Type: object

Controls whether device files can be opened.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Direct

Type: object

Controls direct I/O behavior (standard or always).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Dnodesize

Type: object

Controls dnode size for new objects.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Exec

Type: object

Controls whether programs can be executed from filesystem.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Filesystem Count

Type: object

(READ-ONLY): Count of child filesystems.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Filesystem Limit

Type: object

Maximum number of child filesystems allowed.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Longname

Type: object

Controls support for long filenames.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Mounted

Type: object

(READ-ONLY): Property indicating if filesystem is mounted.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Mountpoint

Type: object

Controls mount point used for this filesystem.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Nbmand

Type: object

Controls non-blocking mandatory locking behavior.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Normalization

Type: object

Unicode normalization property for filenames.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Overlay

Type: object

Controls overlay mount behavior.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Quota

Type: object

Limits space consumed by dataset and descendants.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Recordsize

Type: object

Maximum block size for files in this filesystem.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Refquota

Type: object

Limits space consumed by dataset itself (no descendants).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Refreservation

Type: object

Minimum space reserved for volume itself.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Relatime

Type: object

Controls relative access time updates.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Setuid

Type: object

Controls setuid/setgid bit respect on executable files.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Sharenfs

Type: object

Controls NFS sharing options for the filesystem.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Sharesmb

Type: object

Controls SMB/CIFS sharing options for the filesystem.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Snapdir

Type: object

Controls snapshot directory visibility (hidden or visible).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Special Small Blocks

Type: object

Size threshold for storing blocks on special vdevs.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Utf8Only

Type: object

Controls whether only UTF-8 filenames are allowed.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Version

Type: object

(READ-ONLY): Filesystem version number.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Volmode

Type: object

Controls volume mode (default, geom, dev, none).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Vscan

Type: object

Controls virus scanning behavior.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Xattr

Type: object

Controls extended attribute behavior (on, off, sa, dir).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Zoned

Type: object

Controls whether filesystem is managed from a zone.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Available

Type: object

Amount of space available to dataset and its children.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Checksum

Type: object

Controls checksum algorithm used to verify data integrity.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Compression

Type: object

Controls compression algorithm used for this dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Compressratio

Type: object

(READ-ONLY): Property showing achieved compression ratio.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Context

Type: object

SELinux security context for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Copies

Type: object

Controls number of copies of data stored (1, 2, or 3).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Createtxg

Type: object

(READ-ONLY): Transaction group when dataset was created.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Creation

Type: object

(READ-ONLY): Timestamp when dataset was created.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Dedup

Type: object

Controls data deduplication for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Defcontext

Type: object

SELinux default security context for new files.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Encryption

Type: object

Controls encryption cipher suite for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Encryptionroot

Type: object

(READ-ONLY): Property showing encryption root dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Fscontext

Type: object

SELinux filesystem security context.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Guid

Type: object

(READ-ONLY): Globally unique identifier for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Keyformat

Type: object

Encryption key format (raw, hex, or passphrase).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Keylocation

Type: object

Location where encryption key is stored.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Keystatus

Type: object

(READ-ONLY): Encryption key status (available/unavailable).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Logbias

Type: object

Controls ZIL write behavior (latency or throughput).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Logicalreferenced

Type: object

(READ-ONLY): Logical space referenced by dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Logicalused

Type: object

(READ-ONLY): Logical space used by dataset and descendants.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Mlslabel

Type: object

Multi-level security label for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Objsetid

Type: object

(READ-ONLY): Object set identifier for the dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Origin

Type: object

(READ-ONLY): Snapshot this dataset was cloned from.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Pbkdf2Iters

Type: object

Number of PBKDF2 iterations for key derivation.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Prefetch

Type: object

Controls prefetch behavior (all, metadata, or none).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Primarycache

Type: object

Controls primary cache usage (all, metadata, or none).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Readonly

Type: object

Controls whether dataset can be modified.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Receive Resume Token

Type: object

(READ-ONLY): Token for resuming interrupted zfs receive.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Redact Snaps

Type: object

(READ-ONLY): List of redaction snapshots.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Redundant Metadata

Type: object

Controls redundant metadata storage (all or most).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Refcompressratio

Type: object

(READ-ONLY): Compression ratio for referenced data.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Referenced

Type: object

(READ-ONLY): Space referenced by this dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Reservation

Type: object

Minimum space reserved for dataset and descendants.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Rootcontext

Type: object

SELinux root directory security context.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Secondarycache

Type: object

Controls secondary cache usage (all, metadata, or none).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Snapdev

Type: object

Controls snapshot device visibility (hidden or visible).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Snapshot Count

Type: object

(READ-ONLY): Count of snapshots in this dataset.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Snapshot Limit

Type: object

Maximum number of snapshots allowed.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Snapshots Changed

Type: object

(READ-ONLY): Property indicating snapshot changes.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Sync

Type: object

Controls synchronous write behavior (standard, always, disabled).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Type


(READ-ONLY): Type of ZFS dataset (filesystem, volume, etc).

PropertyValue

Type: object
No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null
Type: null

Used

Type: object

(READ-ONLY): Space used by dataset and descendants.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Usedbychildren

Type: object

(READ-ONLY): Space used by child datasets.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Usedbydataset

Type: object

(READ-ONLY): Space used by this dataset itself.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Usedbyrefreservation

Type: object

(READ-ONLY): Space used by refreservation.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Usedbysnapshots

Type: object

(READ-ONLY): Space used by snapshots.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Written

Type: object

(READ-ONLY): Space referenced since previous snapshot.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Volblocksize

Type: object

Block size for volume (typically 8K or 16K).

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Volsize

Type: object

Logical size of the volume.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null

Volthreading

Type: object

Controls volume threading behavior.

No Additional Properties

Raw

Type: string

The raw value of the property.


The source from where this property received its value.

Type: object
Type: null

Value


The parsed raw value of the property.

Type: integer
Type: number
Type: string
Type: boolean
Type: null
Type: null

Type

Type: enum (of string)

The type of ZFS resource.

Must be one of:
  • "FILESYSTEM"
  • "VOLUME"

User Properties


Custom metadata properties with colon-separated names (max 256 chars).

Type: object

Each additional property must conform to the following schema

Type: string
Type: null

Children


The children of this zfs resource.

Type: array
No Additional Items
Each item of this array must be:
Type: object
Type: null

Default: null

Tier classification for FILESYSTEM resources. None if not requested, not applicable, or deduplication is enabled on the dataset.

TierInfo

Type: object
No Additional Properties

Tier Type

Type: enum (of string)

Storage performance tier for this share.

Must be one of:
  • "REGULAR"
  • "PERFORMANCE"

Default: null

Most recent rewrite job for this share's dataset, or null if no job history exists.

ZfsTierRewriteJobEntry

Type: object
No Additional Properties

Tier Job Id

Type: string

Rewrite job identifier in dataset_name@job_uuid format.

Must be at least 1 characters long

Dataset Name

Type: string

ZFS dataset this job is operating on.

Must be at least 1 characters long

Job Uuid

Type: string

Unique identifier for this rewrite job.

Must be at least 1 characters long

Status

Type: enum (of string)

Current lifecycle state of the job.

  • COMPLETE - All files in the dataset have been processed.
  • RUNNING - Job is actively processing files.
  • QUEUED - Job is waiting for a free execution slot (see max_concurrent_jobs).
  • CANCELLED - Job was stopped via zfs_tier_job.cancel. Not resumable.
  • STOPPED - Job was RUNNING but its process is no longer active (e.g. daemon restart). This state is computed on read and is never written to persistent storage.
  • ERROR - Job halted due to an unrecoverable error. Use zfs_tier_job.recover to retry failed files.
Must be one of:
  • "COMPLETE"
  • "RUNNING"
  • "QUEUED"
  • "CANCELLED"
  • "STOPPED"
  • "ERROR"
Type: null
Type: null


*Required roles:* ZFS_RESOURCE_WRITE