Snapshot a Stacklet
- Name
post
- Type
- /v1/stacklets/:id
- Description
Send a
POST
request to create a snapshot of stacklet.
Request
Required Attributes
- Name
action
- Type
- string
- Description
An action attribute with the value of
snapshot
- Name
name
- Type
- string
- Description
The name identifier give to the new snapshot
Example
curl -X POST "https://api.simplystack.com/v1/stacklets/24" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
-d '{"action": "snapshot", "name": "snapshot-1"}'
Response
JSON object with a key named stacklet
which is an array of all the attributes associated with the stacklet, in addition to the following new attributes:
Attributes
Example
json
{
"stacklet": {
"application": null,
"backup_ids": [],
"backups_enabled": false,
"created_at": "2020-09-21T13:11:08.481602Z",
"disk": 26843545600,
"distribution": {
"image": {
"available": true,
"default": true,
"extra_price": "0.0000",
"min_disk": null,
"min_vcpu": null,
"min_memory": null,
"slug": "ubuntu-20-04-1-x64",
"version": "20.04.1 x64"
},
"name": "Ubuntu"
},
"firewall_uuid": null,
"id": 24,
"locked": false,
"memory": 1073741824,
"name": "stacklet1",
"networks": {
"v4": [
{
"address": "192.168.50.6",
"gateway": "192.168.50.1",
"netmask": "255.255.192.0",
"type": "public"
}
],
"v6": [
{
"address": "2a07:440:2000:6::21",
"gateway": "2a07:440:2000:6::1",
"netmask": 64,
"range_end": "2a07:440:2000:6::2f",
"range_start": "2a07:440:2000:6::20",
"type": "public"
}
]
},
"recovery_mode": false,
"region": {
"available": true,
"features": ["floating_ips"],
"name": "Frankfurt",
"slug": "fra"
},
"size": {
"available": true,
"bandwidth": 1099511627776,
"disk": 26843545600,
"memory": 1073741824,
"price_hourly": 0.0069,
"price_monthly": 5.0,
"slug": "b-1vcpu-1gb",
"vcpu": 1
},
"snapshot_ids": [1],
"status": "inactive",
"tags": ["server"],
"task": {
"id": 7,
"name": "snapshot",
"description": {
"completed": "Snapshot created.",
"progress": "Snapshot is creating."
}
},
"vcpu": 1,
"volume_uuid": null,
"vpc_uuid": null
}
}