Download Application Snapshot
curl --request GET \
--url https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/downloadimport requests
url = "https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download', 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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download"
req, _ := http.NewRequest("GET", url, nil)
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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": "UNAUTHORIZED"
}
{
"code": "ACCESS_DENIED"
}
{
"code": "SNAPSHOT_NOT_FOUND"
}
Snapshots
Download Application Snapshot
Downloads the ZIP file of a specific snapshot for a given application or database.
GET
/
v1
/
users
/
{id}
/
snapshots
/
{snapshot_id}
/
download
Download Application Snapshot
curl --request GET \
--url https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/downloadimport requests
url = "https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download', 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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download"
req, _ := http.NewRequest("GET", url, nil)
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.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vertracloud.app/v1/users/{id}/snapshots/{snapshot_id}/download")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": "UNAUTHORIZED"
}
{
"code": "ACCESS_DENIED"
}
{
"code": "SNAPSHOT_NOT_FOUND"
}
string
required
The ID of the application or database.
string
required
The ID of the snapshot to download.
string
required
The resource type. Possible values:
applications, databases.Response
file
The ZIP file containing the application or database snapshot, returned as a binary download with
Content-Disposition: attachment.Error Responses
string
The error code indicating the reason for failure. Possible values:
UNAUTHORIZED: The user is not authenticated.USER_NOT_FOUND: The authenticated user was not found.ACCESS_DENIED: The snapshot does not belong to the authenticated user.SNAPSHOT_NOT_FOUND: The specified snapshot does not exist.INTERNAL_SERVER_ERROR: An unexpected server error occurred.
{
"code": "UNAUTHORIZED"
}
{
"code": "ACCESS_DENIED"
}
{
"code": "SNAPSHOT_NOT_FOUND"
}