/v1/operationsReturns all operations in the workspace, newest first. This covers every resource type, not only VMs, and is not paginated.
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
The workspace's operations.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the operation.
resource_typestringRequiredKind of resource the operation acts on, for example vm, vm_app, vm_snapshot, k8s_cluster, volume, database or deployment.
resource_uidstringRequiredUID of the resource. For a new VM or snapshot, this is the UID of the resource being created.
resource_namestringRequiredName of the resource when the operation was queued.
actionstringRequiredWhat the operation does. For VMs: create, start, stop, reboot, resize,
delete, set_app_port, expose and unexpose (custom domains and apps). For
snapshots: create, restore and delete. Other resources (k8s_cluster, volume,
database, deployment, buckets) use create and delete plus their own actions, for
example attach_volume, detach_volume, resize or firewall.apply.
statusstringRequiredProgress of the operation. succeeded and failed are final.
One ofqueuedrunningsucceededfailed
started_atstring (date-time)When work began. Omitted while queued.
finished_atstring (date-time)When the operation finished. Omitted until it does.
created_atstring (date-time)RequiredWhen the operation was queued.
events_urlstringRequiredPath of the server-sent events stream with the operation's progress.
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.