---
title: "Creates a new NFS-Ganesha export"
method: POST
path: "/api/nfs-ganesha/export"
tags: ["NFS-Ganesha"]
---

# Creates a new NFS-Ganesha export

`POST /api/nfs-ganesha/export`

## Request body

- object
  - `access_type` string, required — Export access type
  - `clients` object[], required — List of client configurations
    - `access_type` string, required — Client access type
    - `addresses` string[], required — list of IP addresses
    - `squash` string, required — Client squash policy
  - `cluster_id` string, required — Cluster identifier
  - `fsal` object, required — FSAL configuration
    - `fs_name` string — CephFS filesystem name
    - `name` string, required — name of FSAL
    - `sec_label_xattr` string — Name of xattr for security label
  - `path` string, required — Export path
  - `protocols` integer[], required — List of protocol types
  - `pseudo` string, required — Pseudo FS path
  - `security_label` string, required — Security label
  - `squash` string, required — Export squash policy
  - `transports` string[], required — List of transport types

## Response `201`

Resource created.

- object
  - `access_type` string, required — Export access type
  - `clients` object[], required — List of client configurations
    - `access_type` string, required — Client access type
    - `addresses` string[], required — list of IP addresses
    - `squash` string, required — Client squash policy
  - `cluster_id` string, required — Cluster identifier
  - `export_id` integer, required — Export ID
  - `fsal` object, required — FSAL configuration
    - `fs_name` string — CephFS filesystem name
    - `name` string, required — name of FSAL
    - `sec_label_xattr` string — Name of xattr for security label
    - `user_id` string — User id
  - `path` string, required — Export path
  - `protocols` integer[], required — List of protocol types
  - `pseudo` string, required — Pseudo FS path
  - `security_label` string, required — Security label
  - `squash` string, required — Export squash policy
  - `transports` string[], required — List of transport types

## Other responses

- `202` — Operation is still executing. Please check the task queue.
- `400` — Operation exception. Please check the response body for details.
- `401` — Unauthenticated access. Please login first.
- `403` — Unauthorized access. Please check your permissions.
- `500` — Unexpected error. Please check the response body for the stack trace.

---

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