List snapshots
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"snapshots": [
{}
]
}Snapshots
List snapshots
List the snapshots taken across your deployment instances.
GET
/
2022-09-01-00
/
resource-instance
/
snapshot
List snapshots
curl --request GET \
--url https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot \
--header 'Cookie: <cookie>'import requests
url = "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot"
headers = {"Cookie": "<cookie>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Cookie: '<cookie>'}};
fetch('https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Cookie: <cookie>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Cookie", "<cookie>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot")
.header("Cookie", "<cookie>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.omnistrate.cloud/2022-09-01-00/resource-instance/snapshot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Cookie"] = '<cookie>'
response = http.request(request)
puts response.read_body{
"snapshots": [
{}
]
}Lists every snapshot available to your subscriptions, both automated backups and manually created snapshots.
Authorization
Query parameters
string
Filter by snapshot type:
ManualSnapshot or AutomatedSnapshot.string
Environment type to filter by, for example
PROD.Response
object[]
The snapshots. See Describe snapshot for the full field list.
200 OK
{
"snapshots": [
{
"snapshotId": "snapshot-abc123",
"sourceInstanceId": "instance-abc123",
"snapshotType": "ManualSnapshot",
"status": "completed",
"progress": 100,
"encrypted": true,
"cloudProvider": "aws",
"region": "us-east-1",
"createdTime": "2025-01-15T10:04:22Z",
"completeTime": "2025-01-15T10:09:51Z"
}
]
}
Errors
See Error for the error response shape.⌘I