Skip to content

dataset

Manage datasets

Create

Input parameters

ParameterTypeRequiredDetails
name
Name
String yes

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

Format

Must match this regular expression:

\A[a-zA-Z0-9][a-zA-Z0-9_\-:./]{0,254}\z

null

Validation error message: '%{value}' is not a valid dataset name

dataset
Parent dataset
Resource no

Dataset the VPS resides in

automount
Automount
Boolean no

Automatically mount newly created datasets under all its parents

Default: false

atime
Access time
Boolean no

Controls whether the access time for files is updated when they are read

Default: false

compression
Compression
Boolean no

Toggle data compression in this dataset

Default: true

recordsize
Record size
Integer no

Specifies a suggested block size for files in the file system

Default: 131072

quota
Quota
Integer no

Limits the amount of space a dataset and all its descendants can consume

Default: 0

refquota
Reference quota
Integer no

Limits the amount of space a dataset can consume

Default: 0

relatime
Relative access time
Boolean no

Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours

Default: false

sync
Sync
String no

Controls the behavior of synchronous requests

Default: standard

Validation rules
RuleDetails
Include

Allowed values:

  • standard
  • disabled

Validation error message: %{value} cannot be used

sharenfs
NFS share
String no

Controls NFS sharing

Default: ""

Output parameters

ParameterTypeDescription
id
Id
Integer
name
Name
String
parent
Parent
Resource
user
User
Resource Dataset owner
environment
Environment
Resource The environment in which the dataset is
current_history_id
Current_history_id
Integer
atime
Access time
Boolean Controls whether the access time for files is updated when they are read
compression
Compression
Boolean Toggle data compression in this dataset
recordsize
Record size
Integer Specifies a suggested block size for files in the file system
quota
Quota
Integer Limits the amount of space a dataset and all its descendants can consume
refquota
Reference quota
Integer Limits the amount of space a dataset can consume
relatime
Relative access time
Boolean Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours
sync
Sync
String Controls the behavior of synchronous requests
sharenfs
NFS share
String Controls NFS sharing
used
Used space
Integer Amount of space used by dataset
referenced
Referenced space
Integer Amount of space that is accessible to this dataset
avail
Available space
Integer Amount of space left in dataset
compressratio
Used compression ratio
Float Compression ratio for used space of this dataset
refcompressratio
Referenced compression ratio
Float Compression ratio for referenced space of this dataset
vps
VPS
Resource
export
Export
Resource Filter outages affecting a specific export
dataset_expansion
DatasetExpansion
Resource

Delete

Input parameters

No parameters.

Output parameters

No parameters.

Find_by_name

Input parameters

ParameterTypeRequiredDetails
name
Name
String no

Default: null

user
User
Resource no

Dataset owner

Output parameters

ParameterTypeDescription
id
Id
Integer
name
Name
String
parent
Parent
Resource
user
User
Resource Dataset owner
environment
Environment
Resource The environment in which the dataset is
current_history_id
Current_history_id
Integer
atime
Access time
Boolean Controls whether the access time for files is updated when they are read
compression
Compression
Boolean Toggle data compression in this dataset
recordsize
Record size
Integer Specifies a suggested block size for files in the file system
quota
Quota
Integer Limits the amount of space a dataset and all its descendants can consume
refquota
Reference quota
Integer Limits the amount of space a dataset can consume
relatime
Relative access time
Boolean Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours
sync
Sync
String Controls the behavior of synchronous requests
sharenfs
NFS share
String Controls NFS sharing
used
Used space
Integer Amount of space used by dataset
referenced
Referenced space
Integer Amount of space that is accessible to this dataset
avail
Available space
Integer Amount of space left in dataset
compressratio
Used compression ratio
Float Compression ratio for used space of this dataset
refcompressratio
Referenced compression ratio
Float Compression ratio for referenced space of this dataset
vps
VPS
Resource
export
Export
Resource Filter outages affecting a specific export
dataset_expansion
DatasetExpansion
Resource

Index

Input parameters

ParameterTypeRequiredDetails
from_id
From ID
Integer no

List objects with IDs greater or lower than this value

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).

Validation error message: must be at least 0

limit
Limit
Integer no

Number of objects to retrieve

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 1000 (inclusive).

Validation error message: must be between 0 and 1000

user
User
Resource no

Dataset owner

vps
VPS
Resource no
dataset
Subtree
Resource no

Dataset the VPS resides in

primary_pool
Primary pool
Resource no

Show only datasets on this pool

role
Role
String no

Show only datasets of certain role

Default: null

Validation rules
RuleDetails
Include

Allowed values:

  • hypervisor
  • primary
  • backup

Validation error message: %{value} cannot be used

to_depth
To depth
Integer no

Show only datasets to certain depth

Default: null

Output parameters

