POST /compute/instances/{instance_id}/reboot
Reboot a machine
Reboot a running virtual machine. Use when the machine is running but stuck. Before: get_compute_instance (state running, needs compute read access). Returns the machine in state rebooting. Scope: compute:power.
API key (Bearer), on the public API endpoint.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
instance_id | path | string · required | Machine id (vm_...). |
Responses
| Status | Description | Body |
|---|---|---|
2XX | Success: the JSON body the route returns (see the description for its fields). | object |
401 | Key missing or invalid | Error |
4XX | Refused: act on detail.code, then follow detail.next_action (404 not_found while the service is not open to the account). | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/compute/instances/<instance_id>/reboot" \
-H "Authorization: Bearer $GALON_API_KEY"