Cloud Panel

List VMs

GET/api/v1/vms

Every server of the account. Filter by a tag with tag_key and tag_value.

Parameters

NameInDescription
tag_keyquery, string, optionalOnly servers with this tag
tag_valuequery, string, optionalOnly servers whose tag_key has this value

Example request

curl -X GET "https://platform.serverscamp.com/api/v1/vms" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
itemslist of Vmrequired
items[].vm_uuidstringrequiredServer id
items[].display_namestring, optionalName given at create
items[].vm_namestringrequiredSystem name, also the DNS name of the server
items[].statusstringrequiredpending while it is created, then active; deleting, reinstalling and resizing while those run; failed or error when something went wrong
items[].statestring, optionalPower state: running, stopped and the like
items[].errorstring, optionalWhat went wrong, when status is failed or error
items[].pending_opmap of object, optionalA power action still running, for example {"type": "vm_power", "action": "shutdown"}; null when none is
items[].vm_class_idintegerrequiredPlan id
items[].vm_class_namestring, optionalPlan name
items[].cpu_coresintegerrequiredvCPU cores
items[].memory_mbintegerrequiredMemory, MB
items[].storage_class_idintegerrequiredDisk id of the root disk
items[].storage_class_namestring, optionalDisk name of the root disk
items[].disk_gbintegerrequiredRoot disk size, GB
items[].vm_template_idinteger, optionalImage the server was created with
items[].os_typestring, optionalSystem of the image
items[].ssh_key_idinteger, optionalSSH key of the scamp user
items[].network_uuidstringrequiredPrivate network of the server
items[].networkVmNetworkInforequired
items[].network.network_uuidstring, optionalPrivate network of the server
items[].network.ip_internalstring, optionalPrivate IPv4 address in that network
items[].network.ipv6_addressstring, optionalIPv6 address
items[].network.public_ip_v4string, optionalPublic IPv4 address of the server, if it has one
items[].network.public_ip_v6string, optionalPublic IPv6 address of the server, if it has one
items[].network.floating_ip_v4string, optionalFloating IPv4 attached to the server
items[].network.floating_ip_v6string, optionalFloating IPv6 attached to the server
items[].os_userstringrequiredUser to log in as: scamp, with sudo
items[].os_passwordstringrequiredPassword of that user
items[].tagsmap of stringrequiredYour tags
items[].created_atstringrequiredWhen it was created, ISO 8601
totalintegerrequired
{
  "items": [
    {
      "vm_uuid": "6f1c2a9e-4b3d-4e8a-9c71-2d5e8f0a1b34",
      "display_name": "web-1",
      "vm_name": "web-1-k3x9",
      "status": "active",
      "state": "running",
      "error": null,
      "pending_op": null,
      "vm_class_id": 49,
      "vm_class_name": "basic-4g",
      "cpu_cores": 2,
      "memory_mb": 4096,
      "storage_class_id": 18,
      "storage_class_name": "standard",
      "disk_gb": 50,
      "vm_template_id": 5,
      "os_type": "Ubuntu",
      "ssh_key_id": 42,
      "network_uuid": "a3e1f0c2-7d4b-4c6e-8f9a-0b1c2d3e4f50",
      "network": {
        "network_uuid": "a3e1f0c2-7d4b-4c6e-8f9a-0b1c2d3e4f50",
        "ip_internal": "10.0.0.12",
        "ipv6_address": "2a01:ea05:10:4::12",
        "public_ip_v4": "185.236.10.44",
        "public_ip_v6": "2a01:ea05:20:1::44",
        "floating_ip_v4": null,
        "floating_ip_v6": null
      },
      "os_user": "scamp",
      "os_password": "Rk7vQ2mXp9LwT4sN",
      "tags": {
        "env": "production"
      },
      "created_at": "2026-11-01T09:20:14+00:00"
    }
  ],
  "total": 1
}

Errors

StatusWhen
401No token, or a token that is not valid
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors