Convert Backup to Snapshot
- Name
post
- Type
- /v1/backups/:id
- Description
You can convert a snapshot to a backup by sending a post request with specific action.
Request
Attributes
- Name
action
- Type
- string
- Description
An action should be a
convert
.
Example
cURL
curl -X POST "https://api.simplystack.com/v1/backups/1" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
-d '{"action": "convert"}'
Response
JSON object with key named backup
, the JSON object will contain the following identifiers:
Attributes
Example
json
{
"backup": {
"id": 1,
"created_at": "2018-02-13T08:33:25.371494Z",
"task": {
"id": 4,
"name": "convert",
"description": {
"progress": "Backup is converting.",
"completed": "Backup was converted."
},
"disk_size": 20,
"size_gigabytes": 1.2,
"stacklet": {...}
}
}