ParameterTypeDescription
id
Id
Integer
name
Name
String
parent
Parent
Resource
user
User
Resource Dataset owner
environment
Environment
Resource The environment in which the dataset is
current_history_id
Current_history_id
Integer
atime
Access time
Boolean Controls whether the access time for files is updated when they are read
compression
Compression
Boolean Toggle data compression in this dataset
recordsize
Record size
Integer Specifies a suggested block size for files in the file system
quota
Quota
Integer Limits the amount of space a dataset and all its descendants can consume
refquota
Reference quota
Integer Limits the amount of space a dataset can consume
relatime
Relative access time
Boolean Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours
sync
Sync
String Controls the behavior of synchronous requests
sharenfs
NFS share
String Controls NFS sharing
used
Used space
Integer Amount of space used by dataset
referenced
Referenced space
Integer Amount of space that is accessible to this dataset
avail
Available space
Integer Amount of space left in dataset
compressratio
Used compression ratio
Float Compression ratio for used space of this dataset
refcompressratio
Referenced compression ratio
Float Compression ratio for referenced space of this dataset
vps
VPS
Resource
export
Export
Resource Filter outages affecting a specific export
dataset_expansion
DatasetExpansion
Resource

Inherit

Input parameters

ParameterTypeRequiredDetails
property
Property
String yes

Name of property to inherit from parent, multiple properties may be separated by a comma

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

Output parameters

No parameters.

Migrate

Input parameters

ParameterTypeRequiredDetails
pool
Pool
Resource yes

Storage pool the VPS resides in

maintenance_window_vps
VPS maintenance window
Resource no

Migrate the dataset within the nearest maintenance window of VPS

rsync
Rsync
Boolean no

Use rsync instead of zfs send/recv

Default: false

restart_vps
Restart VPS
Boolean no

Restart VPSes where migrated exports are mounted

Default: false

finish_weekday
Finish weekday
Integer no

Prepare the migration and finish it on this day

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 6 (inclusive).

Validation error message: must be between 0 and 6

finish_minutes
Finish minutes
Integer no

Number of minutes from midnight of start_weekday after which the migration is done

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 1410 (inclusive).

Validation error message: must be between 0 and 1410

optional_maintenance_window
Optional maintenance window
Boolean no

Use maintenance window only if the dataset has any exports

Default: true

cleanup_data
Cleanup data
Boolean no

Remove dataset from the source pool

Default: true

send_mail
Send e-mails
Boolean no

Inform the dataset owner about migration progress

Default: true

reason
Reason
String no

Default: null

Output parameters

No parameters.

Show

Input parameters

No parameters.

Output parameters

ParameterTypeDescription
id
Id
Integer
name
Name
String
parent
Parent
Resource
user
User
Resource Dataset owner
environment
Environment
Resource The environment in which the dataset is
current_history_id
Current_history_id
Integer
atime
Access time
Boolean Controls whether the access time for files is updated when they are read
compression
Compression
Boolean Toggle data compression in this dataset
recordsize
Record size
Integer Specifies a suggested block size for files in the file system
quota
Quota
Integer Limits the amount of space a dataset and all its descendants can consume
refquota
Reference quota
Integer Limits the amount of space a dataset can consume
relatime
Relative access time
Boolean Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours
sync
Sync
String Controls the behavior of synchronous requests
sharenfs
NFS share
String Controls NFS sharing
used
Used space
Integer Amount of space used by dataset
referenced
Referenced space
Integer Amount of space that is accessible to this dataset
avail
Available space
Integer Amount of space left in dataset
compressratio
Used compression ratio
Float Compression ratio for used space of this dataset
refcompressratio
Referenced compression ratio
Float Compression ratio for referenced space of this dataset
vps
VPS
Resource
export
Export
Resource Filter outages affecting a specific export
dataset_expansion
DatasetExpansion
Resource

Update

Input parameters

ParameterTypeRequiredDetails
atime
Access time
Boolean no

Controls whether the access time for files is updated when they are read

Default: false

compression
Compression
Boolean no

Toggle data compression in this dataset

Default: true

recordsize
Record size
Integer no

Specifies a suggested block size for files in the file system

Default: 131072

quota
Quota
Integer no

Limits the amount of space a dataset and all its descendants can consume

Default: 0

refquota
Reference quota
Integer no

Limits the amount of space a dataset can consume

Default: 0

relatime
Relative access time
Boolean no

Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours

Default: false

sync
Sync
String no

Controls the behavior of synchronous requests

Default: standard

Validation rules
RuleDetails
Include

Allowed values:

  • standard
  • disabled

Validation error message: %{value} cannot be used

sharenfs
NFS share
String no

Controls NFS sharing

Default: ""

admin_override
Admin override
Boolean no

Make it possible to assign more resource than the user actually has

Default: null

admin_lock_type
Admin lock type
String no

How is the admin lock enforced

Default: null

Validation rules
RuleDetails
Include

Allowed values:

  • no_lock
  • absolute
  • not_less
  • not_more

Validation error message: %{value} cannot be used

Output parameters

No parameters.

Subresources