f-34: doc: update api doc #34
All checks were successful
Release Pipeline / set-release-target (push) Successful in 1s
Release Pipeline / upload-assets (dnsmasq@.service, systemd/dnsmasq@.service) (push) Successful in 3s
Release Pipeline / upload-assets (metadata@.service, systemd/metadata@.service) (push) Successful in 3s
Release Pipeline / build (agent, amd64, linux) (push) Successful in 0s
Release Pipeline / build (metadata, amd64, linux) (push) Successful in 0s
Release Pipeline / upload-assets (agent.service, systemd/agent.service) (push) Successful in 3s
Release Pipeline / upload-assets (run-dnsmasq-in-netns.sh, scripts/run-dnsmasq-in-netns.sh) (push) Successful in 3s
Release Pipeline / checksums (push) Successful in 4s
Release Pipeline / release (push) Successful in 11s
Release Pipeline / publish (push) Successful in 0s
Release Pipeline / build (push) Successful in 1m33s
All checks were successful
Release Pipeline / set-release-target (push) Successful in 1s
Release Pipeline / upload-assets (dnsmasq@.service, systemd/dnsmasq@.service) (push) Successful in 3s
Release Pipeline / upload-assets (metadata@.service, systemd/metadata@.service) (push) Successful in 3s
Release Pipeline / build (agent, amd64, linux) (push) Successful in 0s
Release Pipeline / build (metadata, amd64, linux) (push) Successful in 0s
Release Pipeline / upload-assets (agent.service, systemd/agent.service) (push) Successful in 3s
Release Pipeline / upload-assets (run-dnsmasq-in-netns.sh, scripts/run-dnsmasq-in-netns.sh) (push) Successful in 3s
Release Pipeline / checksums (push) Successful in 4s
Release Pipeline / release (push) Successful in 11s
Release Pipeline / publish (push) Successful in 0s
Release Pipeline / build (push) Successful in 1m33s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
e2fbb5fb7a
commit
8078da0bda
1 changed files with 33 additions and 5 deletions
|
|
@ -427,11 +427,8 @@ components:
|
|||
type: integer
|
||||
description: Number of vCPUs (default 1)
|
||||
example: 2
|
||||
password:
|
||||
type: string
|
||||
sshkey:
|
||||
type: string
|
||||
example: "ssh-ed25519 AAAA..."
|
||||
metadata:
|
||||
$ref: "#/components/schemas/VMMetadata"
|
||||
interfaces:
|
||||
type: array
|
||||
minItems: 1
|
||||
|
|
@ -447,6 +444,37 @@ components:
|
|||
description: Boot with UEFI firmware (OVMF). Defaults to false (SeaBIOS).
|
||||
example: false
|
||||
|
||||
VMMetadata:
|
||||
type: object
|
||||
description: >
|
||||
cloud-init inputs for this VM. Every field is optional. Documents not
|
||||
supplied here fall back to the agent's built-in templates; a document
|
||||
supplied as an empty string is served empty, which is not the same
|
||||
thing.
|
||||
properties:
|
||||
password:
|
||||
type: string
|
||||
description: >
|
||||
Password *hash* for the syonad account, as expected by the
|
||||
cloud-config `passwd` key (e.g. `$6$...`) — not a plaintext
|
||||
password. When omitted, the account is created locked
|
||||
(`lock_passwd: true`); when neither password nor sshkey is given,
|
||||
no account is created at all.
|
||||
example: "$6$rounds=4096$saltsalt$hash..."
|
||||
sshkey:
|
||||
type: string
|
||||
description: Public SSH key added to the syonad account. Sent as-is, not encoded.
|
||||
example: "ssh-ed25519 AAAA..."
|
||||
user_data:
|
||||
type: string
|
||||
format: byte
|
||||
description: >
|
||||
cloud-init user-data, **base64-encoded**. Encoding keeps multi-line
|
||||
documents out of JSON escaping and allows gzip+base64 payloads.
|
||||
Invalid base64 is rejected with 400 rather than silently serving an
|
||||
empty document. The agent never interprets this content.
|
||||
example: "I2Nsb3VkLWNvbmZpZwpwYWNrYWdlczoKICAtIG5naW54Cg=="
|
||||
|
||||
VMInterface:
|
||||
type: object
|
||||
required: [subnet, ip, primary]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue