Reference For: developers

API schemas: S

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

ScheduledAction

Power action a scheduled task may invoke (M1-CP-03 thin slice).

Values: "power_on", "power_off"

ScheduledRecurrence

Scheduler kind persisted for a scheduled task (M1-CP-03).

One-shot tasks use [ScheduledTask::run_at]. Recurrent variants store their cadence here; missing field deserialises as [ScheduledRecurrence::Once].

One of: object, object, object, object, object, object

ScheduledTaskState

Lifecycle of a scheduled task (maps to TaskInfoState on the wire).

Values: "queued", "running", "success", "error"

ScheduledTaskView

A scheduled power task (native /v1/scheduled-tasks, M1-CP-03).

NameTypeRequiredDescription
actionScheduledActionyesPower action.
activeTaskIdstring or nullActive power-task id, if any.
activeTimestring or nullOptional scheduler active time.
createdBystringyesCreating user.
descriptionstringyesDescription.
enabledbooleanyesEnabled.
entityIdstringyesTarget VM id.
expireTimestring or nullOptional scheduler expire time.
idstringyesScheduled-task id (schedule-N).
lastErrorstring or nullLast error message when state is error.
namestringyesDisplay name.
nextRunTimestring or nullNext run time.
notificationstring or nullOptional notification address (SMTP send when [smtp] enabled).
prevRunTimestring or nullPrevious run time.
recurrenceScheduledRecurrenceyesScheduler cadence.
runAtstringyesOne-shot run time / create-time anchor (RFC 3339).
stateScheduledTaskStateyesLifecycle state.

SerialLogView

Tail of a VM's serial console log (Kyvernon VMM has no graphical console yet).

NameTypeRequiredDescription
availablebooleanyesTrue when a serial log file is configured for the VM.
bytesinteger (int64)yesBytes returned.
textstringyesLog text (lossy UTF-8). Empty when the file is not there yet.
totalBytesinteger (int64)yesTotal size of the log file on the host when read.
truncatedbooleanyesTrue when the file was larger than the returned window.

SeriesView

One series, column-oriented: values[i] was measured over the interval ending at timestamps[i].

NameTypeRequiredDescription
counterstringyesCounter name.
counterIdinteger (int32)yesCounter id.
entitystringyesEntity id.
entityNamestring or nullEntity name.
instancestringyesInstance ("" = aggregate).
intervalinteger (int32)yesSampling period of the points.
timestampsarray of integer (int64)yesInterval end times, Unix seconds, ascending.
unitstringyesUnit key; percent values are 0..100.
valuesarray of number (double)yesValues.

ServerAddressBody

Body of POST /v1/vms/{id}/addresses.

