Vesta Backup

backups

Vesta API · 6.0.75 · Community

GET/api/v1/backupsList Backups

List backups with pagination and optional filters. - skip: Number of records to skip (default: 0) - limit: Maximum number of records to return (default: 50, max: 100) - vm_id: Filter by specific VM - status: Filter by status (pending, running, completed, failed) - search: Search by VM name (partial match, case-insensitive) - date_from: Filter backups created after this date (ISO format: 2025-01-01) - date_to: Filter backups created before this date (ISO format: 2025-12-31) - tag_key: Filter by tag key (requires tag_value) - tag_value: Filter by tag value (requires tag_key)

Parameters

skip · query · Optional

{
  "default": 0,
  "minimum": 0,
  "title": "Skip",
  "type": "integer"
}

limit · query · Optional

Clamped to 100 per page

{
  "default": 50,
  "description": "Clamped to 100 per page",
  "minimum": 1,
  "title": "Limit",
  "type": "integer"
}

vm_id · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Vm Id"
}

status · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Status"
}

search · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Search"
}

date_from · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Date From"
}

date_to · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Date To"
}

tag_key · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Tag Key"
}

tag_value · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Tag Value"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "has_more": {
      "type": "boolean"
    },
    "items": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "backup_type": {
            "type": "string"
          },
          "capacity_state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "operator_dispatch": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "request_id": {
                    "format": "uuid",
                    "type": "string"
                  },
                  "state": {
                    "enum": [
                      "pending",
                      "dispatching",
                      "delivered",
                      "held"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "state",
                  "reason",
                  "request_id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "progress": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "retention_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "storage_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "storage_progress": {
            "anyOf": [
              {
                "additionalProperties": true,
                "description": "Extensible domain metadata; keys are not a closed schema.",
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "tags": {
            "additionalProperties": true,
            "description": "Extensible domain metadata; keys are not a closed schema.",
            "type": "object"
          },
          "vm_id": {
            "type": "string"
          },
          "vm_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "vm_id",
          "vm_name",
          "status",
          "progress",
          "storage_progress",
          "size_bytes",
          "retention_days",
          "backup_type",
          "capacity_state",
          "storage_path",
          "tags",
          "created_at",
          "completed_at",
          "operator_dispatch"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "limit": {
      "type": "integer"
    },
    "skip": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "items",
    "total",
    "skip",
    "limit",
    "has_more"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/backupsCreate Backup

Create a new backup job for a VM (operator or admin only). Triggers async backup execution.

Parameters

Idempotency-Key · header · Optional

Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.

{
  "format": "uuid",
  "type": "string"
}

Request body

Required

application/json

Schema

BackupCreate

Authentication

Responses

200

Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.

Headers
{
  "Cache-Control": {
    "schema": {
      "const": "no-store"
    }
  },
  "Idempotency-Key": {
    "schema": {
      "format": "uuid",
      "type": "string"
    }
  },
  "Idempotency-Replayed": {
    "schema": {
      "enum": [
        "true",
        "false"
      ],
      "type": "string"
    }
  },
  "X-Request-ID": {
    "description": "Per-HTTP-request correlation, separate from durable admission identity.",
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "discriminator": {
    "propertyName": "status"
  },
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "executor": {
          "enum": [
            "real",
            "mock"
          ],
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "const": "pending",
          "type": "string"
        },
        "vm_id": {
          "type": "string"
        },
        "vm_name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "vm_id",
        "vm_name",
        "status",
        "message",
        "executor",
        "request_id"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "message": {
          "type": "string"
        },
        "queue_id": {
          "type": "string"
        },
        "request_id": {
          "format": "uuid",
          "type": "string"
        },
        "status": {
          "const": "queued",
          "type": "string"
        },
        "vm_id": {
          "type": "string"
        },
        "vm_name": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "queue_id",
        "vm_id",
        "vm_name",
        "message",
        "request_id"
      ],
      "type": "object"
    }
  ]
}

400

Invalid domain request.

application/json

Schema

OperatorAdmissionError

401

Authentication unavailable.

application/json

Schema

OperatorAdmissionError

403

Current action authority unavailable.

application/json

Schema

OperatorAdmissionError

404

Authorized resource unavailable.

application/json

Schema

OperatorAdmissionError

409

Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.

application/json

Schema

OperatorAdmissionError

413

Normalized intent exceeds admission limit.

application/json

Schema

OperatorAdmissionError

422

Malformed identity, request validation or bulk target limit.

application/json

Schema

OperatorAdmissionError

423

Existing source or operation custody prevents admission.

application/json

Schema

OperatorAdmissionError

500

Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.

application/json

Schema

OperatorAdmissionError

text/plain

Schema
{
  "type": "string"
}

503

Admission dependency unavailable.

application/json

Schema

OperatorAdmissionError

POST/api/v1/backups/cleanupCleanup Expired Backups

Clean up expired backups based on retention policies (admin only). - dry_run: If True, return what would be deleted without actually deleting Uses RetentionPolicyEnforcer which: - Deletes from storage (S3 or filesystem) - Retains accepted-generation catalog tombstones and original custody - Logs all deletions

Parameters

dry_run · query · Optional

{
  "default": false,
  "title": "Dry Run",
  "type": "boolean"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

DELETE/api/v1/backups/{backup_id}Delete Backup

Delete exact owned payload, retaining its attributable tombstone.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

force · query · Optional

{
  "default": false,
  "title": "Force",
  "type": "boolean"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

GET/api/v1/backups/{backup_id}Get Backup

Get backup status and details.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "backup_type": {
      "type": "string"
    },
    "completed_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "operator_dispatch": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "reason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "request_id": {
              "format": "uuid",
              "type": "string"
            },
            "state": {
              "enum": [
                "pending",
                "dispatching",
                "delivered",
                "held"
              ],
              "type": "string"
            }
          },
          "required": [
            "state",
            "reason",
            "request_id"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "progress": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "retention_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "scheduler_decision": {
      "anyOf": [
        {
          "additionalProperties": true,
          "description": "Extensible domain metadata; keys are not a closed schema.",
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "size_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    },
    "storage_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "storage_progress": {
      "anyOf": [
        {
          "additionalProperties": true,
          "description": "Extensible domain metadata; keys are not a closed schema.",
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "tags": {
      "additionalProperties": true,
      "description": "Extensible domain metadata; keys are not a closed schema.",
      "type": "object"
    },
    "vm_id": {
      "type": "string"
    },
    "vm_name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "vm_id",
    "vm_name",
    "status",
    "progress",
    "storage_progress",
    "size_bytes",
    "retention_days",
    "backup_type",
    "storage_path",
    "tags",
    "created_at",
    "completed_at",
    "operator_dispatch",
    "scheduler_decision"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

GET/api/v1/backups/{backup_id}/restore-bundleGet Restore Bundle

Export accepted chain metadata for vnbui-restore; no keys or credentials.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/backups/{backup_id}/resumeResume Attempt

Redeliver only this backup's original durable attempt; never replace it.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

Authentication

Responses

202

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/backups/{backup_id}/retry-uploadRetry Upload

Attribute manual retry without converting uncertainty to send authority.

Parameters

backup_id · path · Required

{
  "title": "Backup Id",
  "type": "string"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError