GET
/v1/vms/summaryReturns 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-SlugstringRequiredSlug 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.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
total_vmsintegerRequiredVMs in the workspace, excluding ones that are deleting or deleted.
running_vmsintegerRequiredVMs whose status is running.
stopped_vmsintegerRequiredtotal_vms minus running_vms. Includes VMs that are provisioning or failed, not only stopped ones.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.