List snapshots
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"snapshots": [
{
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"includesMemory": true
}
],
"limit": 2
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Cloud
List snapshots
Snapshots on this VM, newest first, read live from the hypervisor, plus the per-server cap (3 unless configured otherwise). Readable in any service state by any team role. A failed read is a 502, never an empty list.
GET
/
v1
/
cloud
/
{id}
/
snapshots
List snapshots
curl --request GET \
--url https://my.server.express/api/v1/cloud/{id}/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/cloud/{id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/cloud/{id}/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"snapshots": [
{
"name": "<string>",
"description": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"includesMemory": true
}
],
"limit": 2
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
Service id of the cloud server.