Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
API ReferenceComputeVMs

Resize a stopped VM's disk

Beta: a stopped VM's new disk size is validated and recorded, but the disk is not yet resized on the node. The disk can grow, never shrink. A pod's volume cannot be resized.

Required permission

Requires the compute.operate permission. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl vms disk resize <id> --new-size-gb <new-size-gb>
POST
/v1/vms/{id}/resize-disk

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

id*string

Request Body

application/json
  1. body
newSizeGb*integer

Response Body

Resized

Example Request
curl -X POST 'https://api.openrelay.inc/v1/vms/string/resize-disk' \  -H 'Content-Type: application/json' \  -d '{  "newSizeGb": 0}'
Example Response
Empty