Machine Pools

Get machine pool

Changed on

Returns one machine pool's configuration and current usage: provider, default machine settings, CPU, memory, and machine-count limits, and idle deletion policy.

get/orgs/{orgID}/machine-pools/{poolID}

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session

Path parameters

orgID, string required

Organization ID (org_...).

poolID, string required

Machine pool ID (mpo_...).

Response

Machine pool.

MachinePool required
id, string required

Machine pool ID (mpo_...).

org_id, string required
name, string required

Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

management_kind, 'tenant' | 'cluster' required

Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.

description, string required
provider, string required
default_machine_cpu, integer nullable required
default_machine_memory_mb, integer nullable required
default_machine_env, object required

Default environment for pool machines. A machine's environment, including resolved secret_env values, is applied to the provider machine at provisioning, so the provider_options startup_script and the daemon run with it, and is resolved again for each process at launch.

default_machine_secret_env, object required

Default secret environment for pool machines, mapping env names to generic secret references. References are resolved to secret values wherever the machine environment is applied.

default_machine_provider_options, object required
default_cwd, string required
provider_auth_secret_id, string

Secret ID (sec_...).

provider_config, object required
runtime_protection_enabled, boolean required

Whether Omnara deletes this pool's machines when the provider remains running after the daemon becomes inactive.

max_total_machines, integer required
max_total_cpu, integer nullable required
max_total_memory_mb, integer nullable required
min_machine_cpu, integer nullable required
min_machine_memory_mb, integer nullable required
max_machine_cpu, integer nullable required
max_machine_memory_mb, integer nullable required
delete_after_idle_minutes, integer nullable required

Idle minutes before deleting a machine from this pool, or null when the pool default is unset.

metadata, Metadata required

Arbitrary key-value labels stored with the resource.

created_at, string date-time required
updated_at, string date-time required
usage, MachinePoolUsage

Current quota-consuming usage. Populated when the machine pool is returned by the list or get endpoint.

Changes

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    • info

      added the optional property current_digest to the response with the status

    156 more changes in this revision