API: document VM's "startup_script" (#358)

This commit is contained in:
Nikolay Edigaryev 2025-10-07 13:26:47 +02:00 committed by GitHub
parent 386cde7277
commit 1df191c3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

View File

@ -506,6 +506,23 @@ components:
type: string
description: SSH password to use when connecting to a VM
default: admin
startup_script:
type: object
description: Startup script to run after the VM boots and becomes accessible via SSH
properties:
script_content:
type: string
env:
type: object
additionalProperties:
type: string
example:
script_content: |
#!/bin/zsh
echo $GREETING
env:
GREETING: "Hello, World!"
restart_policy:
type: string
description: |