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

# Get all ZFS Datasets with Pagination

`GET /zfs/datasets/paginated`

Get all ZFS Datasets with Pagination

## Query parameters

- `datasetType` 'ALL' | 'SNAPSHOT' | 'FILESYSTEM' | 'VOLUME', required
- `page` integer
- `size` integer
- `search` string
- `nameFilter` string
- `sort[0][field]` 'name' | 'used' | 'referenced'
- `sort[0][dir]` 'asc' | 'desc'

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalInterfacesServicesZfsPaginatedDatasetsResponse
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesZfsPaginatedDatasetsResponse
    - `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
    - `last_page` 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)
