Move a snapshot to another storage
Overview
Moves a finished snapshot into another snapshot storage in the same team. Send the target snapshot_storage UUID. The target must have room for the whole snapshot, and neither storage may be suspended. No data is copied. Only the storage that holds and pays for the snapshot changes. To give snapshots to another team, move them into one storage and transfer that storage.
Permissions
Requires the snapshot.update (Move snapshots and rename storage) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The snapshot uuid short
Body
application/jsonThe value of snapshot_storage.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The uuid UUID.
The value of uuid_short.
The name shown to customers.
The state as the customer reads it, including a suspension of the storage holding the snapshot.
One of: creating, available, failed, unavailable, suspended, restoring
Whether the resource is successful.
Whether the resource is available.
The value of size.
What the VM's disk was provisioned at when the snapshot was taken.
How much of that disk is in use on the VM right now.
The date and time for completed at, in UTC.
The date and time for created at, in UTC.
The machine it was taken of, while that machine exists and is still the same account's. A snapshot outlives its server, and one moved to another account with its storage does not reveal the seller's machine.
Show child attributesHide child attributes
The uuid UUID.
The value of uuid_short.
The name shown to customers.
The value of windows.
The value of template_name.
The value of template_icon_url.
What the machine was called when the snapshot was taken.
The snapshot storage holding it and paying for it.
Show child attributesHide child attributes
The uuid UUID.
The value of uuid_short.
The name shown to customers.
Whether the resource is suspended.
Errors
- 400
- The snapshot is still being written or failed, it is already in that storage, the target does not have enough room, or either storage is suspended or not active.
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 422
- A field is missing or invalid, or the resource cannot accept this change in its current state. Check
messagefor details. Field validation also includes anerrorsobject keyed by field name. - 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown