> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to manage filesystem buckets

A *filesystem bucket* adds the Object Storage interface to an existing shared filesystem. You can attach a bucket to a [shared filesystem](https://docs.nebius.com/compute/storage/types.md#shared-filesystems) to read or write data by using an S3-compatible API, or copy data from S3-compatible storage to the filesystem by using a data transfer or S3-compatible tools, such as [AWS CLI](https://docs.nebius.com/object-storage/interfaces/aws-cli.md) or [s5cmd](https://github.com/peak/s5cmd).

Files from the filesystem are immediately visible as S3 objects when a filesystem bucket is attached. Objects in the filesystem bucket are also stored in the filesystem as files.

> [!WARNING]
>
> Filesystem buckets are excluded from the [Object Storage service level policy](https://docs.nebius.com/legal/sla-levels/storage.md) and are not covered by the Object Storage SLA.

Filesystem buckets in Object Storage are [in preview](https://docs.nebius.com/overview/services.md#service-and-application-stages).

Filesystem buckets count toward your bucket quota in Object Storage. For more information, see [Quotas and limits in Object Storage](https://docs.nebius.com/object-storage/resources/quotas-limits.md).

## Prerequisites

> [tab] Web console
>
> 1. Make sure you are in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
>
>    Instead of the `editor` role, you can have the [compute.use-via-object-storage role](https://docs.nebius.com/iam/authorization/roles.md#compute), which gives access to shared filesystems through Object Storage.
>
> 2. If you don't have a shared filesystem yet, [create one](https://docs.nebius.com/compute/storage/manage.md#how-to-create-a-shared-filesystem-web-console).

> [tab] Nebius AI Cloud CLI
>
> 1. [Install and configure the Nebius AI Cloud CLI](https://docs.nebius.com/cli/quickstart.md).
>
> 2. Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
>
>    Instead of the `editor` role, you can have the [compute.use-via-object-storage role](https://docs.nebius.com/iam/authorization/roles.md#compute), which gives access to shared filesystems through Object Storage.
>
> 3. If you don't have a shared filesystem yet, [create one](https://docs.nebius.com/compute/storage/manage.md#how-to-create-a-shared-filesystem-cli).

> [tab] Go SDK
>
> 1. [Install and initialize the Nebius SDK for Go](https://docs.nebius.com/sdk/go/install-auth.md).
>
> 2. Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
>
>    Instead of the `editor` role, you can have the [compute.use-via-object-storage role](https://docs.nebius.com/iam/authorization/roles.md#compute), which gives access to shared filesystems through Object Storage.
>
> 3. If you don't have a shared filesystem yet, [create one](https://docs.nebius.com/compute/storage/manage.md#how-to-create-a-shared-filesystem-go-sdk).

> [tab] Python SDK
>
> 1. [Install and initialize the Nebius SDK for Python](https://docs.nebius.com/sdk/python/install-auth.md).
>
> 2. Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
>
>    Instead of the `editor` role, you can have the [compute.use-via-object-storage role](https://docs.nebius.com/iam/authorization/roles.md#compute), which gives access to shared filesystems through Object Storage.
>
> 3. If you don't have a shared filesystem yet, [create one](https://docs.nebius.com/compute/storage/manage.md#how-to-create-a-shared-filesystem-python-sdk).

> [tab] JavaScript SDK
>
> 1. [Install and initialize the Nebius SDK for JavaScript](https://docs.nebius.com/sdk/javascript/install-auth.md).
>
> 2. Make sure that you or the service account that you use is in a [group](https://docs.nebius.com/iam/authorization/groups/index.md) that has at least the `editor` role within your tenant or project; for example, the default `editors` group. You can check this in the [Administration → IAM](https://console.nebius.com/iam) section of the web console.
>
>    Instead of the `editor` role, you can have the [compute.use-via-object-storage role](https://docs.nebius.com/iam/authorization/roles.md#compute), which gives access to shared filesystems through Object Storage.
>
> 3. If you don't have a shared filesystem yet, [create one](https://docs.nebius.com/compute/storage/manage.md#how-to-create-a-shared-filesystem-javascript-sdk).

## How to create a filesystem bucket

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object Storage**.
> 2. Click **Create resource** → **Filesystem bucket**.
> 3. Specify the filesystem bucket parameters:
>
>    * **Filesystem**: From the list, select the shared filesystem that you want to attach the bucket to.
>    * **Bucket name**: Specify the name of the filesystem bucket. By default, the web console generates a name automatically, and you can keep it or replace it with your own name. The name must be unique across the region. For more information, see [Naming](https://docs.nebius.com/object-storage/overview.md#naming).
>    * (Optional) **Directory path**: Specify the directory inside the filesystem that should back this filesystem bucket. Only files in this directory are accessible via the S3 endpoint. If you leave the field empty or specify `/`, the filesystem bucket is attached at the filesystem root. If you specify a directory that doesn't exist yet, it will be created.
>    * (Optional) **Data plane audit logs**: Enable this option if you want to [log](https://docs.nebius.com/object-storage/logs.md) data plane operations for the filesystem bucket.
> 4. (Optional) Configure **Advanced settings**.
>
>    Files and folders in the attached filesystem will have POSIX ownership and permission attributes according to the values set in the following settings. The configured attributes do not affect how the bucket reads files and folders from the attached filesystem.
>
>    * **Write UID**: User ID assigned to files and directories. The default value is `0`.
>    * **Write GID**: Group ID assigned to files and directories. The default value is `0`.
>    * **File permissions**: Permissions assigned to files. Specify the permissions as a four-digit octal value. The default value is `0644` (`rw-r--r--`), which means that the owner can read and write the file, and the group and others can only read it.
>    * **Folder permissions**: Permissions assigned to folders. Specify the permissions as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`. On a folder, the sticky bit restricts deletion and renaming of its contents to the content owner, folder owner and `root`. The default value is `0755` (`rwxr-xr-x`), which means that the owner can read, write and access the directory, and the group and others can only read and access it.
> 5. Click **Create bucket**.
>
> The filesystem bucket becomes available immediately after creation. You can find it in one of the following ways:
>
> * Go to  **Storage** → **Shared filesystems**, open the shared filesystem and then switch to the **Attached buckets** tab.
> * Go to  **Storage** → **Object Storage** and then open the **Filesystem buckets** tab.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the filesystem you want to attach a bucket to:
>
>    ```bash theme={null}
>    nebius compute filesystem list --parent-id <project_ID>
>    ```
>
>    In the `--parent-id` parameter, specify the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-cli).
>
> 2. Create a filesystem bucket:
>
>    ```bash theme={null}
>    nebius storage bucket create \
>      --parent-id <project_ID> \
>      --name <bucket_name> \
>      --filesystem-bucket-filesystem-id <filesystem_ID> \
>      --filesystem-bucket-directory <directory_path> \
>      --filesystem-bucket-gid <GID> \
>      --filesystem-bucket-uid <UID> \
>      --filesystem-bucket-file-mode <file_mode> \
>      --filesystem-bucket-directory-mode <directory_mode> \
>      --object-audit-logging <all|mutate_only|none>
>    ```
>
>    The command contains the following parameters:
>
>    * `--parent-id`: [Project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-cli) of the project where you create the filesystem bucket.
>    * `--name`: Name of the filesystem bucket. The name must be unique across the region. For more information, see [Naming](https://docs.nebius.com/object-storage/overview.md#naming).
>    * `--filesystem-bucket-filesystem-id`: ID of the shared filesystem that you want to attach to the filesystem bucket.
>    * `--filesystem-bucket-directory` (optional): Directory inside the shared filesystem that serves as the filesystem bucket root. The path must be absolute and normalized, without `.`, `..`, or repeated `/` characters. If omitted or empty, the filesystem root (`/`) is used.
>    * `--filesystem-bucket-gid` (optional): Group ID assigned to files and directories written through S3. The default value is `0`.
>    * `--filesystem-bucket-uid` (optional): User ID assigned to files and directories written through S3. The default value is `0`.
>    * `--filesystem-bucket-file-mode` (optional): POSIX permissions assigned to files uploaded through S3. Specify the permissions as a four-digit octal value. The default value is `0644` (`rw-r--r--`), which means that the owner can read and write the file, and the group and others can only read it.
>    * `--filesystem-bucket-directory-mode` (optional): POSIX permissions assigned to directories created through S3 operations. Specify the permissions as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`. On a directory, the sticky bit restricts deletion and renaming of its contents to the content owner, directory owner and `root`. The default value is `0755` (`rwxr-xr-x`), which means that the owner can read, write and access the directory, and the group and others can only read and access it.
>    * `--object-audit-logging` (optional): Configures data plane [logging](https://docs.nebius.com/object-storage/logs.md#how-to-configure-data-plane-logs-nebius-ai-cloud-cli) for the filesystem bucket.
>
>    In both interfaces, specify permissions as four-digit octal values. The defaults are `0644` for files and `0755` for directories.
>
> 3. Verify that the filesystem bucket was created:
>
>    ```bash theme={null}
>    nebius storage bucket get-by-name \
>      --parent-id <project_ID> \
>      --name <bucket_name>
>    ```
>
> The command output includes the ID of the filesystem bucket in `metadata.id`.

> [tab] Go SDK
>
> 1. List shared filesystems in the project:
>
>    ```go theme={null}
>    filesystemService := sdk.Services().Compute().V1().
>        Filesystem()
>    filesystems, err := filesystemService.List(
>        ctx,
>        &compute.ListFilesystemsRequest{
>            ParentId: "<project_ID>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(filesystems)
>    ```
>
>    In the code, set `ParentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-go-sdk). The code prints the list.
>
> 2. Create a filesystem bucket:
>
>    ```go theme={null}
>    createService := sdk.Services().Storage().V1().Bucket()
>    createOperation, err := createService.Create(
>        ctx,
>        &storage.CreateBucketRequest{
>            Metadata: &common.ResourceMetadata{
>                ParentId: "<project_ID>",
>                Name:     "<bucket_name>",
>            },
>            Spec: &storage.BucketSpec{
>                ObjectAuditLogging: storage.
>                    BucketSpec_NONE,
>                BucketType: &storage.BucketSpec_FilesystemBucket{
>                    FilesystemBucket: &storage.
>                        BucketSpec_FilesystemBucketType{
>                        FilesystemId:  "<filesystem_ID>",
>                        Directory:     "<directory_path>",
>                        Uid:           0,
>                        Gid:           0,
>                        FileMode:      "<file_mode>",
>                        DirectoryMode: "<directory_mode>",
>                    },
>                },
>            },
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = createOperation.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    In the code, set the following parameters:
>
>    * `Metadata.ParentId`: Project ID of the project where you create the filesystem bucket.
>    * `Metadata.Name`: Filesystem bucket name. The name must be unique across the region. For more information, see [Naming](https://docs.nebius.com/object-storage/overview.md#naming).
>    * `ObjectAuditLogging`: Data plane [logging](https://docs.nebius.com/object-storage/logs.md#how-to-configure-data-plane-logs-go-sdk) mode. The example sets `BucketSpec_NONE`.
>    * `FilesystemId`: ID of the shared filesystem that you want to attach to the filesystem bucket.
>    * `Directory`: Directory inside the shared filesystem that serves as the filesystem bucket root. The path must be absolute and normalized, without `.`, `..`, or repeated `/` characters. If omitted or empty, the filesystem root (`/`) is used.
>    * `Uid`: User ID assigned to files and directories written through S3. The example sets `0`.
>    * `Gid`: Group ID assigned to files and directories written through S3. The example sets `0`.
>    * `FileMode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
>    * `DirectoryMode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.
>
> 3. Verify that the filesystem bucket was created:
>
>    ```go theme={null}
>    getService := sdk.Services().Storage().V1().Bucket()
>    filesystemBucket, err := getService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            ParentId: "<project_ID>",
>            Name:     "<bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(filesystemBucket)
>    ```
>
>    In the code, set `ParentId` to the project ID and `Name` to the filesystem bucket name. The response includes the filesystem bucket ID in `Metadata.Id`.

> [tab] Python SDK
>
> 1. List shared filesystems in the project:
>
>    ```python theme={null}
>    filesystem_service = FilesystemServiceClient(sdk)
>    filesystems = await filesystem_service.list(
>        ListFilesystemsRequest(parent_id="<project_ID>"),
>    )
>    print(filesystems)
>    ```
>
>    In the code, set `parent_id` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-python-sdk). The code prints the list.
>
> 2. Create a filesystem bucket:
>
>    ```python theme={null}
>    create_service = BucketServiceClient(sdk)
>    create_operation = await create_service.create(
>        CreateBucketRequest(
>            metadata=ResourceMetadata(
>                parent_id="<project_ID>",
>                name="<bucket_name>",
>            ),
>            spec=BucketSpec(
>                object_audit_logging=(
>                    BucketSpec.ObjectAuditLogging.
>                    NONE
>                ),
>                filesystem_bucket=BucketSpec.FilesystemBucketType(
>                    filesystem_id="<filesystem_ID>",
>                    directory="<directory_path>",
>                    uid=0,
>                    gid=0,
>                    file_mode="<file_mode>",
>                    directory_mode="<directory_mode>",
>                ),
>            ),
>        ),
>    )
>    await create_operation.wait()
>    ```
>
>    In the code, set the following parameters:
>
>    * `metadata.parent_id`: Project ID of the project where you create the filesystem bucket.
>    * `metadata.name`: Filesystem bucket name. The name must be unique across the region. For more information, see [Naming](https://docs.nebius.com/object-storage/overview.md#naming).
>    * `object_audit_logging`: Data plane [logging](https://docs.nebius.com/object-storage/logs.md#how-to-configure-data-plane-logs-python-sdk) mode. The example sets `BucketSpec.ObjectAuditLogging.NONE`.
>    * `filesystem_id`: ID of the shared filesystem that you want to attach to the filesystem bucket.
>    * `directory`: Directory inside the shared filesystem that serves as the filesystem bucket root. The path must be absolute and normalized, without `.`, `..`, or repeated `/` characters. If omitted or empty, the filesystem root (`/`) is used.
>    * `uid`: User ID assigned to files and directories written through S3. The example sets `0`.
>    * `gid`: Group ID assigned to files and directories written through S3. The example sets `0`.
>    * `file_mode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
>    * `directory_mode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.
>
> 3. Verify that the filesystem bucket was created:
>
>    ```python theme={null}
>    get_service = BucketServiceClient(sdk)
>    filesystem_bucket = await get_service.get_by_name(
>        GetBucketByNameRequest(
>            parent_id="<project_ID>",
>            name="<bucket_name>",
>        ),
>    )
>    print(filesystem_bucket)
>    ```
>
>    In the code, set `parent_id` to the project ID and `name` to the filesystem bucket name. The response includes the filesystem bucket ID in `metadata.id`.

> [tab] JavaScript SDK
>
> 1. List shared filesystems in the project:
>
>    ```ts theme={null}
>    const filesystemService = new FilesystemService(sdk);
>    const filesystems = await filesystemService.list(
>      ListFilesystemsRequest.create({
>        parentId: "<project_ID>",
>      }),
>    ).result;
>    console.log(filesystems);
>    ```
>
>    In the code, set `parentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-javascript-sdk). The code prints the list.
>
> 2. Create a filesystem bucket:
>
>    ```ts theme={null}
>    const createService = new BucketService(sdk);
>    const createOperation = await createService.create(
>      CreateBucketRequest.create({
>        metadata: ResourceMetadata.create({
>          parentId: "<project_ID>",
>          name: "<bucket_name>",
>        }),
>        spec: BucketSpec.create({
>          objectAuditLogging: BucketSpec_ObjectAuditLogging.
>            NONE,
>          bucketType: {
>            $case: "filesystemBucket",
>            filesystemBucket: BucketSpec_FilesystemBucketType.
>              create({
>                filesystemId: "<filesystem_ID>",
>                directory: "<directory_path>",
>                uid: 0,
>                gid: 0,
>                fileMode: "<file_mode>",
>                directoryMode: "<directory_mode>",
>              }),
>          },
>        }),
>      }),
>    ).result;
>    await createOperation.wait();
>    ```
>
>    In the code, set the following parameters:
>
>    * `metadata.parentId`: Project ID of the project where you create the filesystem bucket.
>    * `metadata.name`: Filesystem bucket name. The name must be unique across the region. For more information, see [Naming](https://docs.nebius.com/object-storage/overview.md#naming).
>    * `objectAuditLogging`: Data plane [logging](https://docs.nebius.com/object-storage/logs.md#how-to-configure-data-plane-logs-javascript-sdk) mode. The example sets `BucketSpec_ObjectAuditLogging.NONE`.
>    * `filesystemId`: ID of the shared filesystem that you want to attach to the filesystem bucket.
>    * `directory`: Directory inside the shared filesystem that serves as the filesystem bucket root. The path must be absolute and normalized, without `.`, `..`, or repeated `/` characters. If omitted or empty, the filesystem root (`/`) is used.
>    * `uid`: User ID assigned to files and directories written through S3. The example sets `0`.
>    * `gid`: Group ID assigned to files and directories written through S3. The example sets `0`.
>    * `fileMode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
>    * `directoryMode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.
>
> 3. Verify that the filesystem bucket was created:
>
>    ```ts theme={null}
>    const getService = new BucketService(sdk);
>    const filesystemBucket = await getService.getByName(
>      GetBucketByNameRequest.create({
>        parentId: "<project_ID>",
>        name: "<bucket_name>",
>      }),
>    ).result;
>    console.log(filesystemBucket);
>    ```
>
>    In the code, set `parentId` to the project ID and `name` to the filesystem bucket name. The response includes the filesystem bucket ID in `metadata.id`.

## How to use a filesystem bucket

After you create a filesystem bucket, you can use it to access data stored in the filesystem. The data uploaded to the filesystem bucket is also stored in the filesystem. You can [upload and download objects](https://docs.nebius.com/object-storage/objects/upload-download.md) as well as [manage objects](https://docs.nebius.com/object-storage/objects/manage.md) as you do in regular Object Storage buckets that are not attached to a filesystem.

### Data transfers

You can transfer data from S3-compatible storage to the attached filesystem in one of the following ways:

* Create a [data transfer](https://docs.nebius.com/object-storage/transfer/overview.md) from the S3-compatible storage to the filesystem bucket.
* Use an S3-compatible tool, such as [AWS CLI](https://docs.nebius.com/object-storage/interfaces/aws-cli.md), [rclone](https://rclone.org/docs/) or [s5cmd](https://github.com/peak/s5cmd), to upload objects to the filesystem bucket.

## How to update a filesystem bucket

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object Storage**.
>
> 2. Open the **Filesystem buckets** tab and select the filesystem bucket.
>
> 3. Go to the **Settings** tab.
>
> 4. Update the settings:
>
>    * **Data plane audit logs**: Enable or disable logging. If logging is enabled, select **Log all events** or **Log only changes in objects**. For details, see [Logged data plane actions](https://docs.nebius.com/object-storage/logs.md#logged-data-plane-actions).
>    * **Advanced settings**: Change the **Write UID**, **Write GID**, **File permissions** or **Folder permissions** values assigned to files that are uploaded to the filesystem bucket. For file and folder permissions, specify a four-digit octal value. To enable the sticky bit for folders, use `1` as the first digit, for example, `1777`.
>
> 5. Click **Save changes**.

> [tab] Nebius AI Cloud CLI
>
> To update data plane audit logging, POSIX ownership, or permissions, run:
>
> ```bash theme={null}
> nebius storage bucket update \
>   --id <filesystem_bucket_ID> \
>   --filesystem-bucket-gid <GID> \
>   --filesystem-bucket-uid <UID> \
>   --filesystem-bucket-file-mode <file_mode> \
>   --filesystem-bucket-directory-mode <directory_mode> \
>   --object-audit-logging <all|mutate_only|none>
> ```
>
> In the command, specify the parameters that you want to update:
>
> * `--filesystem-bucket-gid`: Group ID assigned to files and directories written through S3.
> * `--filesystem-bucket-uid`: User ID assigned to files and directories written through S3.
> * `--filesystem-bucket-file-mode`: POSIX permissions assigned to files uploaded through S3. Specify the permissions as a four-digit octal value.
> * `--filesystem-bucket-directory-mode`: POSIX permissions assigned to directories created through S3 operations. Specify the permissions as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.
> * `--object-audit-logging`: Data plane logging mode. Specify `all` to log all data plane events, `mutate_only` to log only events that change objects or `none` to disable logging.

> [tab] Go SDK
>
> Update data plane audit logging, POSIX ownership, or permissions:
>
> ```go theme={null}
> updateService := sdk.Services().Storage().V1().Bucket()
> updateBucket, err := updateService.GetByName(
>     ctx,
>     &storage.GetBucketByNameRequest{
>         ParentId: "<project_ID>",
>         Name:     "<bucket_name>",
>     },
> )
> if err != nil {
>     return err
> }
> updateBucket.Spec.ObjectAuditLogging = storage.
>     BucketSpec_MUTATE_ONLY
> updateBucket.Spec.GetFilesystemBucket().Uid = 1000
> updateBucket.Spec.GetFilesystemBucket().Gid = 1000
> updateBucket.Spec.GetFilesystemBucket().FileMode =
>     "<file_mode>"
> updateBucket.Spec.GetFilesystemBucket().DirectoryMode =
>     "<directory_mode>"
> updateOperation, err := updateService.Update(
>     ctx,
>     &storage.UpdateBucketRequest{
>         Metadata: updateBucket.Metadata,
>         Spec:     updateBucket.Spec,
>     },
> )
> if err != nil {
>     return err
> }
> if _, err = updateOperation.Wait(ctx); err != nil {
>     return err
> }
> ```
>
> The sample gets the filesystem bucket by `ParentId` and `Name`, then sets the following parameters:
>
> * `ObjectAuditLogging`: Data plane logging mode. The example sets `BucketSpec_MUTATE_ONLY`.
> * `Uid`: User ID assigned to files and directories written through S3. The example sets `1000`.
> * `Gid`: Group ID assigned to files and directories written through S3. The example sets `1000`.
> * `FileMode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
> * `DirectoryMode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.

> [tab] Python SDK
>
> Update data plane audit logging, POSIX ownership, or permissions:
>
> ```python theme={null}
> update_service = BucketServiceClient(sdk)
> update_bucket = await update_service.get_by_name(
>     GetBucketByNameRequest(
>         parent_id="<project_ID>",
>         name="<bucket_name>",
>     ),
> )
> update_bucket.spec.object_audit_logging = (
>     BucketSpec.ObjectAuditLogging.MUTATE_ONLY
> )
> update_bucket.spec.filesystem_bucket.uid = 1000
> update_bucket.spec.filesystem_bucket.gid = 1000
> update_bucket.spec.filesystem_bucket.file_mode = (
>     "<file_mode>"
> )
> update_bucket.spec.filesystem_bucket.directory_mode = (
>     "<directory_mode>"
> )
> update_operation = await update_service.update(
>     UpdateBucketRequest(
>         metadata=update_bucket.metadata,
>         spec=update_bucket.spec,
>     ),
> )
> await update_operation.wait()
> ```
>
> The sample gets the filesystem bucket by `parent_id` and `name`, then sets the following parameters:
>
> * `object_audit_logging`: Data plane logging mode. The example sets `BucketSpec.ObjectAuditLogging.MUTATE_ONLY`.
> * `uid`: User ID assigned to files and directories written through S3. The example sets `1000`.
> * `gid`: Group ID assigned to files and directories written through S3. The example sets `1000`.
> * `file_mode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
> * `directory_mode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.

> [tab] JavaScript SDK
>
> Update data plane audit logging, POSIX ownership, or permissions:
>
> ```ts theme={null}
> const updateService = new BucketService(sdk);
> const updateBucket = await updateService.getByName(
>   GetBucketByNameRequest.create({
>     parentId: "<project_ID>",
>     name: "<bucket_name>",
>   }),
> ).result;
> updateBucket.spec.objectAuditLogging =
>   BucketSpec_ObjectAuditLogging.MUTATE_ONLY;
> const filesystemType = updateBucket.spec.bucketType.
>   filesystemBucket;
> filesystemType.uid = 1000;
> filesystemType.gid = 1000;
> filesystemType.fileMode = "<file_mode>";
> filesystemType.directoryMode = "<directory_mode>";
> const updateOperation = await updateService.update(
>   UpdateBucketRequest.create({
>     metadata: updateBucket.metadata,
>     spec: updateBucket.spec,
>   }),
> ).result;
> await updateOperation.wait();
> ```
>
> The sample gets the filesystem bucket by `parentId` and `name`, then sets the following parameters:
>
> * `objectAuditLogging`: Data plane logging mode. The example sets `BucketSpec_ObjectAuditLogging.MUTATE_ONLY`.
> * `uid`: User ID assigned to files and directories written through S3. The example sets `1000`.
> * `gid`: Group ID assigned to files and directories written through S3. The example sets `1000`.
> * `fileMode`: POSIX permissions assigned to files uploaded through S3, as a four-digit octal value.
> * `directoryMode`: POSIX permissions assigned to directories created through S3 operations, as a four-digit octal value. To enable the sticky bit, use `1` as the first digit, for example, `1777`.

## How to delete a filesystem bucket

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object Storage**.
> 2. Open the **Filesystem buckets** tab.
> 3. Find the filesystem bucket and then click  → **Delete**.
> 4. Confirm the deletion.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the filesystem bucket:
>
>    ```bash theme={null}
>    nebius storage bucket list --parent-id <project_ID>
>    ```
>
>    In the `--parent-id` parameter, specify the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-cli).
>
>    In the output, filesystem buckets include the `spec.filesystem_bucket` field. Find the filesystem bucket by its name. The filesystem bucket ID is shown in `metadata.id`.
>
> 2. Delete the filesystem bucket:
>
>    ```bash theme={null}
>    nebius storage bucket delete --id <filesystem_bucket_ID>
>    ```
>
> 3. Wait until the delete operation is complete.

> [tab] Go SDK
>
> 1. List filesystem buckets in the project:
>
>    ```go theme={null}
>    listService := sdk.Services().Storage().V1().Bucket()
>    buckets, err := listService.List(
>        ctx,
>        &storage.ListBucketsRequest{
>            ParentId: "<project_ID>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(buckets)
>    ```
>
>    In the code, set `ParentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-go-sdk). The code prints the list. Filesystem buckets include `Spec.FilesystemBucket`.
>
> 2. Delete the filesystem bucket:
>
>    ```go theme={null}
>    deleteService := sdk.Services().Storage().V1().Bucket()
>    deleteBucket, err := deleteService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            ParentId: "<project_ID>",
>            Name:     "<bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    deleteOperation, err := deleteService.Delete(
>        ctx,
>        &storage.DeleteBucketRequest{
>            Id: deleteBucket.GetMetadata().GetId(),
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = deleteOperation.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    The sample gets the filesystem bucket by `ParentId` and `Name`, then deletes it by the ID from that response.

> [tab] Python SDK
>
> 1. List filesystem buckets in the project:
>
>    ```python theme={null}
>    list_service = BucketServiceClient(sdk)
>    buckets = await list_service.list(
>        ListBucketsRequest(parent_id="<project_ID>"),
>    )
>    print(buckets)
>    ```
>
>    In the code, set `parent_id` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-python-sdk). The code prints the list. Filesystem buckets include `spec.filesystem_bucket`.
>
> 2. Delete the filesystem bucket:
>
>    ```python theme={null}
>    delete_service = BucketServiceClient(sdk)
>    delete_bucket = await delete_service.get_by_name(
>        GetBucketByNameRequest(
>            parent_id="<project_ID>",
>            name="<bucket_name>",
>        ),
>    )
>    delete_operation = await delete_service.delete(
>        DeleteBucketRequest(id=delete_bucket.metadata.id),
>    )
>    await delete_operation.wait()
>    ```
>
>    The sample gets the filesystem bucket by `parent_id` and `name`, then deletes it by the ID from that response.

> [tab] JavaScript SDK
>
> 1. List filesystem buckets in the project:
>
>    ```ts theme={null}
>    const listService = new BucketService(sdk);
>    const buckets = await listService.list(
>      ListBucketsRequest.create({
>        parentId: "<project_ID>",
>      }),
>    ).result;
>    console.log(buckets);
>    ```
>
>    In the code, set `parentId` to the [project ID](https://docs.nebius.com/iam/manage-projects.md#how-to-get-a-project-id-javascript-sdk). The code prints the list. Filesystem buckets include `spec.filesystemBucket`.
>
> 2. Delete the filesystem bucket:
>
>    ```ts theme={null}
>    const deleteService = new BucketService(sdk);
>    const deleteBucket = await deleteService.getByName(
>      GetBucketByNameRequest.create({
>        parentId: "<project_ID>",
>        name: "<bucket_name>",
>      }),
>    ).result;
>    const deleteOperation = await deleteService.delete(
>      DeleteBucketRequest.create({
>        id: deleteBucket.metadata.id,
>      }),
>    ).result;
>    await deleteOperation.wait();
>    ```
>
>    The sample gets the filesystem bucket by `parentId` and `name`, then deletes it by the ID from that response.

Deleting a filesystem bucket removes only the Object Storage bucket interface. It does not delete the data stored on the attached filesystem.

## Limitations

Filesystem buckets have the following limitations:

* Temporary files with the `.tmp` suffix can be visible in `ListObjectsV2` results. Filesystem buckets use these files for atomic writes and clean them up on a best-effort basis.

* Bucket management has the following limitations:

  * After you create a bucket, you cannot change its type from regular to filesystem or from filesystem to regular.
  * [Bucket policies](https://docs.nebius.com/object-storage/buckets/bucket-policy.md) cannot be used to grant [anonymous access](https://docs.nebius.com/object-storage/buckets/bucket-policy.md#anonymous-access) to a filesystem bucket.
  * Delayed deletion and [bucket restoration](https://docs.nebius.com/object-storage/buckets/manage.md#how-to-restore-buckets) are not supported.

* Object integrity checksums are not supported. For integrity checks in regular buckets, see [How to verify object integrity](https://docs.nebius.com/object-storage/objects/manage.md#how-to-verify-object-integrity).

* Object keys such as `a/b` and `a/b/c` cannot both exist as files, because `b` must be either a file or a directory on a filesystem. This can cause conflicts when migrating data from S3-compatible storage to a filesystem bucket.

* Some [S3 API methods and parameters](https://docs.nebius.com/object-storage/interfaces/s3-api-compatibility.md#supported-s3-api-methods) and [S3-compatible headers](https://docs.nebius.com/object-storage/interfaces/s3-api-compatibility.md#supported-s3-headers) have limited support or are not supported.
