Skip to content
NimbusNexus

Block storage

Block volumes are persistent disks you attach to VMs. Each volume lives in your session's region; a data volume survives the VM it's attached to (you can detach + reattach to a new VM); volumes can grow; and you can snapshot or back one up through Backups.

Volume types

GET /api/v1/storage/artifacts lists what you can create in your session's region: the volume types in types, and the priced storage options in volume_options. POST /api/v1/storage/ takes the size in GB and the volume_type, one of the volume_options labels, which sets the price. Optional fields are a type from types, a name, a description, an image to build the volume from, and subscription, the billing plan (default Hourly).

A volume keeps its type for life: there's no call to change it. Prices per volume_type are in Pricing data.

Lifecycle

POST /api/v1/storage/ queues the work and answers without an id; the new volume shows up in GET /api/v1/storage/. Its status comes from the block-storage service. The ones you'll meet most:

  • available — created but not attached. Bills the same as attached (storage doesn't care).
  • in-use — bound to a VM. Visible inside the VM as a block device (/dev/vdb, /dev/vdc, …).
  • detaching → available — releasing from a VM. Unmount the filesystem inside the VM before you detach.

Detach is a separate call from delete. Deleting a VM deletes the boot volume made from its image; volumes you attached, or passed in volumes when you created the VM, stay available.

DELETE /api/v1/storage/ destroys the volumes whose ids you list in ids. A deleted volume cannot be recovered, so back it up first if you want a recoverable copy. With cascade: true, the volume's snapshots are deleted along with it.

Resizing

POST /api/v1/storage/resize with {"volume_id": "…", "new_size": 500} grows a volume to 500 GB. new_size must be larger than the current size; anything else answers 400. The filesystem inside the VM needs a separate resize2fs / xfs_growfs call to claim the new space.

Shrinking isn't supported. To go smaller: create a new, smaller volume, attach it, copy the data, and detach the old one.

Snapshots

Snapshots and backups of a volume are made through Backups: POST /api/v1/backup_restore/volume_backups/create_backup with the volume_id and type: snapshot (a point-in-time copy kept with the volume) or type: backup (a separate full copy).

The snapshot is consistent at the block layer, not the application layer. For a database, pause writes first or use the database's own backup tool. Block-layer snapshots are right for filesystem volumes that aren't running a transactional engine.

A restore puts the copy back in place of the volume, at the same size; see Backups.

Attach semantics

A volume can be attached to one VM at a time. Multi-attach (shared-disk semantics) is not supported.

POST /api/v1/storage/attach takes the volume_id, the instance_id and an optional mountpoint; without one, the volume gets the first free device from /dev/vdb on. POST /api/v1/storage/detach takes the instance_id, the volume_id and the attachment_id, which GET /api/v1/storage/detach_artifacts lists for a VM.

A volume and the VM it attaches to are both in your session's region.

Pricing notes

  • Storage: billed per GB at the price of the volume's volume_type, on the plan in subscription. Prices are in Pricing data.
  • No IOPS-billed pricing. No per-attachment fee. No throughput surcharge.

What's next

  • Virtual machines — what you attach volumes to.
  • Object storage — for unstructured data that doesn't need block-level access (logs, backups, user uploads).
  • Backups — snapshots and backups of a volume, and restoring them.

Reference

GET/api/v1/storage/

Volumes List

Lists block storage volumes visible to the caller, optionally scoped to a specific project for administrators.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/storage/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/storage/

Volumes Create

Creates a new block storage volume in the user's project with the specified type, size and optional source image.

Request body

FieldTypeDescription
product_categorystringProduct category for billing
subscriptionPlanTypeSubscription plan type
volume_type*stringStorage medium used for the volume
size*integer—
namestring | null—
descriptionstring | null—
typestring | null—
imagestring | null—
vm_idstring | null—

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/storage/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "volume_type": "example",
    "size": 1
  }'
DELETE/api/v1/storage/

Volumes Delete

Deletes one or more block storage volumes by ID, optionally cascading to dependent resources.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
ids*array of string—
cascadeboolean—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/storage/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "example"
    ]
  }'
GET/api/v1/storage/artifacts

Volumes Artifacts

Returns the artifacts needed to create a block storage volume, including images, volume types and pricing options.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
product_type_namequerystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/storage/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/storage/attach

Volumes Attach

Attaches a block storage volume to a compute instance at the specified or next available mount point.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
volume_id*string—
instance_id*string—
mountpointstring | null—
modestring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/storage/attach" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "volume_id": "<volume_id>",
    "instance_id": "<instance_id>"
  }'
GET/api/v1/storage/attach_artifacts

Volumes Attach Artifacts

Returns artifacts needed to attach a volume to an instance, including available volumes, used mount points and the next free mount path.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
instance_id*querystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/storage/attach_artifacts?instance_id=%3Cinstance_id%3E" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/storage/detach

Volumes Detach

Detaches a block storage volume from the specified compute instance.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
instance_id*string—
volume_id*string—
attachment_id*string—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/storage/detach" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "instance_id": "<instance_id>",
    "volume_id": "<volume_id>",
    "attachment_id": "<attachment_id>"
  }'
GET/api/v1/storage/detach_artifacts

Volumes Detach Artifacts

Returns the list of volumes currently attached to an instance to support detach selection.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
instance_id*querystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/storage/detach_artifacts?instance_id=%3Cinstance_id%3E" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/storage/resize

Volumes Resize

Validates and enqueues a block storage volume resize (accepted for background processing).

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
projectstring | null—
volume_id*string—
new_size*integer—
vm_idstring | null—
attachboolean—

Responses

  • 202Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/storage/resize" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "volume_id": "<volume_id>",
    "new_size": 1
  }'
GET/api/v1/storage/resize_artifacts

Volumes Resize Artifacts

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
projectquerystring | null—
volume_id*querystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/storage/resize_artifacts?volume_id=%3Cvolume_id%3E" \
  -H "Authorization: Bearer $NIMBUS_KEY"
PATCH/api/v1/storage/{volume_id}

Volume Update

Updates the editable attributes of a block storage volume identified by its ID.

Parameters

NameInTypeDescription
volume_id*pathstring—

Request body

FieldTypeDescription
namestring | null—
descriptionstring | null—
metadataobject | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X PATCH "https://api.nimbusnexus.net/api/v1/storage/<volume_id>" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Need to make a real call? Try these endpoints in the live Swagger UI →