Vesta Backup

public

Vesta API · 6.0.79 · Community

GET/api/v1/bootstrapGet Bootstrap

Minimal prelogin installation data without license or customer details.

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "auth_mode": {
      "enum": [
        "single_organization",
        "multi_organization"
      ]
    },
    "edition": {
      "enum": [
        "community",
        "commercial"
      ]
    },
    "login_methods": {
      "additionalProperties": false,
      "properties": {
        "oidc": {
          "type": "boolean"
        },
        "password": {
          "type": "boolean"
        }
      },
      "required": [
        "password",
        "oidc"
      ],
      "type": "object"
    },
    "schema_version": {
      "const": 1,
      "type": "integer"
    }
  },
  "required": [
    "schema_version",
    "edition",
    "auth_mode",
    "login_methods"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/compatibilityGet Compatibility

Check API/frontend and online agents owned by the persisted user's organization. Returns overall system compatibility status and per-component details. Frontend can pass its version via X-Frontend-Version header.

Authentication

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "agents": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "compatible": {
            "type": "boolean"
          },
          "hostname": {
            "type": "string"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "enum": [
              "aligned",
              "degraded",
              "incompatible"
            ]
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "hostname",
          "version",
          "compatible",
          "status",
          "reason"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "api": {
      "additionalProperties": false,
      "properties": {
        "major": {
          "type": "integer"
        },
        "minor": {
          "type": "integer"
        },
        "patch": {
          "type": "integer"
        },
        "version": {
          "type": "string"
        }
      },
      "required": [
        "version",
        "major",
        "minor",
        "patch"
      ],
      "type": "object"
    },
    "contract_version": {
      "const": 6,
      "type": "integer"
    },
    "degraded_mode": {
      "type": "boolean"
    },
    "expected_version": {
      "type": "string"
    },
    "frontend": {
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "compatible": {
              "type": "boolean"
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "enum": [
                "aligned",
                "degraded",
                "incompatible"
              ]
            },
            "version": {
              "type": "string"
            }
          },
          "required": [
            "compatible",
            "status",
            "reason",
            "version"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "organization_id": {
      "type": "string"
    },
    "scope": {
      "const": "organization-online-agents",
      "type": "string"
    },
    "status": {
      "enum": [
        "aligned",
        "degraded",
        "incompatible"
      ]
    },
    "warnings": {
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "contract_version",
    "scope",
    "organization_id",
    "status",
    "api",
    "frontend",
    "agents",
    "expected_version",
    "warnings",
    "degraded_mode"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

GET/api/v1/featuresGet Features

Report configured versus successfully loaded installed capabilities. Certificates are advisory and never select these flags.

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "configured_modules": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "edition": {
      "type": "string"
    },
    "features": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "flags": {
      "additionalProperties": {
        "type": "boolean"
      },
      "properties": {
        "client_encryption": {
          "type": "boolean"
        }
      },
      "required": [
        "client_encryption"
      ],
      "type": "object"
    },
    "installed_profile": {
      "$ref": "#/components/schemas/ProtocolInstalledProfile"
    },
    "license_enforcement": {
      "const": "advisory",
      "type": "string"
    },
    "loaded_modules": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "tier": {
      "enum": [
        "oss",
        "commercial"
      ]
    },
    "tier_source": {
      "const": "installed_distribution",
      "type": "string"
    }
  },
  "required": [
    "tier",
    "tier_source",
    "installed_profile",
    "license_enforcement",
    "edition",
    "features",
    "configured_modules",
    "loaded_modules",
    "flags"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/license/infoGet License Info

Legacy installed capability projection, independent of certificate status. This endpoint does not validate a certificate or publish customer details.

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "edition_name": {
      "type": "string"
    },
    "features": {
      "additionalProperties": {
        "type": "boolean"
      },
      "properties": {
        "client_encryption": {
          "type": "boolean"
        }
      },
      "required": [
        "client_encryption"
      ],
      "type": "object"
    },
    "installed_profile": {
      "$ref": "#/components/schemas/ProtocolInstalledProfile"
    },
    "license_enforcement": {
      "const": "advisory",
      "type": "string"
    },
    "tier": {
      "enum": [
        "oss",
        "commercial"
      ]
    },
    "tier_source": {
      "const": "installed_distribution",
      "type": "string"
    }
  },
  "required": [
    "tier",
    "tier_source",
    "installed_profile",
    "license_enforcement",
    "edition_name",
    "features"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/versionGet Version

Get API version information

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "build_date": {
      "type": "string"
    },
    "expected_compatible": {
      "type": "string"
    },
    "features": {
      "additionalProperties": false,
      "properties": {
        "agent_lifecycle": {
          "type": "boolean"
        },
        "agent_remote_config": {
          "type": "boolean"
        },
        "custom_ca_support": {
          "type": "boolean"
        },
        "key_management": {
          "type": "boolean"
        },
        "multi_key_authentication": {
          "type": "boolean"
        },
        "virtnbdbackup_advanced_options": {
          "type": "boolean"
        }
      },
      "required": [
        "key_management",
        "agent_lifecycle",
        "custom_ca_support",
        "multi_key_authentication",
        "virtnbdbackup_advanced_options",
        "agent_remote_config"
      ],
      "type": "object"
    },
    "major": {
      "type": "integer"
    },
    "minor": {
      "type": "integer"
    },
    "patch": {
      "type": "integer"
    },
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "version",
    "major",
    "minor",
    "patch",
    "service",
    "build_date",
    "expected_compatible",
    "features"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/healthHealth Check

Shallow liveness check — always 200 while the process is up. Must stay dependency-free: liveness gates pod restarts, and coupling it to an external dependency (DB/S3) turns a dependency outage into a restart kill-loop. Deep dependency checks belong in /ready.

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "service": {
      "const": "vnbui-api",
      "type": "string"
    },
    "status": {
      "const": "ok",
      "type": "string"
    }
  },
  "required": [
    "status",
    "service"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/metricsPrometheus Metrics

Prometheus metrics endpoint for monitoring

Authentication

Anonymous access

Responses

200

Prometheus text exposition, version 0.0.4; UTF-8

text/plain

Schema
{
  "type": "string"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

404

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/readyReadiness Check

Deep readiness check — verifies required dependencies (PostgreSQL). Readiness gates Service endpoints, so a Postgres outage drains traffic from the pod instead of masking the degradation behind 'Running 1/1'. Liveness must NOT use this endpoint (a DB outage should drain, not kill-loop).

Authentication

Anonymous access

Responses

200

Successful response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "checks": {
      "additionalProperties": false,
      "properties": {
        "database": {
          "additionalProperties": false,
          "properties": {
            "required": {
              "const": true,
              "type": "boolean"
            },
            "status": {
              "const": "ok",
              "type": "string"
            }
          },
          "required": [
            "status",
            "required"
          ],
          "type": "object"
        }
      },
      "required": [
        "database"
      ],
      "type": "object"
    },
    "status": {
      "const": "ready",
      "type": "string"
    }
  },
  "required": [
    "status",
    "checks"
  ],
  "type": "object"
}

401

If a Bearer header is supplied, middleware may reject malformed tenant credentials before route dispatch

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "const": "Invalid tenant credentials",
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

503

Required database probe failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "checks": {
      "additionalProperties": false,
      "properties": {
        "database": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DATABASE_UNAVAILABLE",
              "type": "string"
            },
            "required": {
              "const": true,
              "type": "boolean"
            },
            "status": {
              "const": "error",
              "type": "string"
            }
          },
          "required": [
            "status",
            "required",
            "code"
          ],
          "type": "object"
        }
      },
      "required": [
        "database"
      ],
      "type": "object"
    },
    "status": {
      "const": "not_ready",
      "type": "string"
    }
  },
  "required": [
    "status",
    "checks"
  ],
  "type": "object"
}