When to use this runbook
Use before creating, updating, starting, or scaling a Container Group, and before configuring Job Queue autoscaling.When not to use it
Do not use static examples to answer whether a GPU, quota, country, or priority is currently available. Do not use this runbook to create resources.Required inputs
SALAD_API_KEYas a secret environment variable.- Candidate
SALAD_ORGANIZATIONandSALAD_PROJECTnames from the user, a trusted deployment file, or the Portal. - Required CPU cores, RAM in MB, storage in bytes, replica count, country constraints, and priority.
- For GPU workloads, a required GPU model/class or workload requirement. If minimum VRAM is mandatory, obtain a trusted mapping to an API-returned GPU class; the current public schema does not expose a VRAM field.
Authoritative sources
Also read Availability,
Priority Pricing, and
Quotas for product context.
Dynamic values to retrieve
container_replicas_quotaandcontainer_replicas_usedfrom the live quota response.- GPU class UUIDs, names, priority prices, and current minimum/maximum vCPU, RAM, and storage values.
- Priority-specific GPU counts or CPU counts for the exact resource and
country_codesfilter. - Existing Container Group names in the project and the target’s current representation, if present.
Preflight checks
- Require candidate organization and project names. The public spec has no operation to enumerate accessible organizations or projects.
- Call
get_quotas. A successful response validates the candidate organization in the caller’s current access scope. - Call
list_container_groups. A successful response validates the candidate project and returns the exact existing Container Group names in itsitemscollection. The current operation defines no pagination parameters. - Confirm
requested replicas <= quota - used, accounting for current target capacity and autoscaler maximum where relevant. - For GPU work, call
list_gpu_classes; select UUIDs only from that response, then callget_gpu_availabilitywith those UUIDs and exact CPU, memory, storage, and country constraints. - For CPU-only work, call
get_cpu_availabilitywith the exact constraints. - Confirm requested values meet current schema bounds.
replicasis 0–500; GPU class IDs are UUIDs; memory is MB; storage is bytes; priority enum values arehigh,medium,low, andbatch. - Confirm any country restriction uses the
country_codesfield. The current Container Group schema has no separate region field.
Procedure
Set the non-secret scope variables without echoingSALAD_API_KEY:
list_gpu_classes, choose only UUIDs returned for this organization, and submit the
exact planned requirements to get_gpu_availability:
country_codes only when the user requires a
location constraint.
Decision rules
The CPU-only product documentation describes CPU groups as Lowest priority, whose API enum is
batch. Do not translate
human labels into other enum values.
Expected states and responses
Successful reads return200. GPU availability exposes available_gpu_high, available_gpu_medium,
available_gpu_low, available_gpu_batch, and on_call_gpu when present. CPU availability exposes
available_cpu_batch and on_call_cpu when present. Treat absent optional properties as unknown, not zero.
Retry behavior
Reads and availability checks may be retried for transient transport,429, or 5xx failures within a bounded
attempt/time budget. Honor Retry-After when present. Do not retry an unchanged invalid request or authorization error.