Get started

Templates

Provisioning templates used during node boot and configuration.


List Templates

GET /templates

List all available templates with their names and descriptions.

Response
[
  {
    "name": "network-config",
    "description": "Network interface configuration for worker nodes"
  }
]

Get Template Source

GET /templates/render/{templateName}

Get the raw source of a template before rendering.

Get Rendered Template

GET /templates/rendered/{templateName} Public

Get a fully rendered template. No authentication required.

Update Template

PUT /templates/{templateName}

Replace the source content of a template.

Update Template Settings

PUT /templates/{templateName}/settings

Update settings for a template.

Request body

path string
File path on the target node
postHook string
Command to run after the template is applied

Template Context

POST /templates/context

Preview the context variables available for template rendering on a given node.

Request body

nodeId UUID required
Target node ID
kinds string[] required
Template kinds to include in context