Skip to main content
Cloud endpoint

Create Machine Configuration Version

POST/machine-configurations/{configurationId}/versions/

Path parameters

configurationId
Identifier used by the registered route.

Example request

application/json
{
  "version": 1,
  "playbookYaml": "- hosts: all\n  tasks:\n    - ansible.builtin.debug:\n        msg: ready\n"
}

Handler-checked behavior​

Create the configuration first, then use its returned ID as configurationId (the preceding example uses example-machine-setup). The path ID overrides any body machineConfigurationId. Send a positive version and valid playbookYaml; id is optional and status defaults to draft. The response is the stored configuration with its versions, not just the new version.

See the Cloud guide for related tasks and context.