POST

인증

x-api-key
string
header
필수

헤더

Idempotency-Key
string

Replays the first result of a create; the same key with another body is 400 idempotency_key_reused, one while the first still runs 409 idempotency_key_in_use.

Required string length: 1 - 255

본문

application/json

Pool definition. name, provider, default_machine_provider_options, and max_total_machines are always required; provider_auth_secret_id is required unless provider_config names a provider tier the platform runs with its own credential (then omitting it uses the platform's); which default machine size and CPU and memory limits are required depends on the provider; Blaxel pools reject CPU fields.

name
string
필수

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

Required string length: 1 - 64
provider
enum<string>
필수
사용 가능한 옵션:
arker,
freestyle,
modal,
oci,
tenki,
unikraft
Minimum string length: 1
default_machine_cpu
integer<int32>
필수
필수 범위: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32>
필수
필수 범위: 1 <= x <= 2147483647
default_machine_provider_options
object
필수
max_total_machines
integer<int32>
필수

Deprecated, not enforced: how many machines a pool has no longer blocks new machines. Organization and project quotas over in-use machines (org resource limits max_in_use_pool_machines_per_project and max_in_use_pool_machines_per_org) govern capacity.

필수 범위: 0 <= x <= 2147483647
max_total_cpu
integer<int32>
필수

Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.

필수 범위: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32>
필수

Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.

필수 범위: 0 <= x <= 2147483647
max_machine_cpu
integer<int32>
필수
필수 범위: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32>
필수
필수 범위: 1 <= x <= 2147483647
description
string
default_machine_env
object

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

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_cwd
string
provider_config
object
provider_auth_secret_id
string

Secret ID (sec_...).

Pattern: ^sec_[a-z2-7]{26}$
runtime_protection_enabled
boolean
기본값:false

Whether BMA should delete a pool machine when its provider remains running after its daemon becomes inactive. Defaults to false when omitted.

min_machine_cpu
integer<int32>
필수 범위: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32>
필수 범위: 0 <= x <= 2147483647
delete_after_idle_minutes
integer<int32>

Idle minutes before deleting a machine from this pool. Omit to leave the pool default unset; a grant or agent source may still override it.

필수 범위: 5 <= x <= 2147483647
pause_after_idle_minutes
integer<int32>

Idle minutes before pausing a machine from this pool. A paused machine keeps its disk and resumes on the next command, terminal, desktop, or explicit resume. Exclusive with delete_after_idle_minutes; a grant or agent source delete policy still wins.

필수 범위: 5 <= x <= 2147483647
archive_after_paused_days
integer<int32>

Days a machine stays paused before it is archived. An archived machine is restored on the next access. Requires pause_after_idle_minutes.

필수 범위: 1 <= x <= 3650
delete_after_paused_days
integer<int32>

Days a machine stays paused before it is deleted, counted from when it paused; a resume ends the paused period and the next pause starts a new one. A session that receives input after its machine was deleted gets a fresh machine. Machines kept for a person (idle deletion disabled with 0 on their binding or grant) are never deleted by it. Requires pause_after_idle_minutes; cannot be combined with archive_after_paused_days.

필수 범위: 1 <= x <= 3650
metadata
object

User-supplied metadata stored on a machine, provided directly or copied from the machine pool that provisions it. A restriction of Metadata that leaves room for one reserved pair - BMA sets observed_platform on the machine to the platform reported by its daemon, so the key is reserved and at most 15 user pairs are accepted.

project_id
string

Creates the pool for this project: the pool is owned by and granted to it, and only to it, in the same write. The caller needs project.manage on the project instead of org.manage, and the pool's secret references (provider_auth_secret_id, default_machine_secret_env) must be ones a pool granted to the project already uses. Without it the pool is an organization pool granted to no project, which needs org.manage.

Pattern: ^proj_[a-z2-7]{26}$

응답

Success.

type
string
필수

Always machine_pool.

Allowed value: "machine_pool"
id
string
필수

Machine pool ID (mpo_...), or env_... for a cloud environment's own pool, which shares the environment's ID.

Pattern: ^(mpo|env)_[a-z2-7]{26}$
org_id
string
필수
Pattern: ^org_[a-z2-7]{26}$
name
string
필수

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

Required string length: 1 - 64
management_kind
enum<string>
필수

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.

사용 가능한 옵션:
tenant,
cluster
description
string
필수
provider
string
필수
default_machine_cpu
integer<int32> | null
필수
필수 범위: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32> | null
필수
필수 범위: 1 <= x <= 2147483647
default_machine_env
object
필수

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
필수

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
필수
default_cwd
string
필수
provider_config
object
필수
runtime_protection_enabled
boolean
필수

When true, BMA removes a machine of this pool whose provider instance is still up once its daemon has gone inactive.

max_total_machines
integer<int32>
필수

Deprecated, not enforced: how many machines a pool has no longer blocks new machines. Organization and project quotas over in-use machines (org resource limits max_in_use_pool_machines_per_project and max_in_use_pool_machines_per_org) govern capacity.

필수 범위: 0 <= x <= 2147483647
max_total_cpu
integer<int32> | null
필수

Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.

필수 범위: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32> | null
필수

Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.

필수 범위: 0 <= x <= 2147483647
min_machine_cpu
integer<int32> | null
필수
필수 범위: 0 <= x <= 2147483647
min_machine_memory_mb
integer<int32> | null
필수
필수 범위: 0 <= x <= 2147483647
max_machine_cpu
integer<int32> | null
필수
필수 범위: 1 <= x <= 2147483647
max_machine_memory_mb
integer<int32> | null
필수
필수 범위: 1 <= x <= 2147483647
delete_after_idle_minutes
integer<int32> | null
필수

Minutes a machine of this pool may sit idle before it is deleted; null when the pool sets no default.

필수 범위: 5 <= x <= 2147483647
pause_after_idle_minutes
integer<int32> | null
필수

Idle minutes before pausing a machine from this pool, or null when the pool does not pause idle machines.

필수 범위: 5 <= x <= 2147483647
archive_after_paused_days
integer<int32> | null
필수

Days a machine stays paused before it is archived, or null when the pool does not archive.

필수 범위: 1 <= x <= 3650
delete_after_paused_days
integer<int32> | null
필수

Days a machine stays paused before it is deleted, counted from when it paused, or null when the pool keeps paused machines.

필수 범위: 1 <= x <= 3650
metadata
object
필수

Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters.

created_at
string<date-time>
필수
updated_at
string<date-time>
필수
provider_auth_secret_id
string

The organization's vault credential the pool's provider authenticates with, an opaque ID (a migrated one keeps its legacy sec_ ID); absent when the pool uses the platform's credential of its provider tier.

Pattern: ^[A-Za-z0-9_-]{1,128}$
usage
object

Quota currently consumed by the pool's machines. Present only on responses of the list and get operations.