Skip to content

Create a ZFS snapshot

POST
/zfs/datasets/snapshot
curl --request POST \
--url https://sylve.lan:8181/api/zfs/datasets/snapshot \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "guid": "example", "name": "example", "recursive": true }'

Create a ZFS snapshot

Create Snapshot Request

Media typeapplication/json
object
guid
required
string
name
required
string
recursive
boolean
Examplegenerated
{
"guid": "example",
"name": "example",
"recursive": true
}

Created

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

Bad Request

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

Not Found

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

Conflict

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"
}