Kvindo™ Cloud Docs


Language

VM Command Schedule

A Command Schedule runs a shell command inside a VM on a recurring schedule — for example a nightly cleanup or a periodic report. It is a standalone resource: attach it to one or more VMs via the VM's commandScheduleIds.

Key concepts

• Schedule — a cron expression (e.g. 0 4 * * * = daily at 04:00) plus its format

• Command — the shell command executed in the VM, with a timeout in seconds

• Attachment — reference it from one or more VMs' commandScheduleIds; the action itself has no target VM field

• Enabled — toggle the action on or off without deleting it

Parameters
UI Name API / kc name Terraform name Optional Format Default Is read only Description
Enabled spec.enabled spec.enabled No boolean (nullable) — No Whether the action is active
Schedule Format spec.scheduleFormat spec.schedule_format No string (nullable) cron No Format of the schedule expression. Only cron is currently accepted
Schedule spec.schedule spec.schedule No string (nullable) — No The schedule expression, e.g. cron 0 4 * * *
Command spec.command spec.command Yes string (nullable) — No Shell command to run inside the VM
Command timeout spec.commandTimeoutSeconds spec.command_timeout_seconds No integer (nullable) — seconds — No The command is aborted if it runs longer than this. Valid range: 1-3600 seconds
Runs status.runs status.runs — array of objects — Yes The last 10 runs of this schedule, newest first. Each run includes returnCode/output/durationMs
Examples

A nightly cleanup command; attach it to a VM via commandScheduleIds (command_schedule_ids in Terraform).

Terraform

Python SDK

kc CLI


Related pages

Resource docs

More in this section

Reference

An unhandled error has occurred. Reload 🗙