Crear snapshot del stack
curl --request POST \
--url https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Snapshots
Crear snapshot del stack
Toma una snapshot de todos los miembros de un stack que tengan datos, juntos, para poder restaurarlos como grupo.
POST
/
v1
/
stacks
/
{stack_id}
/
snapshots
Crear snapshot del stack
curl --request POST \
--url https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/stacks/{stack_id}/snapshots"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Toma una snapshot de cada aplicación y base de datos del stack y las agrupa. Se aplican las reglas y ventanas de snapshots del plan, igual que en las snapshots de un recurso individual. Requiere el scope
stacks:write cuando se llama con una clave de API.
string
requerido
El ID del stack.
string
El workspace al que pertenece el stack, cuando actúas sobre él como propietario del workspace.
Response
La snapshot creada, con los mismos campos que un elemento de Listar snapshots del stack, conreason igual a manual.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 403 | PLAN_RESTRICTED_FEATURE | El plan no incluye snapshots manuales. |
| 403 | WORKSPACE_OWNER_ONLY | Eres miembro del workspace, no su propietario. |
| 404 | STACK_NOT_FOUND | El stack no existe o pertenece a otra cuenta. |
Última modificación el 28 de octubre de 2026