NameTypeRequiredDescription
ipv6boolean or nullAlso a /64 when the pool has IPv6 (default true).
poolstring or nullPool (absent: the first pool on the VM's networks with a free address).
referencestring or nullCaller reference.
tenantstring or nullTenant (quota).

ServerAddressUsage

Public addresses of one server.

NameTypeRequiredDescription
extraarray of AddressSinceyesThe extra addresses with the time they were allocated (for proration).
extraIpv4integer (int32)yesExtra IPv4 addresses (billed as add-on).
ipv6Prefixesinteger (int32)yes/64 prefixes.
primaryIpv4integer (int32)yesPrimary addresses (one per NIC; part of the plan).
vmstringyesVM id.

ServerAddresses

What server create gets back: the addresses to put in the guest's configuration.

NameTypeRequiredDescription
dnsServersarray of stringyesDNS servers.
gatewaystring or nullIPv4 gateway.
ipv4string or nullPrimary IPv4 address (the NIC's DHCP lease).
ipv6Addressstring or nullThe suggested IPv6 address (<block>::1, the block itself for a /128), configured with ipv6OnlinkLen.
ipv6Gatewaystring or nullThe IPv6 gateway (the router's link-local or on-link address).
ipv6OnlinkLeninteger (int32) or nullPrefix length the guest configures on ipv6Address (the segment's on-link prefix, at least 64), so the gateway is on-link with a standard configuration.
ipv6Prefixstring or nullThe server's IPv6 block (a /64 by default, a /112 per VPS on a shared /64).
ipv6PrefixLeninteger (int32) or nullLength of the server's block (ipv6Prefix/ipv6PrefixLen): what port security allows.
macstringyesNIC MAC the addresses are bound to.
poolstring or nullThe pool.
prefixLeninteger (int32)yesPrefix length of the IPv4 subnet.

ServerPowerRequest

A power action.

NameTypeRequiredDescription
actionstringyeson, off (hard), shutdown (through the guest, then hard), reboot or reset.

ServerSnapshotRequest

Request to snapshot a server.

NameTypeRequiredDescription
namestringyesSnapshot name (1..=80 characters).

ServerSnapshotView

A snapshot of a server.

NameTypeRequiredDescription
createdAtstringyesTaken.
keyinteger (int32)yesKey.
namestringyesName.

ServerTaskView

The answer of a server operation: its task, and a generated password once.

NameTypeRequiredDescription
passwordstring or nullThe generated password: shown only in this answer, never stored in clear.
rebootRequiredbooleanThe operation reboots the server (resize).
serverIdstringyesThe server.
taskIdstringyesThe task to poll (GET /v1/tasks/{id}).

ServerUsageView

One server's usage in a month.

NameTypeRequiredDescription
hostnamestringyesHost name.
plansarray of PlanHoursViewyesHours per plan (proration over a resize).
serverstringyesServer.
snapshotGibHoursnumber (double)yesSnapshot GiB-hours (provisioned size of the VM's disks per snapshot).
statestringyesState now.
vmstring or nullVM (while it exists).

ServerView

A self-service server.

NameTypeRequiredDescription
addressesarray of stringyesPublic addresses.
createTaskstring or nullThe create task.
createdAtstringyesCreated.
deletedAtstring or nullDeleted.
errorstringWhy the create failed.
hostnamestringyesHost name.
idstringyesserver-N.
imagestringyesImage.
imageNamestringyesImage name.
passwordPendingbooleanyesA new password is applied at the next boot.
planstringyesPlan.
planNamestringyesPlan name.
powerStatestring or nullPower state of the VM.
rescueSincestring or nullIn rescue mode since.
snapshotsarray of ServerSnapshotViewyesSnapshots.
statestringyescreating, active, rescue, deleted or failed.
tenantstringyesTenant.
vmIdstring or nullThe VM.

ServiceAccountRequest

Service-account flag.

NameTypeRequiredDescription
serviceAccountbooleanyesWhether the account is a service account.

ServiceBody

Create or replace a named service.

NameTypeRequiredDescription
descriptionstringDescription.
entriesarray of ServiceEntryViewyesEntries (no named services inside).
namestringyesName.

ServiceEntryView

One service entry: tcp, udp or sctp with destination ports ("443", "1000-1999"; empty: any port), icmp4 or icmp6 with an optional type and code, ip with a protocol number, or named with the id of a named service.

NameTypeRequiredDescription
icmpCodeinteger (int32) or nullICMP code (needs a type).
icmpTypeinteger (int32) or nullICMP type.
idstring or nullNamed service id (named).
numberinteger (int32) or nullIP protocol number (ip).
portsarray of stringDestination ports or ranges (TCP, UDP, SCTP).
protocolstringyestcp, udp, sctp, icmp4, icmp6, ip or named.
sourcePortsarray of stringSource ports or ranges (TCP, UDP, SCTP; empty: any).

ServiceView

A named service.

Type: ServiceBody, object

SessionInfoView

A session (administrator view; no token material).

NameTypeRequiredDescription
breakGlassbooleanyesBreak-glass.
clientAddressstringyesClient address.
createdAtstringyesCreated.
expiresAtstringyesExpires.
idstringyesSession id.
kindstringyesinteractive or api.
lastActivestringyesLast activity.
usernamestringyesUsername.

SessionStateView

OpenAPI stand-in for SessionState.

Values: "REQUESTED", "SNAPSHOT_TAKEN", "EXPORTING", "COMPLETED", "ABORTED", "EXPIRED"

SessionView

An issued session.

NameTypeRequiredDescription
expiresAtstringyesHard expiry.
mfaEnrolmentRequiredbooleanyesMFA enrolment must be completed before other calls succeed.
passwordRotationRequiredbooleanyesThe password must be changed before other calls succeed.
sessionIdstringyesSession id.
tokenstringyesBearer token; shown once.
userUserViewyesUser.

SetEnabledRequest

Enable/disable request.

NameTypeRequiredDescription
enabledbooleanyesEnabled.

SetPermissionRequest

Set-permission request.

NameTypeRequiredDescription
entityIdstringyesEntity id.
principalPrincipalViewyesPrincipal.
propagatebooleanPropagate (default true).
roleIdstringyesRole id.

SetSoftwareIscsiRequest

Body for PUT /v1/hosts/{id}/iscsi/software.

NameTypeRequiredDescription
enabledbooleanyesEnable or disable the software iSCSI initiator.

SettingsView

Domain-wide firewall settings.

NameTypeRequiredDescription
ctLimitPerPortinteger (int32)yesConnection-tracking entries per vNIC.
enforceNewbooleanyesvNICs added to VMs from now on start in mode enforce (default false: mode off); existing vNICs are not changed.
flowLimitPerBridgeinteger (int32)yesFirewall flows per host bridge.
logRatePpsinteger (int32)yesLog rate per host (packets per second, meter kyv-fw-log).
monitorReportDaysinteger (int32)yesDays a monitor report covers.
rejectRatePpsinteger (int32)yesReject answers per second per bridge (meter kyv-fw-reject).
versioninteger (int64)Record version (ignored in requests).

SeverityView

Event severity.

Values: "info", "warning", "error", "user"

SharesLevel

Shares level for a resource allocation.

Values: "low", "normal", "high", "custom"

ShutdownRequest

Graceful shutdown of a VM (POST /v1/vms/{id}/shutdown).

NameTypeRequiredDescription
idempotencyKeystring or nullIdempotency key.
timeoutSecondsinteger (int64) or nullHow long the guest gets to shut down before the VM is powered off hard (seconds, 1 to 3600; default 90).

SimulateBody

A packet to evaluate at a vNIC.

NameTypeRequiredDescription
directionstringyesin (to the vNIC) or out (from it).
icmpCodeinteger (int32) or nullICMP code.
icmpTypeinteger (int32) or nullICMP type.
localstring or nullThe vNIC's own address (default: its first address of the peer's family).
nicstring or nullNIC key (default: the VM's first host-bridge NIC).
peerstringyesThe other end's address.
portinteger (int32) or nullDestination port (TCP, UDP).
protocolstringyestcp, udp, icmp4, icmp6 or a protocol number.
statestring or nullConnection state: new (default), established.
vmstringyesVM id.

SimulateView

The verdict of a simulated packet (the vNIC evaluated as if in mode enforce).

NameTypeRequiredDescription
categoryCategoryView or null
modeModeViewyesThe vNIC's current mode (in monitor a drop is forwarded and reported; in off nothing is evaluated).
policystring or nullPolicy of that rule.
ruleinteger (int32)yesRule number that decided (0: default, state or system traffic).
stagestringyessystem, state, rule, default (where the decision was made).
verdictstringyesallow, drop or reject.

SmtpBody

Body of PUT /v1/vms/{id}/smtp.

NameTypeRequiredDescription
reasonstring or nullWhy (stored in the audit event, e.g. the portal's ticket).
unblockedbooleanyestrue: allow port 25 for this VM in both families; false: the pools' setting.

SmtpPolicy

Outgoing SMTP (TCP 25) of the guests of a pool, per address family.

Values: "allowed", "blocked"

SmtpView

SMTP state of one VM.

NameTypeRequiredDescription
ipv4BlockedbooleanyesOutgoing SMTP over IPv4 is dropped now.
ipv6BlockedbooleanyesOutgoing SMTP over IPv6 is dropped now.
unblockedbooleanyesThe VM is unblocked (its pools' blocks do not apply).
vmstringyesVM id.

SnapshotKeyResultView

TaskView.result of revert-snapshot (the key that is now current).

NameTypeRequiredDescription
snapshotinteger (int32)yesSnapshot key.

StartBackupRequest

Body of POST /v1/backup/points.

NameTypeRequiredDescription
fullboolean or nullTransfer every allocated area even when change tracking could give an incremental backup.
quiesceQuiesceModeView or null
vmIdstringyesVirtual machine: instance uuid or id (vm-N).

SubscriptionView

A webhook subscription (secret never returned).

NameTypeRequiredDescription
deadLettersinteger (int32)yesDead letters currently parked.
deliveredinteger (int64)yesSuccessful deliveries.
enabledbooleanyesEnabled.
eventTypesarray of stringyesEvent types delivered (empty = all).
failedinteger (int64)yesFailed deliveries (after all attempts).
idstringyesId.
labelsarray of stringyesLabels (alarm actions reference them).
maxAttemptsinteger (int32)yesDelivery attempts per event.
namestringyesName.
tenantstring or nullTenant filter (tenant-N): only that tenant's self-service events.
urlstringyesTarget URL.

Version 0.1.