Skip to content

Rollback to a ZFS snapshot

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

Rollback to a ZFS snapshot

guid
required
string

Snapshot GUID

Rollback Snapshot Request

Media typeapplication/json
object
destroyMoreRecent
boolean
Examplegenerated
{
"destroyMoreRecent": true
}

Success

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