Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Volumes

A Volume is a persistent disk scoped to one environment, encrypted at rest, attached by name when a lease is created.

A Volume is a persistent disk scoped to one environment, encrypted at rest, attached by name when a lease is created. It has one writer: the lease it is attached to, fenced by that lease's generation. It survives the lease's end and is destroyed only by Delete.

Service Sylphx Sandboxes · Resource type sandboxes.sylphx.com/Volume · Name pattern orgs/{org}/projects/{project}/envs/{env}/volumes/{volume} · Shape spec_status

#Fields

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/volumes/{volume}.
uidstringvol_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
specVolumeSpecDesired state. Required.
statusVolumeStatusObserved state. Output only.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets a volume.
GETlistLists volumes in a environment.
POSTcreateCreates a volume.
PATCHupdateUpdates a volume: grows spec.size_gib and edits metadata.
DELETEdeleteDeletes a volume and destroys its data. Refused RESOURCE_IN_USE while it is attached.

#get

Gets a volume.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/volumes/volume · scope sandboxes:read · effect read · Request, response and examples

#list

Lists volumes in a environment.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/volumes · scope sandboxes:read · effect read · paginated · Request, response and examples

#create

Creates a volume.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/volumes · scope sandboxes:write · effect write · Request, response and examples

#update

Updates a volume: grows spec.size_gib and edits metadata.

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/volumes/volume · scope sandboxes:write · effect write · Request, response and examples

#delete

Deletes a volume and destroys its data. Refused RESOURCE_IN_USE while it is attached.

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/volumes/volume · scope sandboxes:write · effect destructive · Request, response and examples