pki
Vesta API · 6.0.79 · Community
GET/api/v1/pki/backend-certGet Backend Cert
Download backend client cert+key for OKD secret mounting (admin only). Returns JSON with cert and key PEM for manual deployment.
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"cert_pem": {
"type": "string"
},
"key_pem": {
"type": "string"
},
"usage": {
"type": "string"
}
},
"required": [
"cert_pem",
"key_pem",
"usage"
],
"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"
}500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}GET/api/v1/pki/caGet Ca Cert
Download CA certificate (public, no auth required for trust distribution).
Authentication
Anonymous access
Responses
200
Successful response
Headers
{
"Content-Disposition": {
"schema": {
"type": "string"
}
}
}application/x-pem-file
Schema
{
"format": "binary",
"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"
}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"
}500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}GET/api/v1/pki/certificatesList Certificates
List all issued certificates.
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"items": {
"items": {
"additionalProperties": false,
"properties": {
"agent_id": {
"type": "string"
},
"common_name": {
"type": "string"
},
"expires_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"expiring_soon": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"fingerprint": {
"type": "string"
},
"id": {
"type": "string"
},
"issued_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"revoked_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"serial_number": {
"type": "string"
},
"status": {
"type": "string"
}
},
"required": [
"id",
"agent_id",
"serial_number",
"fingerprint",
"common_name",
"status",
"issued_at",
"expires_at",
"revoked_at",
"expiring_soon"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"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"
}
]
}500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}POST/api/v1/pki/certificates/{cert_id}/revokeRevoke Certificate
Revoke an agent certificate.
Parameters
cert_id · path · Required
{
"title": "Cert Id",
"type": "string"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"message",
"id"
],
"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"
}POST/api/v1/pki/initializeInitialize Ca
Initialize the built-in CA (one-time operation).
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"ca": {
"$ref": "#/components/schemas/ProtocolCA"
},
"message": {
"type": "string"
}
},
"required": [
"message",
"ca"
],
"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"
}
]
}409
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"
}POST/api/v1/pki/renewRenew Certificate
Agent submits CSR for certificate renewal.
Parameters
X-Agent-Key · header · Optional
{
"title": "X-Agent-Key",
"type": "string"
}Request body
Required
application/json
Schema
{
"additionalProperties": true,
"properties": {
"csr": {
"minLength": 1,
"type": "string"
}
},
"required": [
"csr"
],
"type": "object"
}Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"cert_pem": {
"type": "string"
},
"expires_at": {
"anyOf": [
{
"description": "ISO 8601 timestamp as serialized by the handler; legacy values may omit a UTC offset.",
"type": "string"
},
{
"type": "null"
}
]
},
"fingerprint": {
"type": "string"
}
},
"required": [
"cert_pem",
"fingerprint",
"expires_at"
],
"type": "object"
}400
Request refused or failed
application/json
Schema
{
"additionalProperties": false,
"properties": {
"detail": {
"type": "string"
}
},
"required": [
"detail"
],
"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
Agent identity or key is invalid, disabled, expired or no longer available
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"
}GET/api/v1/pki/statusGet Pki Status
Get CA status and certificate statistics.
Authentication
Responses
200
Successful response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"ca": {
"anyOf": [
{
"$ref": "#/components/schemas/ProtocolCA"
},
{
"type": "null"
}
]
},
"certificates": {
"additionalProperties": false,
"properties": {
"active": {
"type": "integer"
},
"expired": {
"type": "integer"
},
"revoked": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"total",
"active",
"expired",
"revoked"
],
"type": "object"
},
"initialized": {
"type": "boolean"
},
"require_mtls": {
"type": "boolean"
}
},
"required": [
"initialized",
"ca",
"certificates"
],
"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"
}
]
}500
Unhandled exception outside route-level conversion; body is plain text
text/plain
Schema
{
"const": "Internal Server Error",
"type": "string"
}