Volumes

Get Volumes

get

Retrieves all storage volumes for a specific project.

Args: user_info: Authenticated user information. project: Identifier of the project to list volumes for. region: Optional region filter.

Returns: list[VolumeModel]: A list of volume models belonging to the project.

Raises: HTTPException: If project is missing or user is not authorized.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
projectstringRequired
regionstring · nullableOptionalExample: us-central1-a
Responses
chevron-right
200

Successful Response

application/json
get
/v2/volumes

Create Volume

post

Creates a new storage volume.

Args: user_info: Authenticated user information. body: Request body containing volume creation details (size, region, etc).

Returns: VolumeModel: The created volume model.

Raises: HTTPException: If user unauthorized or creation fails.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

Request model for creating a new storage volume.

namestring · max: 64RequiredPattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
projectstringRequiredExample: proj_abc123456
disk_interfacestring · enumRequiredPossible values:
regionstringRequiredExample: us-central1-a
size_gbanyRequired
Responses
post
/v2/volumes

Delete Volume

delete

Deletes a storage volume.

Permanently removes a volume. The volume must not be currently in use/attached.

Args: user_info: Authenticated user information. volume_fid: Identifier of the volume to delete.

Raises: HTTPException: If volume not found, user unauthorized, or volume is in use.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
volume_fidstringRequiredExample: vol_abc123456
Responses
delete
/v2/volumes/{volume_fid}

No content

Update Volume

patch

Updates a storage volume's mutable properties (e.g., name).

Args: user_info: Authenticated user information. volume_fid: Identifier of the volume to update. body: Request body containing updated fields.

Returns: VolumeModel: The updated volume model.

Raises: HTTPException: If volume not found or user unauthorized.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
volume_fidstringRequiredExample: vol_abc123456
Body

Request model for updating an existing storage volume.

Attributes: name: New name for the volume. Must follow naming conventions.

namestring · max: 64RequiredPattern: ^[a-z]([-a-z0-9]*[a-z0-9])?$
Responses
chevron-right
200

Successful Response

application/json
patch
/v2/volumes/{volume_fid}

Last updated