stats
Vesta API · 6.0.76 · Community with mTLS
GET/api/v1/statsGet Stats
Get system statistics for dashboard
Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"backups": {
"additionalProperties": false,
"properties": {
"completed": {
"type": "integer"
},
"failed": {
"type": "integer"
},
"running": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"total",
"running",
"completed",
"failed"
],
"type": "object"
},
"storage": {
"additionalProperties": false,
"properties": {
"total_bytes": {
"type": "integer"
},
"total_gb": {
"type": "number"
}
},
"required": [
"total_bytes",
"total_gb"
],
"type": "object"
},
"vms": {
"additionalProperties": false,
"properties": {
"total": {
"type": "integer"
}
},
"required": [
"total"
],
"type": "object"
}
},
"required": [
"vms",
"backups",
"storage"
],
"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"
}