zfs.resource.create¶
Create a ZFS resource (filesystem or volume) and mount it.
Properties are given by native ZFS property name - exactly the names zfs.resource.query returns - and are handed to ZFS as-is. The created resource is re-queried after creation and returned, so the entry reflects the values as canonicalized by ZFS, not the input.
To create snapshots, use zfs.resource.snapshot.create instead.
Invalid input is returned to the client as a JSON-RPC error response (code -32602, Invalid params); each failing condition appears in the error’s data.extra array with its own errno. A validation error is raised when:
a snapshot path (containing
@) is supplied (use zfs.resource.snapshot.create)the resource already exists (
EEXIST)the pool, or the parent dataset when
create_ancestorsisfalse, does not exist (ENOENT)the target is a pool root filesystem, the path is absolute, ends with
/, or is not a valid ZFS name (EINVAL)the path references a protected internal resource (
EACCES)a property outside the allowed creation set is supplied, or an allowed property is invalid for the resource type or has an invalid value (
EINVAL)an encryption or ZFS native sharing property is supplied through
properties,volsizeis missing for a VOLUME, or a user property name lacks a colon (EINVAL)encryptionprovides a hex key beneath a passphrase-encrypted parent, or would create an encryption root beneath an unencrypted dataset that itself sits inside an encrypted one (EINVAL)a thick volume’s reservation would consume more than 80% of the available space - create a sparse volume (
refreservationofnone) to deliberately oversubscribe (EINVAL)the effective
acltypeandaclmodecombination is unusable - a posix or off acltype requires a discard aclmode and a discard aclmode may not be combined with the nfsv4 acltype (EINVAL)the nearest existing ancestor is readonly - the new filesystem could not be mounted beneath it (
EINVAL)special_small_blocksis supplied while ZFS tiering is enabled - placement is managed with zfs.tier.dataset_set_tier (EINVAL)deduplication is requested for a filesystem whose data would be placed on the SPECIAL vdev (the PERFORMANCE tier) while ZFS tiering is enabled (
EINVAL)
Examples:
Create a filesystem:
{"path": "tank/documents"}
Create a filesystem with properties, creating missing ancestors:
{
"path": "tank/a/b/documents",
"properties": {"compression": "lz4", "atime": "off"},
"create_ancestors": true
}
Create a sparse 10GiB volume:
{
"path": "tank/vol1",
"type": "VOLUME",
"properties": {"volsize": 10737418240, "refreservation": "none"}
}
Create an encryption root with a generated key:
{"path": "tank/secure", "encryption": {"generate_key": true}}
Create an encryption root protected by a passphrase:
{"path": "tank/private", "encryption": {"passphrase": "correct horse battery staple"}}
Note
Volumes are thick-provisioned by default (refreservation defaults to
the volsize, like zfs create -V); set refreservation to none
for a sparse volume. Filesystems default xattr to sa.
Note
A resource created under an encrypted parent inherits that encryption
unless encryption makes it its own encryption root - an unencrypted
child cannot be created beneath an encrypted parent. The parent’s
encryption key must be loaded (unlocked) or the creation fails with a
JSON-RPC error response (code -32001, Method call error, errno
EACCES).
Note
Hex keys (provided or generated) are stored by the system and may be retrieved with pool.dataset.export_key; passphrases are never stored.
No Additional Items
Tuple Validation
Parameter 1: data
data
Type: objectCreate parameters for creating a ZFS resource.
No Additional PropertiesPath
Type: stringPath of the zfs resource (dataset or volume) to be created. Must be of the form 'pool/name'. It cannot be an absolute path or end with '/'. Snapshot paths (containing '@') are not accepted one must use zfs.resource.snapshot.create instead.
Must be at least 1 characters long
Type
Type: enum (of string) Default: "FILESYSTEM"The type of ZFS resource to create. A FILESYSTEM is a mountable dataset; a VOLUME (zvol) is a virtual block device.
Must be one of:
- "FILESYSTEM"
- "VOLUME"
ZFSResourceCreateProperties
Type: objectZFS properties to set at creation time. 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 simply not sent to ZFS and inherits from the parent as usual. Any property not in this model may not be set at creation time.
Creating a VOLUME requires 'volsize'. Volumes are thick-provisioned by default ('refreservation' defaults to the volsize, like zfs create -V). Set 'refreservation' to 'none' to create a sparse (thin) volume.
A FILESYSTEM defaults 'xattr' to 'sa' (a TrueNAS performance default) unless explicitly specified. An explicit 'acltype' also defaults the coupled acl properties. An nfsv4 acltype defaults 'aclinherit' to 'passthrough' while a posix or off acltype defaults both 'aclmode' and 'aclinherit' to 'discard'.
Encryption is configured through the encryption argument and shares are managed with the sharing.nfs and sharing.smb APIs. Neither may be configured through these properties.
Aclinherit
Default: nullACL inheritance behavior for new files and directories.
Aclmode
Default: nullHow ACLs are modified during chmod operations.
Acltype
Default: nullThe type of ACL to use (off, posix, or nfsv4).
Atime
Default: nullWhether file access times are updated on read.
Casesensitivity
Default: nullFilename matching sensitivity. Settable at creation time only.
Checksum
Default: nullChecksum algorithm used to verify data integrity.
Compression
Default: nullCompression algorithm for the resource.
Copies
Default: nullNumber of copies of data blocks to store.
Dedup
Default: nullDeduplication setting for the resource.
Exec
Default: nullWhether programs can be executed from the filesystem.
Quota
Default: nullMaximum space the dataset and its descendants may consume.
Readonly
Default: nullWhether the resource can be modified.
Recordsize
Default: nullSuggested block size for files in the filesystem.
Refquota
Default: nullMaximum space the dataset itself may consume.
Refreservation
Default: nullMinimum space reserved for the resource itself. Set to 'none' to create a sparse volume.
Reservation
Default: nullMinimum space reserved for the dataset and its descendants.
Snapdev
Default: nullSnapshot device visibility under /dev/zvol.
Snapdir
Default: nullVisibility of the .zfs/snapshot directory.
Special Small Blocks
Default: nullSize threshold below which blocks are stored on the SPECIAL vdev.
Sync
Default: nullSynchronous write behavior.
Volblocksize
Default: nullBlock size of the volume. Settable at creation time only.
Volsize
Default: nullLogical size of the volume in bytes. Required when creating a VOLUME.
Xattr
Default: nullExtended attribute storage mode. Defaults to 'sa' for performance.
User Properties
Type: object Default: {}User properties to set at creation time. Property names must contain a colon (e.g. 'org.truenas:custom').
Each additional property must conform to the following schema
Type: stringCreate Ancestors
Type: boolean Default: falseCreate any missing ancestor filesystems.
Make the new resource its own ZFS encryption root, encrypted (aes-256-gcm) with the given key or passphrase. When omitted (the default), the resource simply inherits its parent's encryption state. A child of an encrypted parent is encrypted as part of the parent's encryption root, a child of an unencrypted parent is unencrypted.
A key-encrypted root may NOT be created beneath a passphrase-encrypted parent. Such a child could not be unlocked while its parent is locked.
ZFSResourceCreateEncryption
Type: objectExactly one of key, passphrase, or generate_key must be provided.
Generate Key
Type: boolean Default: falseAutomatically generate a 64-character hex key for the new encryption root.
Key
Default: ""A 64-character hex-encoded key for the new encryption root.
Must match regular expression:
^[0-9a-fA-F]+$
Must be at least 64 characters long
Must be at most 64 characters long
Passphrase
Default: ""A passphrase (at least 8 characters) for the new encryption root. Passphrases are never stored by the system. The resource can only be unlocked by someone who knows it.
Must be at least 8 characters long
Pbkdf2Iters
Type: integer Default: 1300000Number of PBKDF2 iterations for key derivation from the passphrase. Only meaningful together with passphrase. Higher values improve resistance to brute force attacks but increase unlock time.
Value must be greater or equal to 1300000 and lesser or equal to 10000000
ZFSResourceEntry
Type: objectNo Additional Properties
Createtxg
Type: integerTransaction group when resource was created.
Guid
Type: integerGlobally unique identifier for the resource.
Name
Type: stringThe name of the zfs resource.
Pool
Type: stringThe name of the zpool that the zfs resouce is associated to.
The zfs properties for the resource.
ZFSPropertiesEntry
Type: objectNo Additional Properties
Aclinherit
Type: objectControls how ACEs are inherited for new files/directories.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
SourceValue
Type: objectNo Additional Properties
Type
Type: enum (of string)The source type.
Must be one of:
- "NONE"
- "DEFAULT"
- "TEMPORARY"
- "LOCAL"
- "INHERITED"
- "RECEIVED"
Value
The source value.
Value
The parsed raw value of the property.
Aclmode
Type: objectDetermines how ACLs are modified during chmod operations.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Acltype
Type: objectSpecifies type of ACL to use (off, nfsv4, posix).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Atime
Type: objectControls whether access time is updated on file reads.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Canmount
Type: objectControls whether filesystem can be mounted.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Casesensitivity
Type: objectDetermines filename matching algorithm sensitivity.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultgroupobjquota
Type: objectDefault object quota for new groups.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultgroupquota
Type: objectDefault space quota for new groups.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultprojectobjquota
Type: objectDefault object quota for new projects.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultprojectquota
Type: objectDefault space quota for new projects.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultuserobjquota
Type: objectDefault object quota for new users.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defaultuserquota
Type: objectDefault space quota for new users.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Devices
Type: objectControls whether device files can be opened.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Direct
Type: objectControls direct I/O behavior (standard or always).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Dnodesize
Type: objectControls dnode size for new objects.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Exec
Type: objectControls whether programs can be executed from filesystem.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Filesystem Count
Type: object(READ-ONLY): Count of child filesystems.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Filesystem Limit
Type: objectMaximum number of child filesystems allowed.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Longname
Type: objectControls support for long filenames.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Mounted
Type: object(READ-ONLY): Property indicating if filesystem is mounted.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Mountpoint
Type: objectControls mount point used for this filesystem.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Nbmand
Type: objectControls non-blocking mandatory locking behavior.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Normalization
Type: objectUnicode normalization property for filenames.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Overlay
Type: objectControls overlay mount behavior.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Quota
Type: objectLimits space consumed by dataset and descendants.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Recordsize
Type: objectMaximum block size for files in this filesystem.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Refquota
Type: objectLimits space consumed by dataset itself (no descendants).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Refreservation
Type: objectMinimum space reserved for volume itself.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Relatime
Type: objectControls relative access time updates.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Setuid
Type: objectControls setuid/setgid bit respect on executable files.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Snapdir
Type: objectControls snapshot directory visibility (hidden or visible).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Special Small Blocks
Type: objectSize threshold for storing blocks on special vdevs.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Utf8Only
Type: objectControls whether only UTF-8 filenames are allowed.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Version
Type: object(READ-ONLY): Filesystem version number.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Volmode
Type: objectControls volume mode (default, geom, dev, none).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Vscan
Type: objectControls virus scanning behavior.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Xattr
Type: objectControls extended attribute behavior (on, off, sa, dir).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Zoned
Type: objectControls whether filesystem is managed from a zone.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Available
Type: objectAmount of space available to dataset and its children.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Checksum
Type: objectControls checksum algorithm used to verify data integrity.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Compression
Type: objectControls compression algorithm used for this dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Compressratio
Type: object(READ-ONLY): Property showing achieved compression ratio.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Context
Type: objectSELinux security context for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Copies
Type: objectControls number of copies of data stored (1, 2, or 3).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Createtxg
Type: object(READ-ONLY): Transaction group when dataset was created.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Creation
Type: object(READ-ONLY): Timestamp when dataset was created.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Dedup
Type: objectControls data deduplication for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Defcontext
Type: objectSELinux default security context for new files.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Encryption
Type: objectControls encryption cipher suite for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Encryptionroot
Type: object(READ-ONLY): Property showing encryption root dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Fscontext
Type: objectSELinux filesystem security context.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Guid
Type: object(READ-ONLY): Globally unique identifier for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Keyformat
Type: objectEncryption key format (raw, hex, or passphrase).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Keylocation
Type: objectLocation where encryption key is stored.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Keystatus
Type: object(READ-ONLY): Encryption key status (available/unavailable).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Logbias
Type: objectControls ZIL write behavior (latency or throughput).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Logicalreferenced
Type: object(READ-ONLY): Logical space referenced by dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Logicalused
Type: object(READ-ONLY): Logical space used by dataset and descendants.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Mlslabel
Type: objectMulti-level security label for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Objsetid
Type: object(READ-ONLY): Object set identifier for the dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Origin
Type: object(READ-ONLY): Snapshot this dataset was cloned from.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Pbkdf2Iters
Type: objectNumber of PBKDF2 iterations for key derivation.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Prefetch
Type: objectControls prefetch behavior (all, metadata, or none).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Primarycache
Type: objectControls primary cache usage (all, metadata, or none).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Readonly
Type: objectControls whether dataset can be modified.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Receive Resume Token
Type: object(READ-ONLY): Token for resuming interrupted zfs receive.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Redact Snaps
Type: object(READ-ONLY): List of redaction snapshots.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Redundant Metadata
Type: objectControls redundant metadata storage (all or most).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Refcompressratio
Type: object(READ-ONLY): Compression ratio for referenced data.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Referenced
Type: object(READ-ONLY): Space referenced by this dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Reservation
Type: objectMinimum space reserved for dataset and descendants.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Rootcontext
Type: objectSELinux root directory security context.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Secondarycache
Type: objectControls secondary cache usage (all, metadata, or none).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Snapdev
Type: objectControls snapshot device visibility (hidden or visible).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Snapshot Count
Type: object(READ-ONLY): Count of snapshots in this dataset.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Snapshot Limit
Type: objectMaximum number of snapshots allowed.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Snapshots Changed
Type: object(READ-ONLY): Property indicating snapshot changes.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Sync
Type: objectControls synchronous write behavior (standard, always, disabled).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Type
(READ-ONLY): Type of ZFS dataset (filesystem, volume, etc).
PropertyValue
Type: objectNo Additional Properties
Raw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Used
Type: object(READ-ONLY): Space used by dataset and descendants.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Usedbychildren
Type: object(READ-ONLY): Space used by child datasets.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Usedbydataset
Type: object(READ-ONLY): Space used by this dataset itself.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Usedbyrefreservation
Type: object(READ-ONLY): Space used by refreservation.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Usedbysnapshots
Type: object(READ-ONLY): Space used by snapshots.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Written
Type: object(READ-ONLY): Space referenced since previous snapshot.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Volblocksize
Type: objectBlock size for volume (typically 8K or 16K).
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Volsize
Type: objectLogical size of the volume.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
Volthreading
Type: objectControls volume threading behavior.
No Additional PropertiesRaw
Type: stringThe raw value of the property.
The source from where this property received its value.
Value
The parsed raw value of the property.
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).
Each additional property must conform to the following schema
Type: stringChildren
The children of this zfs resource.
No Additional Items
Each item of this array must be:
Tier classification for FILESYSTEM resources. None if not requested, not applicable, or deduplication is enabled on the dataset.
TierInfo
Type: objectNo Additional Properties
Tier Type
Type: enum (of string)Storage performance tier for this share.
Must be one of:
- "REGULAR"
- "PERFORMANCE"
Most recent rewrite job for this share's dataset, or null if no job history exists.
ZfsTierRewriteJobEntry
Type: objectNo Additional Properties
Tier Job Id
Type: stringRewrite job identifier in dataset_name@job_uuid format.
Must be at least 1 characters long
Dataset Name
Type: stringZFS dataset this job is operating on.
Must be at least 1 characters long
Job Uuid
Type: stringUnique 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 (seemax_concurrent_jobs).CANCELLED- Job was stopped viazfs_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. Usezfs_tier_job.recoverto retry failed files.
Must be one of:
- "COMPLETE"
- "RUNNING"
- "QUEUED"
- "CANCELLED"
- "STOPPED"
- "ERROR"
Required roles: ZFS_RESOURCE_WRITE