Create a snapshot
POST/v1/grafana/api/snapshots/
Creates a snapshot. Snapshots are stored for 30 days and automatically deleted afterwards. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
The complete dashboard model.
Snapshot name.
When the snapshot should expire in seconds. 3600 is 1 hour, 86400 is 1 day. Default is never to expire.
Save the snapshot on an external server rather than locally. Default is false.
Define the unique key. Required if external is true.
Unique key used to delete the snapshot. It is different from the key so that only the creator can delete the snapshot. Required if external is true.
Responses
- 200
successful query
- application/json
- Schema
- Example (from schema)
Schema
Unique key used to delete the snapshot. It is different from the key
so that only the creator can delete the snapshot. Required if external is true
.
Delete url.
Unique key.
URL.
ID.
{
"deleteKey": "XXXXXXX",
"deleteUrl": "myurl/api/snapshots-delete/XXXXXXX",
"key": "YYYYYYY",
"url": "myurl/dashboard/snapshot/YYYYYYY",
"id": 1
}