Reference For: developers

API schemas: A

Schemas of the native REST API whose name starts with A.

About

Service information.

NameTypeRequiredDescription
apiVersionstringyesAPI version.
isLeaderbooleanyesWhether this node is the leader.
namestringyesProduct name.
nodeIdinteger (int64)yesStore node id.
recordsintegeryesNumber of records.
storeVersioninteger (int64)yesCurrent store version.
uptimeSecondsinteger (int64)yesUptime in seconds.
versionstringyesBuild version.

AcknowledgeRequest

Acknowledge request.

NameTypeRequiredDescription
targetIdstringyesEntity whose state is acknowledged.

ActionView

Rule action.

Values: "allow", "drop", "reject", "pass"

AddHostRequest

Body for POST /v1/clusters/{id}/hosts (AddHost_Task).

NameTypeRequiredDescription
forceboolean or nullWhen true, return an existing same-name host instead of failing; a registered host in this cluster is reset (its certificate revoked) so its agent can join again with the join token.
managementAddressstring or nullOptional management address; defaults to name.
namestringyesHost display name / FQDN (must match the agent's hostname at join).

AddUpdateSessionFileRequest

Add a PUSH file to an update session.

NameTypeRequiredDescription
namestringyesFile name (basename, e.g. ubuntu.iso).
sizeinteger (int64) or nullOptional expected size in bytes.
sourceTypestringSource type; only PUSH is supported.

AddressSince

An address and when it was allocated.

NameTypeRequiredDescription
addressstringyesThe address.
sincestringyesAllocation time.

AlarmAction

What an alarm does when it changes status.

One of: object, object

AlarmStateView

Alarm state on one entity.

NameTypeRequiredDescription
acknowledgedbooleanyesAcknowledged.
sincestringyesSince.
statusAlarmStatusViewyesStatus.
targetIdstringyesEntity id.

AlarmStatus

Alarm status (ManagedEntityStatus).

Values: "gray", "green", "yellow", "red"

AlarmStatusView

Alarm status.

Values: "gray", "green", "yellow", "red"

AlarmTrigger

What raises an alarm.

One of: object, object

AlarmView

An alarm definition with states.

NameTypeRequiredDescription
actionsarray of AlarmActionActions.
descriptionstringyesDescription.
enabledbooleanyesEnabled.
idstringyesAlarm id.
namestringyesName.
scopeIdstringyesScope entity id.
statesarray of AlarmStateViewyesPer-entity states.
triggerAlarmTriggeryesTrigger definition.
versioninteger (int64)Record version, for expectedVersion of PUT /v1/alarms/{id}.

AllocateBody

Allocate an address.

NameTypeRequiredDescription
addressstring or nullA specific IPv4 address.
familystring or nullipv4 (default) or ipv6 (a /64).
macstring or nullNIC MAC (absent: the VM's first NIC on the pool's network).
referencestring or nullCaller reference.
rolestring or nullprimary (default) or extra.
tenantstring or nullTenant (quota).
vmstring or nullVM to bind to (absent: reserved for the tenant).

AllocationView

One address of a pool: allocated or in quarantine.

NameTypeRequiredDescription
addressstringyesIPv4 address, or the /64 (prefix/64).
allocatedAtstring or nullAllocation time.
familystringyesipv4 or ipv6.
macstring or nullBound NIC MAC.
ptrstring or nullReverse DNS name.
ptrReasonstring or nullWhy the operator rejected the name.
ptrStatusstring or nullapplied, requested, rejected, or to_remove (a released address whose PTR an operator must remove; status released).
quarantinedUntilstring or nullEnd of the quarantine.
referencestring or nullCaller reference.
rolestring or nullprimary or extra (IPv4).
statusstringyesallocated or quarantined.
tenantstring or nullTenant.
vmstring or nullBound VM.

ApiInfoView

OpenAPI stand-in for GET /v1/backup/info (ApiInfo).

NameTypeRequiredDescription
apiVersionstringyesAPI version string (1.0).
featuresarray of BackupFeatureViewyesFeatures the service advertises.
granularityinteger (int64)yesDefault tracking granularity in bytes.
maxAreasPerPageinteger (int64)yesLargest maxAreas accepted.
maxTtlSecondsinteger (int64)yesLongest session TTL in seconds.
remoteExportsbooleanyesWhether exports are reachable off-host (TCP with TLS).

ApiTokenView

An API token without its secret.

NameTypeRequiredDescription
createdAtstringyesCreation time.
expiresAtstring or nullExpiry.
idstringyesPublic id (16 hex characters, also inside the token).
lastUsedstring or nullLast use.
namestringyesLabel.

ApplyTemplateBody

Body of POST /v1/firewall/templates/{id}/apply.

NameTypeRequiredDescription
vmstringyesVM id.

AuditView

An audit record.

NameTypeRequiredDescription
actionstringyesAction.
actorstringyesActor.
afterHashstring or nullAfter hash.
atstringyesTime.
beforeHashstring or nullBefore hash.
clientAddressstringyesClient address.
correlationIdstringyesCorrelation id.
detailsobjectyesDetails.
idstringyesId.
outcomestringyessuccess, denied or error.
targetIdstring or nullTarget.

AuthConfigView

GET /v1/auth/config: what the sign-in page needs before anyone is signed in.

NameTypeRequiredDescription
idleTimeoutSecondsinteger (int64)yesIdle timeout of browser sessions in seconds.
oidcOidcConfigViewyesOIDC sign-in.

AuthLoginRequest

POST /v1/auth/login body.

NameTypeRequiredDescription
passwordstringyesPassword.
usernamestringyesAccount name.

AuthMfaRequest

POST /v1/auth/mfa body: the challenge token and exactly one of code and recoveryCode.

NameTypeRequiredDescription
codestring or nullSix-digit TOTP code.
pendingTokenstringyespendingToken from the login response (mfaToken is accepted as an alias).
recoveryCodestring or nullA recovery code.

AuthPasswordRequest

POST /v1/auth/password body.

NameTypeRequiredDescription
currentPasswordstringyesCurrent password.
newPasswordstringyesNew password (12..=256 characters, not common, not containing the username).

AuthResponse

Response of the browser login endpoints (/v1/auth/login, /mfa, /refresh, /password, /totp/confirm). Token responses also set the kyv_refresh and kyvernon_csrf cookies. Shape agreed with the UI (ui/app/src/auth/contract.ts).

NameTypeRequiredDescription
outcomestringyessession (a session, possibly restricted to the password change, see session.passwordRotationRequired), mfa_enrolment_required (a session restricted to TOTP enrolment) or mfa_required (no session; answer with pendingToken).
pendingTokenstring or nullFor mfa_required: the single-use challenge token for POST /v1/auth/mfa.
pendingTokenExpiresAtstring or nullFor mfa_required: expiry of the challenge (5 minutes).
recoveryCodesarray of string or nullOnly from POST /v1/auth/totp/confirm: ten single-use recovery codes, shown once.
sessionAuthSessionTokens or null
stagestring or nullWhat the session may do: authenticated, password_change_required or mfa_enrolment_required; absent for mfa_required.

AuthSessionTokens

A browser session in an [AuthResponse].

NameTypeRequiredDescription
accessExpiresAtstringyesExpiry of this access token (RFC 3339; 15 min); refresh before it.
csrfTokenstringyesThe CSRF token (same value as the kyvernon_csrf cookie).
expiresAtstringyesAbsolute expiry of the session (RFC 3339; 12 h after login).
expiresIninteger (int64)yesSeconds until the access token expires.
idleTimeoutSecondsinteger (int64)yesIdle timeout of the session in seconds.
mfaEnrolmentRequiredbooleanyesTOTP enrolment is required (after the password change, if that is pending too).
passwordRotationRequiredbooleanyesOnly the password change is allowed until it is done.
sessionIdstringyesSession (token family) id.
tokenstringyesBearer access token; keep it in memory only.
tokenTypestringyesAlways Bearer.
userUserViewyesThe user.

AuthSessionView

GET /v1/auth/session response.

NameTypeRequiredDescription
accessTokenExpiresAtstring or nullExpiry of the presented access token (browser sessions).
createdAtstringyesCreation time.
idleTimeoutSecondsinteger (int64)yesIdle timeout in seconds.
mfaVerifiedbooleanyesSecond factor completed in this session.
sessionExpiresAtstringyesAbsolute expiry.
sessionIdstringyesSession id.
stagestringyesauthenticated, password_change_required or mfa_enrolment_required.
userUserViewyesThe user.

AvailableMetricView

One available (counter, instance) pair.

NameTypeRequiredDescription
counterstringyesCounter name.
counterIdinteger (int32)yesCounter id.
instancestringyesInstance ("" = aggregate).

AvailableView

Counters with data for an entity.

NameTypeRequiredDescription
entitystringyesEntity id.
intervalinteger (int32)yesSampling period.
metricsarray of AvailableMetricViewyesPairs.

Version 0.1.