POST /compute/quotes
Quote a machine
Price a virtual machine before creating it. Use when before create_compute_instance (which needs compute write access); the quote lasts 30 minutes. Before: list_compute_flavors and list_compute_images (they need compute read access). Returns a quote (cq_ id) with hourly prices running and stopped and a monthly estimate. Scope: compute:quote.
API key (Bearer), on the public API endpoint.
Request body
application/json
| Field | Type | Description |
|---|---|---|
flavor | "1vcpu-1gb" | "2vcpu-4gb" | "4vcpu-8gb" · required | Machine size: vCPU and memory (disk included). |
image | "ubuntu-24.04" | "debian-12" · required | Operating system image. |
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/quotes" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"flavor": "1vcpu-1gb", "image": "ubuntu-24.04"}'