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

---

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