/v1/snapshots/{snapshot_uid}Returns one snapshot in the workspace, whether or not its source VM still exists.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
snapshot_uidstringRequiredThe snapshot's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The snapshot.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the snapshot.
vm_uidstringRequiredUID of the VM the snapshot was taken from. Kept after that VM is deleted.
source_vm_namestringRequiredName of the source VM.
detachedbooleanRequiredtrue when the source VM has been deleted. The snapshot can still be used to create a new VM.
namestringRequiredName of the snapshot.
slugstringRequiredURL-safe form of the name.
statusstringRequiredLifecycle state. Only available snapshots can be restored or used to create a VM.
One ofcreatingavailablerestoringdeletingfailed
consumed_bytesintegerRequiredStorage the snapshot actually uses, in bytes. Billing is based on this. 0 until the snapshot is ready.
created_atstring (date-time)RequiredWhen the snapshot was requested.
updated_atstring (date-time)RequiredWhen the snapshot last changed.
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. |
404 | The resource does not exist or you cannot access it. |
Errors use the standard error format.