mgc.compute.create_instance ​
Create a Magalu Cloud virtual machine (via LTIP).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-mgc |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | CloudConnection UUID for the target Magalu account. |
workflow_run_id | string | No | — | Engine DAG run ID stamped onto child steps. |
name | string | Yes | — | Desired VM name. |
cpu | integer | No | — | vCPU count (used to select a flavor when machine_type omitted). |
memory_gb | integer | No | — | RAM in GB (used to select a flavor). |
image | string | No | — | OS image name (defaults to the Magalu Ubuntu LTS image). |
machine_type | string | No | — | Explicit Magalu flavor slug (e.g. BV2-2-20); overrides cpu/memory. |
network_id | string | No | — | VPC id to attach (required for multi-network accounts). |
ssh_key_name | string | No | — | Name of an SSH key already registered to the account. |
startup_script | string | No | — | cloud-init user-data. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | CloudConnection UUID echoed from input. |
instance_uuid | string | No | — | Provider instance id assigned by Magalu. |
name | string | No | — | Instance name. |
status | string | No | — | LTIP-normalized instance status. |
instance_type | string | No | — | Magalu machine type / flavor. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | string | No | — | DAG layer where failure occurred. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "mgc.compute.create_instance",
"initial_data": {
"connection_uuid": "value",
"name": "value"
}
}