---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/volumePools/{volumePoolsId}/volumes"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/volumePools/{volumePoolsId}/volumes"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/volumePools/{volumePoolsId}/volumes

`POST /v1/projects/{projectsId}/locations/{locationsId}/volumePools/{volumePoolsId}/volumes`

## Request

- Base URL: `https://file.googleapis.com`
- URL: `https://file.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/volumePools/{volumePoolsId}/volumes`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Creates a volume.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `volumePoolsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `volumeId` string

## Request body

- Volume: Volume representation of a Cloud Filestore volume.
  - `createTime` string, google-datetime: Output only. The time when the volume was created.
  - `description` string: Optional. A description of the volume with 2048 characters or less. Requests with longer descriptions will be rejected.
  - `ipAcls` NfsExportOptions[]: Optional. User-defined permissions protecting mount points.
    - `accessMode` 'ACCESS_MODE_UNSPECIFIED' | 'READ_ONLY' | 'READ_WRITE': Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
    - `anonGid` string, int64: An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
    - `anonUid` string, int64: An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
    - `ipRanges` string[]: List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
    - `network` string: Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
    - `squashMode` 'SQUASH_MODE_UNSPECIFIED' | 'NO_ROOT_SQUASH' | 'ROOT_SQUASH': Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
  - `labels` object: Optional. Resource labels to represent user provided metadata.
  - `mountPoint` MountPoint: Mount details for a volume.
    - `ipAddress` string: Output only. The IP address of the physical Filestore instance hosting the volume.
    - `mountName` string: Output only. The mount name of the volume. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
  - `name` string: Identifier. The resource name of the volume, in the format `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
  - `quotaMib` string, int64: Optional. The maximum size of the volume in mebibytes (MiB).
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'HOT' | 'WARM' | 'COLD': Optional. The state of the volume. This field is caller-settable via `UpdateVolume` to transition a volume from `HOT` to `COLD` (freezing the volume). In `CreateVolume`, this field is output-only: the volume is created as `HOT` when `ip_acls` is non-empty. When `ip_acls` is empty, the volume may be created `WARM` with no `mount_point` until `ip_acls` are set with `UpdateVolume`.

## Response `200`

Successful response

- Volume: Volume representation of a Cloud Filestore volume.
  - `createTime` string, google-datetime: Output only. The time when the volume was created.
  - `description` string: Optional. A description of the volume with 2048 characters or less. Requests with longer descriptions will be rejected.
  - `ipAcls` NfsExportOptions[]: Optional. User-defined permissions protecting mount points.
    - `accessMode` 'ACCESS_MODE_UNSPECIFIED' | 'READ_ONLY' | 'READ_WRITE': Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE.
    - `anonGid` string, int64: An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
    - `anonUid` string, int64: An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be returned if this field is specified for other squash_mode settings.
    - `ipRanges` string[]: List of either an IPv4 addresses in the format `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions.
    - `network` string: Optional. The source VPC network for ip_ranges. Required for instances using Private Service Connect, optional otherwise. If provided, must be the same network specified in the `NetworkConfig.network` field.
    - `squashMode` 'SQUASH_MODE_UNSPECIFIED' | 'NO_ROOT_SQUASH' | 'ROOT_SQUASH': Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH.
  - `labels` object: Optional. Resource labels to represent user provided metadata.
  - `mountPoint` MountPoint: Mount details for a volume.
    - `ipAddress` string: Output only. The IP address of the physical Filestore instance hosting the volume.
    - `mountName` string: Output only. The mount name of the volume. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
  - `name` string: Identifier. The resource name of the volume, in the format `projects/{project}/locations/{location}/volumePools/{volume_pool}/volumes/{volume}`.
  - `quotaMib` string, int64: Optional. The maximum size of the volume in mebibytes (MiB).
  - `state` 'STATE_UNSPECIFIED' | 'CREATING' | 'HOT' | 'WARM' | 'COLD': Optional. The state of the volume. This field is caller-settable via `UpdateVolume` to transition a volume from `HOT` to `COLD` (freezing the volume). In `CreateVolume`, this field is output-only: the volume is created as `HOT` when `ip_acls` is non-empty. When `ip_acls` is empty, the volume may be created `WARM` with no `mount_point` until `ip_acls` are set with `UpdateVolume`.

## Changes

- **2026-11-16** `fbccb5a717d2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/google/apis/file/changes/v1/projects/:projectsId/locations/:locationsId/volumePools/:volumePoolsId/volumes/post.md)

---

[API](https://skmtc.dev/google/apis/file.md) - [All operations](https://skmtc.dev/google/apis/file/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/file/revisions/fbccb5a717d2?raw)
