dashboard
Vesta API · 6.0.77 · Community
GET/api/v1/dashboard/backup-trendsGet Backup Trends
Get backup trends over time
Parameters
days · query · Optional
{
"default": 7,
"title": "Days",
"type": "integer"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"data": {
"items": {
"additionalProperties": false,
"properties": {
"completed": {
"type": "integer"
},
"date": {
"format": "date",
"type": "string"
},
"failed": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"date",
"completed",
"failed",
"total"
],
"type": "object"
},
"type": "array"
},
"period_days": {
"type": "integer"
}
},
"required": [
"period_days",
"data"
],
"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"
}422
Validation Error
application/json
Schema
500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}GET/api/v1/dashboard/storage-usageGet Storage Usage
Get storage usage breakdown by agent
Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"by_agent": {
"items": {
"additionalProperties": false,
"properties": {
"agent_id": {
"type": "string"
},
"backup_count": {
"type": "integer"
},
"hostname": {
"type": "string"
},
"size_bytes": {
"type": "integer"
},
"size_gb": {
"type": "number"
}
},
"required": [
"agent_id",
"hostname",
"size_bytes",
"size_gb",
"backup_count"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"by_agent"
],
"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"
}GET/api/v1/dashboard/summaryGet Dashboard Summary
Get dashboard summary statistics
Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"agents": {
"additionalProperties": false,
"properties": {
"offline": {
"type": "integer"
},
"online": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"total",
"online",
"offline"
],
"type": "object"
},
"attention": {
"additionalProperties": false,
"properties": {
"failed_backups": {
"type": "integer"
},
"held_backups": {
"type": "integer"
},
"held_jobs": {
"type": "integer"
},
"offline_agents": {
"type": "integer"
}
},
"required": [
"offline_agents",
"failed_backups",
"held_jobs",
"held_backups"
],
"type": "object"
},
"backups": {
"additionalProperties": false,
"properties": {
"by_status": {
"additionalProperties": false,
"properties": {
"completed": {
"type": "integer"
},
"failed": {
"type": "integer"
},
"held": {
"type": "integer"
},
"other": {
"type": "integer"
},
"queued": {
"type": "integer"
},
"running": {
"type": "integer"
}
},
"required": [
"completed",
"running",
"queued",
"failed",
"held",
"other"
],
"type": "object"
},
"completed_24h": {
"type": "integer"
},
"failed_24h": {
"type": "integer"
},
"last_24h": {
"type": "integer"
},
"period_end": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"period_start": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"running_count": {
"type": "integer"
},
"success_rate_24h": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"total": {
"type": "integer"
},
"uploads_pending": {
"type": "integer"
}
},
"required": [
"total",
"last_24h",
"completed_24h",
"failed_24h",
"uploads_pending",
"running_count",
"success_rate_24h",
"period_start",
"period_end",
"by_status"
],
"type": "object"
},
"generated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"recent_backups": {
"items": {
"additionalProperties": false,
"properties": {
"agent_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backup_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"progress": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"size_bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"vm_id": {
"type": "string"
},
"vm_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"vm_id",
"vm_name",
"status",
"backup_type",
"size_bytes",
"progress",
"created_at",
"agent_name"
],
"type": "object"
},
"type": "array"
},
"running_backups": {
"items": {
"additionalProperties": false,
"properties": {
"agent_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"backup_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"progress": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"size_bytes": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"vm_id": {
"type": "string"
},
"vm_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"vm_id",
"vm_name",
"status",
"backup_type",
"size_bytes",
"progress",
"created_at",
"agent_name"
],
"type": "object"
},
"type": "array"
},
"schedules": {
"additionalProperties": false,
"properties": {
"active": {
"type": "integer"
},
"upcoming": {
"type": "integer"
}
},
"required": [
"active",
"upcoming"
],
"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": {
"by_agent": {
"items": {
"additionalProperties": false,
"properties": {
"agent_id": {
"type": "string"
},
"count": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"agent_id",
"name",
"count"
],
"type": "object"
},
"type": "array"
},
"by_status": {
"additionalProperties": {
"type": "integer"
},
"description": "Current VM state strings mapped to counts; null state normalizes to unknown.",
"type": "object",
"x-open-schema-reason": "Current VM state strings mapped to counts; null state normalizes to unknown."
},
"running": {
"type": "integer"
},
"stopped": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"total",
"running",
"stopped",
"by_status",
"by_agent"
],
"type": "object"
}
},
"required": [
"vms",
"agents",
"backups",
"storage",
"schedules",
"attention",
"recent_backups",
"running_backups",
"generated_at"
],
"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"
}