agents
Vesta API · 6.0.76 · Community with mTLS
GET/api/v1/agentsList Agents
List all agents (protected)
Authentication
Responses
200
Successful Response
application/json
Schema
{
"items": {
"additionalProperties": false,
"properties": {
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hostname": {
"type": "string"
},
"id": {
"type": "string"
},
"ip_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_heartbeat": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"metrics": {
"additionalProperties": true,
"description": "Extensible domain metadata; keys are not a closed schema.",
"type": "object",
"x-open-schema-reason": "Persisted/provider-supplied domain metadata permits additional JSON values."
},
"port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vm_count": {
"type": "integer"
}
},
"required": [
"id",
"hostname",
"display_name",
"status",
"ip_address",
"port",
"version",
"last_heartbeat",
"vm_count",
"metrics"
],
"type": "object"
},
"type": "array"
}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"
}POST/api/v1/agents/registerRegister Agent
Agent self-registration endpoint with secure key generation. Requires valid registration key from AgentRegistrationKey table. Validates key expiration, max uses, and enabled status.
Parameters
X-API-Key · header · Optional
{
"title": "X-Api-Key",
"type": "string"
}Request body
Required
Registration key must authorize hostname. Capabilities are provider metadata. Unknown fields are ignored; type validation is performed by existing handler/database behavior, not this document.
application/json
Schema
{
"additionalProperties": true,
"properties": {
"capabilities": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hostname": {
"type": "string"
},
"ip_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"libvirt_uri": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"hostname"
],
"type": "object"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"agent_id": {
"type": "string"
},
"api_key": {
"type": "string"
},
"env_snippet": {
"type": "string"
},
"heartbeat_interval": {
"type": "integer"
},
"hostname": {
"type": "string"
},
"key_prefix": {
"type": "string"
},
"message": {
"type": "string"
},
"orchestrator_api_key_required": {
"type": "boolean"
},
"orchestrator_url": {
"type": "string"
},
"tls": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"agent_cert": {
"type": "string"
},
"agent_key": {
"type": "string"
},
"ca_cert": {
"type": "string"
},
"expires_at": {
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
"fingerprint": {
"type": "string"
}
},
"required": [
"ca_cert",
"agent_cert",
"agent_key",
"fingerprint",
"expires_at"
],
"type": "object"
},
{
"type": "null"
}
]
}
},
"required": [
"agent_id",
"hostname",
"api_key",
"key_prefix",
"orchestrator_url",
"env_snippet",
"message",
"orchestrator_api_key_required",
"heartbeat_interval",
"tls"
],
"type": "object"
}400
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}401
Request refused or failed
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
Request refused or failed
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}503
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}DELETE/api/v1/agents/{agent_id}Delete Agent
Delete agent (admin only). Args: agent_id: Agent ID to delete cascade: If True, delete VMs only when they have no backup custody
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}cascade · query · Optional
{
"default": false,
"title": "Cascade",
"type": "boolean"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"deleted": {
"additionalProperties": false,
"properties": {
"backups": {
"type": "integer"
},
"certificates": {
"type": "integer"
},
"vms": {
"type": "integer"
}
},
"required": [
"vms",
"backups",
"certificates"
],
"type": "object"
},
"message": {
"type": "string"
}
},
"required": [
"message",
"deleted"
],
"type": "object"
}400
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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
Persisted identity lacks required role or installation/platform authority
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}409
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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/agents/{agent_id}Get Agent Details
Get agent details by ID
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"api_key": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"expires_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"is_valid": {
"type": "boolean"
},
"key_prefix": {
"type": "string"
},
"last_used_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"key_prefix",
"expires_at",
"enabled",
"is_valid",
"last_used_at"
],
"type": "object"
},
{
"type": "null"
}
]
},
"capabilities": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"config": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"created_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hostname": {
"type": "string"
},
"id": {
"type": "string"
},
"ip_address": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_heartbeat": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"metrics": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"platform": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"port": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vm_count": {
"type": "integer"
},
"vms": {
"items": {
"additionalProperties": false,
"properties": {
"absent_since": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"disks": {
"items": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"type": "array"
},
"id": {
"type": "string"
},
"inventory_present": {
"type": "boolean"
},
"last_observed_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"memory_kb": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"metadata": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"name": {
"type": "string"
},
"namespace": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provider": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"replaces_vm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"uuid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vcpu_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"vm_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vmi_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"state",
"uuid",
"memory_kb",
"vcpu_count",
"disks",
"metadata",
"provider",
"namespace",
"vm_uid",
"vmi_uid",
"replaces_vm_id",
"inventory_present",
"last_observed_at",
"absent_since"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"id",
"hostname",
"status",
"display_name",
"ip_address",
"version",
"platform",
"port",
"last_heartbeat",
"created_at",
"vm_count",
"vms",
"capabilities",
"metrics",
"config",
"api_key"
],
"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"
}404
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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"
}PATCH/api/v1/agents/{agent_id}Update Agent
Update agent settings (admin only)
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}Request body
Required
application/json
Schema
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"hostname": {
"type": "string"
},
"id": {
"type": "string"
},
"message": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"hostname",
"status",
"message",
"display_name"
],
"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
Persisted identity lacks required role or installation/platform authority
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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/agents/{agent_id}/key-rotationsList Agent Key Rotations
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"rotation_id": {
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at"
],
"type": "object"
},
"type": "array"
},
"total": {
"type": "integer"
}
},
"required": [
"items",
"total"
],
"type": "object"
}401
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"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
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}409
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
410
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
422
Validation Error
application/json
Schema
500
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}DELETE/api/v1/agents/{agent_id}/key-rotations/{rotation_id}Cancel Agent Key Rotation
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}rotation_id · path · Required
{
"title": "Rotation Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"rotation_id": {
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at"
],
"type": "object"
}401
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"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
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_authority_revoked",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}409
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_pending",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}410
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
422
Validation Error
application/json
Schema
500
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}GET/api/v1/agents/{agent_id}/key-rotations/{rotation_id}Get Agent Key Rotation
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}rotation_id · path · Required
{
"title": "Rotation Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"rotation_id": {
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at"
],
"type": "object"
}401
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"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
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}409
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
410
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
422
Validation Error
application/json
Schema
500
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}POST/api/v1/agents/{agent_id}/key-rotations/{rotation_id}/activateActivate Agent Key
Candidate proof is limited to this exact rotation; no user Bearer substitute.
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}rotation_id · path · Required
{
"title": "Rotation Id",
"type": "string"
}X-Agent-Key · header · Optional
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "X-Agent-Key"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"rotation_id": {
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at"
],
"type": "object"
}401
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_candidate_invalid",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "verified_certificate_required",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_candidate_certificate_invalid",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"const": "Invalid tenant credentials",
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}403
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_candidate_superseded",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_authority_revoked",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_found",
"type": "string"
}
},
"required": [
"code"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}409
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_not_pending",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_predecessor_changed",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_candidate_superseded",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}410
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_candidate_expired",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}422
Validation Error
application/json
Schema
500
Candidate or current administrator authority, lifecycle state or validated input unavailable. A refused candidate does not replace the active key.
application/json
Schema
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}POST/api/v1/agents/{agent_id}/rotate-keyRotate Agent Key
Stage a one-time candidate; the current agent key remains active until proof.
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}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"
}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": "secret_delivery"
},
"oneOf": [
{
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"api_key": {
"description": "First response only. Permanently absent from replay and outcome lookup.",
"type": "string",
"writeOnly": true
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"request_id": {
"format": "uuid",
"type": "string"
},
"rotation_id": {
"type": "string"
},
"secret_delivery": {
"const": "one_time",
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at",
"request_id",
"secret_delivery",
"api_key"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"activated_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_id": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"expires_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"key_prefix": {
"type": "string"
},
"request_id": {
"format": "uuid",
"type": "string"
},
"rotation_id": {
"type": "string"
},
"secret_delivery": {
"const": "unavailable",
"type": "string"
},
"state": {
"enum": [
"pending",
"activated",
"cancelled",
"expired"
],
"type": "string"
}
},
"required": [
"rotation_id",
"agent_id",
"state",
"key_prefix",
"created_at",
"expires_at",
"activated_at",
"request_id",
"secret_delivery"
],
"type": "object"
}
]
}400
Invalid domain request.
application/json
Schema
401
Authentication unavailable.
Headers
{
"WWW-Authenticate": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"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
Current action authority unavailable.
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_authority_revoked",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Authorized resource unavailable.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_not_found",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}409
Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_predecessor_missing",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_pending",
"type": "string"
},
"rotation_id": {
"type": "string"
}
},
"required": [
"code",
"rotation_id"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}413
Normalized intent exceeds admission limit.
application/json
Schema
422
Malformed identity, request validation or bulk target limit.
application/json
Schema
423
Existing source or operation custody prevents admission.
application/json
Schema
500
Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/OperatorAdmissionError"
},
{
"additionalProperties": false,
"properties": {
"detail": {
"additionalProperties": false,
"properties": {
"code": {
"const": "agent_rotation_configuration",
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object"
}
},
"required": [
"detail"
],
"type": "object"
}
]
}text/plain
Schema
{
"anyOf": [
{
"type": "string"
},
{
"const": "Internal Server Error",
"type": "string"
}
]
}503
Admission dependency unavailable.
application/json
Schema
PATCH/api/v1/agents/{agent_id}/settingsUpdate Agent Settings
Update agent runtime settings (admin only). Settings are delivered to agent via heartbeat response and applied unless overridden by local agent.env configuration. Pre-condition: No active backups on agent (returns 409 if busy).
Parameters
agent_id · path · Required
{
"title": "Agent Id",
"type": "string"
}Request body
Required
application/json
Schema
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"config": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"hostname": {
"type": "string"
},
"id": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"id",
"hostname",
"message",
"config"
],
"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
Persisted identity lacks required role or installation/platform authority
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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"
}
]
}404
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}409
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
}422
Validation Error
application/json
Schema
{
"anyOf": [
{
"$ref": "#/components/schemas/HTTPValidationError"
},
{
"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"
}POST/api/v1/agents/{hostname}/vmsSync Agent Vms
Sync VMs from agent - requires agent API key authentication.
Parameters
hostname · path · Required
{
"title": "Hostname",
"type": "string"
}X-Agent-Key · header · Optional
{
"title": "X-Agent-Key",
"type": "string"
}Request body
Required
Stable vm_uid (or libvirt uuid) required directly on each entry. Provider and namespace may fall back to entry metadata. KubeVirt requires namespace. Scope ceilings and complete inventory semantics are checked by sync_inventory.
application/json
Schema
{
"additionalProperties": true,
"properties": {
"complete": {
"default": false,
"type": "boolean"
},
"source_namespaces": {
"items": {
"type": "string"
},
"type": "array"
},
"vms": {
"items": {
"additionalProperties": true,
"properties": {
"disks": {
"items": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"type": "array"
},
"memory_kb": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"metadata": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
},
"provider": {
"type": "string"
},
"state": {
"type": "string"
},
"uuid": {
"type": "string"
},
"vcpu_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"vm_uid": {
"type": "string"
},
"vmi_uid": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"vms"
],
"type": "object"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"agent_hostname": {
"type": "string"
},
"message": {
"type": "string"
},
"synced": {
"type": "integer"
}
},
"required": [
"synced",
"agent_hostname",
"message"
],
"type": "object"
}401
Missing/invalid agent or registration credential, or required verified TLS transport unavailable
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
Request refused or failed
Headers
{
"X-Vnbui-Environment": {
"schema": {
"type": "string"
}
},
"X-Vnbui-Simulated": {
"schema": {
"type": "string"
}
}
}application/json
Schema
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"type": "object"
},
{
"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
{
"anyOf": [
{
"$ref": "#/components/schemas/HTTPValidationError"
},
{
"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/api/v1/vmsList Vms
List all VMs with pagination, filtering, and sorting (protected)
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"
}search · query · Optional
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Search"
}agent_id · query · Optional
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Agent Id"
}state · query · Optional
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "State"
}group_id · query · Optional
{
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Group Id"
}sort_by · query · Optional
{
"default": "name",
"title": "Sort By",
"type": "string"
}sort_order · query · Optional
{
"default": "asc",
"title": "Sort Order",
"type": "string"
}inventory_present · query · Optional
{
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Inventory Present"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"has_more": {
"type": "boolean"
},
"items": {
"items": {
"additionalProperties": false,
"properties": {
"absent_since": {
"anyOf": [
{
"description": "ISO 8601 timestamp; historical UTC values may omit the timezone offset.",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_hostname": {
"type": "string"
},
"agent_id": {
"type": "string"
},
"backup_eligibility": {
"additionalProperties": false,
"properties": {
"eligible": {
"type": "boolean"
},
"has_raw": {
"type": "boolean"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"eligible",
"has_raw",
"warnings"
],
"type": "object"
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"disks": {
"items": {
"additionalProperties": true,
"description": "Extensible domain metadata; keys are not a closed schema.",
"type": "object",
"x-open-schema-reason": "Persisted/provider-supplied domain metadata permits additional JSON values."
},
"type": "array"
},
"id": {
"type": "string"
},
"inventory_present": {
"type": "boolean"
},
"last_backup_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"last_backup_status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_backup_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"last_observed_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp; historical UTC values may omit the timezone offset.",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})?$",
"type": "string"
},
{
"type": "null"
}
]
},
"memory_kb": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"metadata": {
"additionalProperties": true,
"description": "Extensible domain metadata; keys are not a closed schema.",
"type": "object",
"x-open-schema-reason": "Persisted/provider-supplied domain metadata permits additional JSON values."
},
"name": {
"type": "string"
},
"namespace": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provider": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"replaces_vm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"uuid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vcpu_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"vm_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vmi_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"uuid",
"state",
"provider",
"namespace",
"vm_uid",
"vmi_uid",
"replaces_vm_id",
"last_backup_type",
"last_backup_status",
"id",
"name",
"memory_kb",
"vcpu_count",
"disks",
"metadata",
"inventory_present",
"last_observed_at",
"absent_since",
"agent_id",
"agent_hostname",
"created_at",
"last_backup_at",
"backup_eligibility"
],
"type": "object"
},
"type": "array"
},
"limit": {
"type": "integer"
},
"skip": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"items",
"total",
"skip",
"limit",
"has_more"
],
"type": "object"
}400
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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"
}POST/api/v1/vms/ids-by-filterGet Vm Ids By Filter
Get VM IDs matching filter criteria (for 'select all matching' across pages).
Request body
Required
application/json
Schema
{
"additionalProperties": true,
"properties": {
"agent_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"group_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"search": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [],
"type": "object"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"count": {
"type": "integer"
},
"vm_ids": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"vm_ids",
"count"
],
"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/vms/{vm_id}Get Vm
Get VM details (protected)
Parameters
vm_id · path · Required
{
"title": "Vm Id",
"type": "string"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"absent_since": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"agent_hostname": {
"type": "string"
},
"agent_id": {
"type": "string"
},
"backup_count": {
"type": "integer"
},
"backup_eligibility": {
"additionalProperties": false,
"properties": {
"eligible": {
"type": "boolean"
},
"has_raw": {
"type": "boolean"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"eligible",
"has_raw",
"warnings"
],
"type": "object"
},
"created_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"disks": {
"items": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"type": "array"
},
"id": {
"type": "string"
},
"inventory_present": {
"type": "boolean"
},
"last_observed_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"memory_kb": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
},
"namespace": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"provider": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"replaces_vm_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"uuid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vcpu_count": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"vm_metadata": {
"additionalProperties": true,
"description": "Provider and agent supplied domain metadata; keys vary by provider and installed capability.",
"type": "object",
"x-open-schema-reason": "Provider and agent supplied domain metadata; keys vary by provider and installed capability."
},
"vm_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"vmi_uid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"state",
"uuid",
"memory_kb",
"vcpu_count",
"disks",
"provider",
"namespace",
"vm_uid",
"vmi_uid",
"replaces_vm_id",
"inventory_present",
"last_observed_at",
"absent_since",
"vm_metadata",
"agent_id",
"agent_hostname",
"backup_count",
"created_at",
"backup_eligibility"
],
"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"
}404
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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"
}