Skip to content

Get VM summary

GET/v1/vms/summary

Returns VM counts for the workspace. VMs that are deleting or deleted are not counted. stopped_vms is every counted VM that is not running, so it includes VMs that are provisioning or failed.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

VM counts for the workspace.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
total_vmsintegerRequired

VMs in the workspace, excluding ones that are deleting or deleted.

running_vmsintegerRequired

VMs whose status is running.

stopped_vmsintegerRequired

total_vms minus running_vms. Includes VMs that are provisioning or failed, not only stopped ones.

Errors

StatusMeaning
400The request was malformed or failed validation.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.