---
title: "Get all ZFS datasets"
method: GET
path: "/zfs/datasets"
tags: ["ZFS"]
---

# Get all ZFS datasets

`GET /zfs/datasets`

Get all ZFS datasets

## Query parameters

- `type` 'ALL' | 'SNAPSHOT' | 'FILESYSTEM' | 'VOLUME'

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseArrayGzfsDataset
  - `data` GzfsDataset[]
    - `available` integer
    - `compressratio` number
    - `createtxg` string
    - `guid` string
    - `mountpoint` string
    - `name` string
    - `pool` string
    - `properties` object
    - `referenced` integer
    - `type` 'ALL' | 'FILESYSTEM' | 'VOLUME' | 'SNAPSHOT'
    - `used` integer
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2026-08-12** `9a5026bf9057` — 1 info
  - added the non-success response with the status `400`
- **2025-09-19** `dc875965a5da` — 1 info
  - added the new optional `query` request parameter `type`
- **2025-04-15** `112f68f20e78` — 1 info
  - endpoint added
- **2025-03-11** `2b736ca1b025` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/zfs/datasets/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/438105f28a33/schema)
