Skip to content

Get all ZFS datasets

GET
/zfs/datasets
curl --request GET \
--url 'https://sylve.lan:8181/api/zfs/datasets?type=ALL' \
--header 'Authorization: <Authorization>'

Get all ZFS datasets

type
string
default: ALL
Allowed values: ALL SNAPSHOT FILESYSTEM VOLUME

Dataset type

Success

Media typeapplication/json
object
data
Array<object>
object
available
integer
compressratio
number
createtxg
string
guid
string
mountpoint
string
name
string
pool
string
properties
object
key
additional properties
object
source
object
data
string
type
string
value
string
referenced
integer
type
string
Allowed values: ALL FILESYSTEM VOLUME SNAPSHOT
used
integer
error
string
message
string
status
string
Example
{
"data": [
{
"type": "ALL"
}
]
}

Bad Request

Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{
"data": "example",
"error": "example",
"message": "example",
"status": "example"
}

Internal Server Error

Media typeapplication/json
object
data
error
string
message
string
status
string
Examplegenerated
{
"data": "example",
"error": "example",
"message": "example",
"status": "example"
}