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
Option 1
Option 2
Option 3
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
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.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"BMA Developer Docs","description":"BMA (BeeOS Managed Agents): an open-source agent runtime. Any brain × any hands, computer use, remote desktop, terminal, a replaceable scheduler and a durable event log, with the Anthropic Managed Agents API under /v1, the official SDKs and the Executor Protocol.","colors":{"primary":"#F97316","light":"#FB923C","dark":"#C2410C"},"logo":{"light":"/logo/light.svg","dark":"/logo/dark.svg","href":"/"},"favicon":"/favicon.svg","api":{"playground":{"display":"simple"},"examples":{"languages":["curl","python","javascript","go"]}},"appearance":{"default":"system"},"navbar":{"links":[{"href":"https://github.com/beeos-ai/bma-sdk","label":"bma-sdk"},{"href":"https://github.com/beeos-ai/bma-executor-sdk","label":"bma-executor-sdk"}]},"footer":{"socials":{"github":"https://github.com/beeos-ai"}},"fonts":{"heading":{"family":"Inter","weight":600},"body":{"family":"Inter","weight":400}},"integrations":{"telemetry":{"enabled":false}},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh","href":"zh"},{"language":"zh-Hant","href":"zh-Hant"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"}]}},"deployment":{"deploymentMetadataValue":{"hasAudioNarration":false,"customDomains":[],"gitSource":{"type":"github","owner":"local","repo":"local","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"local","isBase":true},"buildId":"local","clientVersion":"0.0.4291"},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false,"isLoggedInCli":false,"mintExport":{}},"customCss":[]}
{"page":{"pagePath":"zh/api-reference/endpoints/machine-pools/create-a-machine-pool","slug":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool","pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","description":"","href":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool","title":"Create a machine pool"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","description":"","href":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool","title":"Create a machine pool"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createMachinePool","tags":["Machine pools"],"summary":"Create a machine pool","parameters":["eb363927-a675-4f0e-8ece-776a2376c760"],"requestBody":"74d9cc0c-c5f7-4234-9cb8-5dbbd340acce","responses":{"200":"b814f4d8-34cc-44d4-9fb1-30a6d2f32e7c","4XX":"3d3ec78c-12d4-45c6-b5dd-b89423ce4e92","5XX":"547d1d27-f0ec-4181-b2cd-f83dde6adcdf"},"x-bma-extension":true,"x-codeSamples":[{"lang":"bash","label":"curl","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/machine_pools\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{}'"},{"lang":"python","label":"Python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.machine_pools.create()\nprint(result)\n"},{"lang":"typescript","label":"TypeScript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.machinePools.create();\nconsole.log(result);\n"},{"lang":"go","label":"Go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/machine_pools\",\n\tmap[string]any{}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"lang":"bash","label":"CLI","source":"bma machine-pools create"}],"method":"post","type":"path","servers":["3e522fc8-a903-42cc-a27e-399bf105f073","cf778fef-821a-4466-b6df-c830bdb3a991"],"security":["35a509a8-c988-4d95-81ab-343ffefc8de2","a0940cc2-d177-46f3-9b14-99df7cd9caf5"],"path":"/v1/machine_pools","baseUrlOptions":["https://api.beeos.ai","http://127.0.0.1:58080"],"title":"Create a machine pool","description":"","codeSamples":[{"label":"curl","lang":"bash","source":"curl -sS -X POST \"$BMA_BASE_URL/v1/machine_pools\" \\\n -H \"x-api-key: $BMA_API_KEY\" \\\n -H \"bma-workspace-id: $BMA_PROJECT_ID\" \\\n -H \"Idempotency-Key: $(uuidgen)\" \\\n -H \"content-type: application/json\" \\\n -d '{}'"},{"label":"Python","lang":"python","source":"from bma_sdk import Bma\n\nclient = Bma() # BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nresult = client.beta.machine_pools.create()\nprint(result)\n"},{"label":"TypeScript","lang":"typescript","source":"import { BmaClient } from \"@beeos-ai/bma-sdk\";\n\nconst client = new BmaClient(); // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\n\nconst result = await client.beta.machinePools.create();\nconsole.log(result);\n"},{"label":"Go","lang":"go","source":"import (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"net/http\"\n\n\tbmasdk \"github.com/beeos-ai/bma-sdk/v4\"\n)\n\nclient := bmasdk.NewClient() // BMA_API_KEY, BMA_BASE_URL, BMA_PROJECT_ID\nvar res map[string]any\nerr := client.Execute(context.TODO(), http.MethodPost, \"v1/machine_pools\",\n\tmap[string]any{}, \u0026res)\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Println(res)\n"},{"label":"CLI","lang":"bash","source":"bma machine-pools create"}],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"eb363927-a675-4f0e-8ece-776a2376c760":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":1,"maxLength":255,"isRequired":false,"description":"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`.","uniqueKey":"","typeLabel":"string"},"description":"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`."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"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.","required":["provider","default_machine_cpu","default_machine_memory_mb","max_total_cpu","max_total_memory_mb","max_machine_cpu","max_machine_memory_mb","name","default_machine_provider_options","max_total_machines"],"properties":{"name":{"type":"string","minLength":1,"maxLength":64,"x-bma-unicode-normalization":"NFC","description":"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.","isRequired":true,"uniqueKey":"oneOf.0.name","typeLabel":"string"},"provider":{"type":"string","minLength":1,"enum":["arker","freestyle","modal","oci","tenki","unikraft"],"isRequired":true,"uniqueKey":"oneOf.0.provider","typeLabel":"enum\u003cstring>"},"default_machine_cpu":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.default_machine_cpu","typeLabel":"integer\u003cint32>"},"default_machine_memory_mb":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.default_machine_memory_mb","typeLabel":"integer\u003cint32>"},"default_machine_provider_options":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.0.default_machine_provider_options","typeLabel":"object"},"max_total_machines":{"description":"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.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"oneOf.0.max_total_machines","typeLabel":"integer\u003cint32>"},"max_total_cpu":{"type":"integer","description":"Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.","format":"int32","maximum":2147483647,"minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.max_total_cpu","typeLabel":"integer\u003cint32>"},"max_total_memory_mb":{"type":"integer","description":"Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.","format":"int32","maximum":2147483647,"minimum":0,"isRequired":true,"uniqueKey":"oneOf.0.max_total_memory_mb","typeLabel":"integer\u003cint32>"},"max_machine_cpu":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.max_machine_cpu","typeLabel":"integer\u003cint32>"},"max_machine_memory_mb":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.max_machine_memory_mb","typeLabel":"integer\u003cint32>"},"description":{"type":"string","uniqueKey":"oneOf.0.description","typeLabel":"string"},"default_machine_env":{"description":"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.","type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.0.default_machine_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.default_machine_env","typeLabel":"object"},"default_machine_secret_env":{"description":"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.","type":"object","additionalProperties":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.0.default_machine_secret_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.default_machine_secret_env","typeLabel":"object"},"default_cwd":{"type":"string","uniqueKey":"oneOf.0.default_cwd","typeLabel":"string"},"provider_config":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.0.provider_config","typeLabel":"object"},"provider_auth_secret_id":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.0.provider_auth_secret_id","typeLabel":"string"},"runtime_protection_enabled":{"description":"Whether BMA should delete a pool machine when its provider remains running after its daemon becomes inactive. Defaults to false when omitted.","type":"boolean","default":false,"uniqueKey":"oneOf.0.runtime_protection_enabled","typeLabel":"boolean"},"min_machine_cpu":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.0.min_machine_cpu","typeLabel":"integer\u003cint32>"},"min_machine_memory_mb":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.0.min_machine_memory_mb","typeLabel":"integer\u003cint32>"},"delete_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.0.delete_after_idle_minutes","typeLabel":"integer\u003cint32>"},"pause_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.0.pause_after_idle_minutes","typeLabel":"integer\u003cint32>"},"archive_after_paused_days":{"description":"Days a machine stays paused before it is archived. An archived machine is restored on the next access. Requires pause_after_idle_minutes.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.0.archive_after_paused_days","typeLabel":"integer\u003cint32>"},"delete_after_paused_days":{"description":"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.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.0.delete_after_paused_days","typeLabel":"integer\u003cint32>"},"metadata":{"type":"object","description":"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.","maxProperties":15,"propertyNames":{"minLength":1,"maxLength":64},"not":{"required":["observed_platform"]},"additionalProperties":{"type":"string","maxLength":512,"uniqueKey":"oneOf.0.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.0.metadata","typeLabel":"object"},"project_id":{"type":"string","description":"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}$","uniqueKey":"oneOf.0.project_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"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.","required":["provider","max_total_cpu","max_total_memory_mb","max_machine_cpu","max_machine_memory_mb","name","default_machine_provider_options","max_total_machines"],"properties":{"name":{"type":"string","minLength":1,"maxLength":64,"x-bma-unicode-normalization":"NFC","description":"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"provider":{"type":"string","minLength":1,"enum":["boxd","createos","daytona","e2b","superserve"],"isRequired":true,"uniqueKey":"oneOf.1.provider","typeLabel":"enum\u003cstring>"},"default_machine_provider_options":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.1.default_machine_provider_options","typeLabel":"object"},"max_total_machines":{"description":"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.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"oneOf.1.max_total_machines","typeLabel":"integer\u003cint32>"},"max_total_cpu":{"type":"integer","description":"Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.","format":"int32","maximum":2147483647,"minimum":0,"isRequired":true,"uniqueKey":"oneOf.1.max_total_cpu","typeLabel":"integer\u003cint32>"},"max_total_memory_mb":{"type":"integer","description":"Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.","format":"int32","maximum":2147483647,"minimum":0,"isRequired":true,"uniqueKey":"oneOf.1.max_total_memory_mb","typeLabel":"integer\u003cint32>"},"max_machine_cpu":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.max_machine_cpu","typeLabel":"integer\u003cint32>"},"max_machine_memory_mb":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.max_machine_memory_mb","typeLabel":"integer\u003cint32>"},"description":{"type":"string","uniqueKey":"oneOf.1.description","typeLabel":"string"},"default_machine_cpu":{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"uniqueKey":"oneOf.1.default_machine_cpu","typeLabel":"integer\u003cint32>"},"default_machine_memory_mb":{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"uniqueKey":"oneOf.1.default_machine_memory_mb","typeLabel":"integer\u003cint32>"},"default_machine_env":{"description":"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.","type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.1.default_machine_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.default_machine_env","typeLabel":"object"},"default_machine_secret_env":{"description":"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.","type":"object","additionalProperties":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.1.default_machine_secret_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.default_machine_secret_env","typeLabel":"object"},"default_cwd":{"type":"string","uniqueKey":"oneOf.1.default_cwd","typeLabel":"string"},"provider_config":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.1.provider_config","typeLabel":"object"},"provider_auth_secret_id":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.1.provider_auth_secret_id","typeLabel":"string"},"runtime_protection_enabled":{"description":"Whether BMA should delete a pool machine when its provider remains running after its daemon becomes inactive. Defaults to false when omitted.","type":"boolean","default":false,"uniqueKey":"oneOf.1.runtime_protection_enabled","typeLabel":"boolean"},"min_machine_cpu":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.1.min_machine_cpu","typeLabel":"integer\u003cint32>"},"min_machine_memory_mb":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.1.min_machine_memory_mb","typeLabel":"integer\u003cint32>"},"delete_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.1.delete_after_idle_minutes","typeLabel":"integer\u003cint32>"},"pause_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.1.pause_after_idle_minutes","typeLabel":"integer\u003cint32>"},"archive_after_paused_days":{"description":"Days a machine stays paused before it is archived. An archived machine is restored on the next access. Requires pause_after_idle_minutes.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.1.archive_after_paused_days","typeLabel":"integer\u003cint32>"},"delete_after_paused_days":{"description":"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.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.1.delete_after_paused_days","typeLabel":"integer\u003cint32>"},"metadata":{"type":"object","description":"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.","maxProperties":15,"propertyNames":{"minLength":1,"maxLength":64},"not":{"required":["observed_platform"]},"additionalProperties":{"type":"string","maxLength":512,"uniqueKey":"oneOf.1.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.1.metadata","typeLabel":"object"},"project_id":{"type":"string","description":"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}$","uniqueKey":"oneOf.1.project_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"},{"type":"object","description":"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.","required":["provider","default_machine_memory_mb","max_total_memory_mb","max_machine_memory_mb","name","default_machine_provider_options","max_total_machines"],"properties":{"name":{"type":"string","minLength":1,"maxLength":64,"x-bma-unicode-normalization":"NFC","description":"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.","isRequired":true,"uniqueKey":"oneOf.2.name","typeLabel":"string"},"provider":{"type":"string","minLength":1,"enum":["blaxel"],"isRequired":true,"uniqueKey":"oneOf.2.provider","typeLabel":"enum\u003cstring>"},"default_machine_memory_mb":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.2.default_machine_memory_mb","typeLabel":"integer\u003cint32>"},"default_machine_provider_options":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"oneOf.2.default_machine_provider_options","typeLabel":"object"},"max_total_machines":{"description":"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.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"oneOf.2.max_total_machines","typeLabel":"integer\u003cint32>"},"max_total_memory_mb":{"type":"integer","description":"Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.","format":"int32","maximum":2147483647,"minimum":0,"isRequired":true,"uniqueKey":"oneOf.2.max_total_memory_mb","typeLabel":"integer\u003cint32>"},"max_machine_memory_mb":{"type":"integer","format":"int32","maximum":2147483647,"minimum":1,"isRequired":true,"uniqueKey":"oneOf.2.max_machine_memory_mb","typeLabel":"integer\u003cint32>"},"description":{"type":"string","uniqueKey":"oneOf.2.description","typeLabel":"string"},"default_machine_cpu":{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"uniqueKey":"oneOf.2.default_machine_cpu","typeLabel":"integer\u003cint32>"},"default_machine_env":{"description":"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.","type":"object","additionalProperties":{"type":"string","uniqueKey":"oneOf.2.default_machine_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.2.default_machine_env","typeLabel":"object"},"default_machine_secret_env":{"description":"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.","type":"object","additionalProperties":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.2.default_machine_secret_env.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.2.default_machine_secret_env","typeLabel":"object"},"default_cwd":{"type":"string","uniqueKey":"oneOf.2.default_cwd","typeLabel":"string"},"provider_config":{"type":"object","additionalProperties":true,"uniqueKey":"oneOf.2.provider_config","typeLabel":"object"},"provider_auth_secret_id":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"oneOf.2.provider_auth_secret_id","typeLabel":"string"},"runtime_protection_enabled":{"description":"Whether BMA should delete a pool machine when its provider remains running after its daemon becomes inactive. Defaults to false when omitted.","type":"boolean","default":false,"uniqueKey":"oneOf.2.runtime_protection_enabled","typeLabel":"boolean"},"max_total_cpu":{"description":"Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.2.max_total_cpu","typeLabel":"integer\u003cint32>"},"min_machine_cpu":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.2.min_machine_cpu","typeLabel":"integer\u003cint32>"},"min_machine_memory_mb":{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"uniqueKey":"oneOf.2.min_machine_memory_mb","typeLabel":"integer\u003cint32>"},"max_machine_cpu":{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"uniqueKey":"oneOf.2.max_machine_cpu","typeLabel":"integer\u003cint32>"},"delete_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.2.delete_after_idle_minutes","typeLabel":"integer\u003cint32>"},"pause_after_idle_minutes":{"description":"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.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"uniqueKey":"oneOf.2.pause_after_idle_minutes","typeLabel":"integer\u003cint32>"},"archive_after_paused_days":{"description":"Days a machine stays paused before it is archived. An archived machine is restored on the next access. Requires pause_after_idle_minutes.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.2.archive_after_paused_days","typeLabel":"integer\u003cint32>"},"delete_after_paused_days":{"description":"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.","type":"integer","format":"int32","minimum":1,"maximum":3650,"uniqueKey":"oneOf.2.delete_after_paused_days","typeLabel":"integer\u003cint32>"},"metadata":{"type":"object","description":"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.","maxProperties":15,"propertyNames":{"minLength":1,"maxLength":64},"not":{"required":["observed_platform"]},"additionalProperties":{"type":"string","maxLength":512,"uniqueKey":"oneOf.2.metadata.additionalProperties","typeLabel":"string"},"uniqueKey":"oneOf.2.metadata","typeLabel":"object"},"project_id":{"type":"string","description":"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}$","uniqueKey":"oneOf.2.project_id","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.2","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","default_machine_cpu":1073741824,"default_machine_memory_mb":1073741824,"default_machine_provider_options":{},"max_total_machines":1073741823,"max_total_cpu":1073741823,"max_total_memory_mb":1073741823,"max_machine_cpu":1073741824,"max_machine_memory_mb":1073741824,"description":"\u003cstring>","default_machine_env":{},"default_machine_secret_env":{},"default_cwd":"\u003cstring>","provider_config":{},"provider_auth_secret_id":"\u003cstring>","runtime_protection_enabled":false,"min_machine_cpu":1073741823,"min_machine_memory_mb":1073741823,"delete_after_idle_minutes":1073741826,"pause_after_idle_minutes":1073741826,"archive_after_paused_days":1825,"delete_after_paused_days":1825,"metadata":{},"project_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b814f4d8-34cc-44d4-9fb1-30a6d2f32e7c":{"description":"Success.","content":{"application/json":{"schema":{"type":"object","required":["type","id","org_id","name","management_kind","description","provider","default_machine_cpu","default_machine_memory_mb","default_machine_env","default_machine_secret_env","default_machine_provider_options","default_cwd","provider_config","runtime_protection_enabled","max_total_machines","max_total_cpu","max_total_memory_mb","min_machine_cpu","min_machine_memory_mb","max_machine_cpu","max_machine_memory_mb","delete_after_idle_minutes","pause_after_idle_minutes","archive_after_paused_days","delete_after_paused_days","metadata","created_at","updated_at"],"properties":{"type":{"type":"string","const":"machine_pool","description":"Always `machine_pool`.","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"id":{"type":"string","pattern":"^(mpo|env)_[a-z2-7]{26}$","description":"Machine pool ID (mpo_...), or env_... for a cloud environment's own pool, which shares the environment's ID.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"org_id":{"type":"string","pattern":"^org_[a-z2-7]{26}$","isRequired":true,"uniqueKey":"org_id","typeLabel":"string"},"name":{"type":"string","minLength":1,"maxLength":64,"x-bma-unicode-normalization":"NFC","description":"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"management_kind":{"type":"string","description":"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.","enum":["tenant","cluster"],"isRequired":true,"uniqueKey":"management_kind","typeLabel":"enum\u003cstring>"},"description":{"type":"string","isRequired":true,"uniqueKey":"description","typeLabel":"string"},"provider":{"type":"string","isRequired":true,"uniqueKey":"provider","typeLabel":"string"},"default_machine_cpu":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"default_machine_cpu.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"default_machine_cpu.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"default_machine_cpu","typeLabel":"integer\u003cint32> | null"},"default_machine_memory_mb":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"default_machine_memory_mb.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"default_machine_memory_mb.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"default_machine_memory_mb","typeLabel":"integer\u003cint32> | null"},"default_machine_env":{"description":"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.","type":"object","additionalProperties":{"type":"string","uniqueKey":"default_machine_env.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"default_machine_env","typeLabel":"object"},"default_machine_secret_env":{"description":"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.","type":"object","additionalProperties":{"description":"Secret ID (sec_...).","type":"string","pattern":"^sec_[a-z2-7]{26}$","uniqueKey":"default_machine_secret_env.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"default_machine_secret_env","typeLabel":"object"},"default_machine_provider_options":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"default_machine_provider_options","typeLabel":"object"},"default_cwd":{"type":"string","isRequired":true,"uniqueKey":"default_cwd","typeLabel":"string"},"provider_config":{"type":"object","additionalProperties":true,"isRequired":true,"uniqueKey":"provider_config","typeLabel":"object"},"runtime_protection_enabled":{"description":"When true, BMA removes a machine of this pool whose provider instance is still up once its daemon has gone inactive.","type":"boolean","isRequired":true,"uniqueKey":"runtime_protection_enabled","typeLabel":"boolean"},"max_total_machines":{"description":"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.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_total_machines","typeLabel":"integer\u003cint32>"},"max_total_cpu":{"oneOf":[{"description":"Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_total_cpu.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Deprecated, not enforced: organization and project in-use machine CPU quotas govern capacity.","type":"null","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_total_cpu.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_total_cpu","typeLabel":"integer\u003cint32> | null"},"max_total_memory_mb":{"oneOf":[{"description":"Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.","type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_total_memory_mb.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Deprecated, not enforced: organization and project in-use machine memory quotas govern capacity.","type":"null","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_total_memory_mb.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_total_memory_mb","typeLabel":"integer\u003cint32> | null"},"min_machine_cpu":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"min_machine_cpu.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"min_machine_cpu.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"min_machine_cpu","typeLabel":"integer\u003cint32> | null"},"min_machine_memory_mb":{"oneOf":[{"type":"integer","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"min_machine_memory_mb.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":0,"maximum":2147483647,"isRequired":true,"uniqueKey":"min_machine_memory_mb.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"min_machine_memory_mb","typeLabel":"integer\u003cint32> | null"},"max_machine_cpu":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_machine_cpu.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_machine_cpu.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_machine_cpu","typeLabel":"integer\u003cint32> | null"},"max_machine_memory_mb":{"oneOf":[{"type":"integer","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_machine_memory_mb.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","minimum":1,"maximum":2147483647,"isRequired":true,"uniqueKey":"max_machine_memory_mb.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"max_machine_memory_mb","typeLabel":"integer\u003cint32> | null"},"delete_after_idle_minutes":{"oneOf":[{"description":"Minutes a machine of this pool may sit idle before it is deleted; null when the pool sets no default.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"isRequired":true,"uniqueKey":"delete_after_idle_minutes.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Minutes a machine of this pool may sit idle before it is deleted; null when the pool sets no default.","type":"null","format":"int32","minimum":5,"maximum":2147483647,"isRequired":true,"uniqueKey":"delete_after_idle_minutes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"delete_after_idle_minutes","typeLabel":"integer\u003cint32> | null"},"pause_after_idle_minutes":{"oneOf":[{"description":"Idle minutes before pausing a machine from this pool, or null when the pool does not pause idle machines.","type":"integer","format":"int32","minimum":5,"maximum":2147483647,"isRequired":true,"uniqueKey":"pause_after_idle_minutes.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Idle minutes before pausing a machine from this pool, or null when the pool does not pause idle machines.","type":"null","format":"int32","minimum":5,"maximum":2147483647,"isRequired":true,"uniqueKey":"pause_after_idle_minutes.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"pause_after_idle_minutes","typeLabel":"integer\u003cint32> | null"},"archive_after_paused_days":{"oneOf":[{"description":"Days a machine stays paused before it is archived, or null when the pool does not archive.","type":"integer","format":"int32","minimum":1,"maximum":3650,"isRequired":true,"uniqueKey":"archive_after_paused_days.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Days a machine stays paused before it is archived, or null when the pool does not archive.","type":"null","format":"int32","minimum":1,"maximum":3650,"isRequired":true,"uniqueKey":"archive_after_paused_days.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"archive_after_paused_days","typeLabel":"integer\u003cint32> | null"},"delete_after_paused_days":{"oneOf":[{"description":"Days a machine stays paused before it is deleted, counted from when it paused, or null when the pool keeps paused machines.","type":"integer","format":"int32","minimum":1,"maximum":3650,"isRequired":true,"uniqueKey":"delete_after_paused_days.oneOf.0","typeLabel":"integer\u003cint32>"},{"description":"Days a machine stays paused before it is deleted, counted from when it paused, or null when the pool keeps paused machines.","type":"null","format":"int32","minimum":1,"maximum":3650,"isRequired":true,"uniqueKey":"delete_after_paused_days.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"delete_after_paused_days","typeLabel":"integer\u003cint32> | null"},"metadata":{"type":"object","description":"Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 characters, values must be strings of up to 512 characters.","maxProperties":16,"propertyNames":{"minLength":1,"maxLength":64},"additionalProperties":{"type":"string","maxLength":512,"uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"isRequired":true,"uniqueKey":"metadata","typeLabel":"object"},"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"provider_auth_secret_id":{"type":"string","description":"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}$","uniqueKey":"provider_auth_secret_id","typeLabel":"string"},"usage":{"type":"object","additionalProperties":false,"required":["machines","cpu","memory_mb"],"properties":{"machines":{"type":"integer","format":"int32","minimum":0,"isRequired":true,"uniqueKey":"usage.machines","typeLabel":"integer\u003cint32>"},"cpu":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"usage.cpu","typeLabel":"integer\u003cint64>"},"memory_mb":{"type":"integer","format":"int64","minimum":0,"isRequired":true,"uniqueKey":"usage.memory_mb","typeLabel":"integer\u003cint64>"}},"description":"Quota currently consumed by the pool's machines. Present only on responses of the list and get operations.","uniqueKey":"usage","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"machine_pool","id":"\u003cstring>","org_id":"\u003cstring>","name":"\u003cstring>","management_kind":"tenant","description":"\u003cstring>","provider":"\u003cstring>","default_machine_cpu":1073741824,"default_machine_memory_mb":1073741824,"default_machine_env":{},"default_machine_secret_env":{},"default_machine_provider_options":{},"default_cwd":"\u003cstring>","provider_config":{},"runtime_protection_enabled":true,"max_total_machines":1073741823,"max_total_cpu":1073741823,"max_total_memory_mb":1073741823,"min_machine_cpu":1073741823,"min_machine_memory_mb":1073741823,"max_machine_cpu":1073741824,"max_machine_memory_mb":1073741824,"delete_after_idle_minutes":1073741826,"pause_after_idle_minutes":1073741826,"archive_after_paused_days":1825,"delete_after_paused_days":1825,"metadata":{},"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","provider_auth_secret_id":"\u003cstring>","usage":{"machines":1,"cpu":1,"memory_mb":1}}}},"exampleType":"generated"}},"exampleType":"generated"},"3d3ec78c-12d4-45c6-b5dd-b89423ce4e92":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"BMA reason, kept as the native code.","uniqueKey":"error.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"547d1d27-f0ec-4181-b2cd-f83dde6adcdf":{"description":"Anthropic error envelope.","content":{"application/json":{"schema":{"type":"object","required":["type","error"],"properties":{"type":{"const":"error","description":"Always `error`.","isRequired":true,"uniqueKey":"type","typeLabel":"any"},"error":{"type":"object","required":["type","message"],"properties":{"type":{"type":"string","enum":["invalid_request_error","authentication_error","permission_error","not_found_error","conflict_error","rate_limit_error","api_error","timeout_error","overloaded_error"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"BMA reason, kept as the native code.","uniqueKey":"error.code","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"type":"error","error":{"type":"invalid_request_error","message":"\u003cstring>","code":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"35a509a8-c988-4d95-81ab-343ffefc8de2":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"}},"a0940cc2-d177-46f3-9b14-99df7cd9caf5":{"bearer":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"}}},"servers":{"3e522fc8-a903-42cc-a27e-399bf105f073":{"url":"https://api.beeos.ai","description":"Production"},"cf778fef-821a-4466-b6df-c830bdb3a991":{"url":"http://127.0.0.1:58080","description":"Self-hosted (docker compose quickstart)"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"api-reference/bma.openapi.yaml"},"subdomain":"localhost","siteName":"BMA Developer Docs","title":"Create a machine pool - BMA Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/endpoints/machine-pools/create-a-machine-pool","matchLevel":1},"zh":{"href":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool","matchLevel":0},"zh-Hant":{"href":"/zh-hant/api-reference/endpoints/machine-pools/create-a-machine-pool","matchLevel":1},"ja":{"href":"/ja/api-reference/endpoints/machine-pools/create-a-machine-pool","matchLevel":1},"ko":{"href":"/ko/api-reference/endpoints/machine-pools/create-a-machine-pool","matchLevel":1}}},"originalFileLocation":"zh/api-reference/endpoints/machine-pools/create-a-machine-pool.mdx","locale":"zh"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/favicons/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicons/favicon-32x32.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicons/favicon-16x16.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicons/favicon.ico\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a machine pool - BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://local./zh/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a machine pool - BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/favicons/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"BMA Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F97316\">\u003clink data-mint-head rel=\"canonical\" href=\"https://local./zh/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://local./zh/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://local./api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://local./zh-hant/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://local./ja/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://local./ko/api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://local./api-reference/endpoints/machine-pools/create-a-machine-pool\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"BMA Developer Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"BMA Developer Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool.md","siteName":"BMA Developer Docs","nav":{"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/api-reference/endpoints/machine-pools/create-a-machine-pool"}]},{"language":"zh","tabs":[{"tab":"文档","pages":[{"title":"文档","href":"/zh"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/zh/sdks/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/zh/cli/getting-started"}]},{"tab":"API 参考","groups":[{"group":"API 参考","pages":[{"title":"API reference","icon":"book","href":"/zh/api-reference/introduction"},{"title":"错误","href":"/zh/api-reference/errors"},{"title":"使用 Anthropic 官方 SDK 接入","sidebarTitle":"Anthropic SDK","icon":"scale-balanced","href":"/zh/compatibility"}]},{"group":"接口","pages":[{"group":"agents","pages":[{"title":"List Agents","openapi":"/api-reference/bma.openapi.yaml get /v1/agents","href":"/zh/api-reference/endpoints/agents/list-agents"},{"title":"Create Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents","href":"/zh/api-reference/endpoints/agents/create-agent"},{"title":"Get Agent","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}","href":"/zh/api-reference/endpoints/agents/get-agent"},{"title":"Update Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}","href":"/zh/api-reference/endpoints/agents/update-agent"},{"title":"Archive Agent","openapi":"/api-reference/bma.openapi.yaml post /v1/agents/{agent_id}/archive","href":"/zh/api-reference/endpoints/agents/archive-agent"}]},{"group":"Agents","pages":[{"title":"List agent versions","openapi":"/api-reference/bma.openapi.yaml get /v1/agents/{agent_id}/versions","href":"/zh/api-reference/endpoints/agents/list-agent-versions"}]},{"group":"Desktop sessions","pages":[{"title":"Create a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions","href":"/zh/api-reference/endpoints/desktop-sessions/create-a-desktop-session"},{"title":"Retrieve a desktop session (control state in `control`)","openapi":"/api-reference/bma.openapi.yaml get /v1/desktop_sessions/{desktop_session_id}","href":"/zh/api-reference/endpoints/desktop-sessions/retrieve-a-desktop-session-control-state-in-`control`"},{"title":"Take input control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/acquire_control","href":"/zh/api-reference/endpoints/desktop-sessions/take-input-control"},{"title":"Send input actions","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/actions","href":"/zh/api-reference/endpoints/desktop-sessions/send-input-actions"},{"title":"Close a desktop session","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/close","href":"/zh/api-reference/endpoints/desktop-sessions/close-a-desktop-session"},{"title":"Hand control back to the agent","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/handback_control","href":"/zh/api-reference/endpoints/desktop-sessions/hand-control-back-to-the-agent"},{"title":"Extend the running screen capture's keepalive deadline","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/keepalive","href":"/zh/api-reference/endpoints/desktop-sessions/extend-the-running-screen-captures-keepalive-deadline"},{"title":"Release control","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/release_control","href":"/zh/api-reference/endpoints/desktop-sessions/release-control"},{"title":"Renew the control lease","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/renew_control","href":"/zh/api-reference/endpoints/desktop-sessions/renew-the-control-lease"},{"title":"Capture a screenshot","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/screenshot","href":"/zh/api-reference/endpoints/desktop-sessions/capture-a-screenshot"},{"title":"Mint a desktop watch credential","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/tickets","href":"/zh/api-reference/endpoints/desktop-sessions/mint-a-desktop-watch-credential"},{"title":"Revoke a screen capture viewer and confirm its connections are closed","openapi":"/api-reference/bma.openapi.yaml post /v1/desktop_sessions/{desktop_session_id}/viewers/{viewer}/revoke","href":"/zh/api-reference/endpoints/desktop-sessions/revoke-a-screen-capture-viewer-and-confirm-its-connections-are-closed"}]},{"group":"environments","pages":[{"title":"List environments with pagination support.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments","href":"/zh/api-reference/endpoints/environments/list-environments-with-pagination-support"},{"title":"Create a new environment with the specified configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments","href":"/zh/api-reference/endpoints/environments/create-a-new-environment-with-the-specified-configuration"},{"title":"Retrieve a specific environment by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/retrieve-a-specific-environment-by-id"},{"title":"Update an existing environment's configuration.","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/update-an-existing-environments-configuration"},{"title":"Delete an environment by ID. Returns a confirmation of the deletion.","openapi":"/api-reference/bma.openapi.yaml delete /v1/environments/{environment_id}","href":"/zh/api-reference/endpoints/environments/delete-an-environment-by-id-returns-a-confirmation-of-the-deletion"},{"title":"Archive an environment by ID. Archived environments cannot be used to create new","openapi":"/api-reference/bma.openapi.yaml post /v1/environments/{environment_id}/archive","href":"/zh/api-reference/endpoints/environments/archive-an-environment-by-id-archived-environments-cannot-be-used-to-create-new"}]},{"group":"files","pages":[{"title":"List Files","openapi":"/api-reference/bma.openapi.yaml get /v1/files","href":"/zh/api-reference/endpoints/files/list-files"},{"title":"Upload File","openapi":"/api-reference/bma.openapi.yaml post /v1/files","href":"/zh/api-reference/endpoints/files/upload-file"},{"title":"Get File Metadata","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}","href":"/zh/api-reference/endpoints/files/get-file-metadata"},{"title":"Delete File","openapi":"/api-reference/bma.openapi.yaml delete /v1/files/{file_id}","href":"/zh/api-reference/endpoints/files/delete-file"},{"title":"Download File","openapi":"/api-reference/bma.openapi.yaml get /v1/files/{file_id}/content","href":"/zh/api-reference/endpoints/files/download-file"}]},{"group":"Machine pools","pages":[{"title":"List machine pools","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools","href":"/zh/api-reference/endpoints/machine-pools/list-machine-pools"},{"title":"Create a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools","href":"/zh/api-reference/endpoints/machine-pools/create-a-machine-pool"},{"title":"Retrieve a machine pool","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/retrieve-a-machine-pool"},{"title":"Update a machine pool","openapi":"/api-reference/bma.openapi.yaml post /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/update-a-machine-pool"},{"title":"Delete a machine pool","openapi":"/api-reference/bma.openapi.yaml delete /v1/machine_pools/{pool_id}","href":"/zh/api-reference/endpoints/machine-pools/delete-a-machine-pool"},{"title":"List the pool grants of a project","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants","href":"/zh/api-reference/endpoints/machine-pools/list-the-pool-grants-of-a-project"},{"title":"Retrieve a pool grant","openapi":"/api-reference/bma.openapi.yaml get /v1/machine_pools/{pool_id}/grants/{grant_id}","href":"/zh/api-reference/endpoints/machine-pools/retrieve-a-pool-grant"}]},{"group":"Machines","pages":[{"title":"List machines","openapi":"/api-reference/bma.openapi.yaml get /v1/machines","href":"/zh/api-reference/endpoints/machines/list-machines"},{"title":"Create a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines","href":"/zh/api-reference/endpoints/machines/create-a-machine"},{"title":"Retrieve a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/retrieve-a-machine"},{"title":"Update a machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/update-a-machine"},{"title":"Delete a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}","href":"/zh/api-reference/endpoints/machines/delete-a-machine"},{"title":"Bind an agent to a machine","openapi":"/api-reference/bma.openapi.yaml put /v1/machines/{machine_id}/agents/{agent_id}","href":"/zh/api-reference/endpoints/machines/bind-an-agent-to-a-machine"},{"title":"Unbind an agent from a machine","openapi":"/api-reference/bma.openapi.yaml delete /v1/machines/{machine_id}/agents/{agent_id}","href":"/zh/api-reference/endpoints/machines/unbind-an-agent-from-a-machine"},{"title":"Machine interaction capabilities","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/capabilities","href":"/zh/api-reference/endpoints/machines/machine-interaction-capabilities"},{"title":"List executor tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/executor_tokens","href":"/zh/api-reference/endpoints/machines/list-executor-tokens"},{"title":"Create an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens","href":"/zh/api-reference/endpoints/machines/create-an-executor-token"},{"title":"Revoke an executor token","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke","href":"/zh/api-reference/endpoints/machines/revoke-an-executor-token"},{"title":"Pause a running machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/pause","href":"/zh/api-reference/endpoints/machines/pause-a-running-machine"},{"title":"Resume a paused machine","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/resume","href":"/zh/api-reference/endpoints/machines/resume-a-paused-machine"}]},{"group":"Machine backups","pages":[{"title":"List a machine's backups","openapi":"/api-reference/bma.openapi.yaml get /v1/machines/{machine_id}/backups","href":"/zh/api-reference/endpoints/machine-backups/list-a-machines-backups"},{"title":"Rebuild a machine from a backup","openapi":"/api-reference/bma.openapi.yaml post /v1/machines/{machine_id}/restore","href":"/zh/api-reference/endpoints/machine-backups/rebuild-a-machine-from-a-backup"}]},{"group":"MCP OAuth","pages":[{"title":"Start an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth_authorizations","href":"/zh/api-reference/endpoints/mcp-oauth/start-an-mcp-oauth-authorization"},{"title":"Get an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml get /v1/mcp_oauth_authorizations/{authorization_id}","href":"/zh/api-reference/endpoints/mcp-oauth/get-an-mcp-oauth-authorization"},{"title":"Complete an MCP OAuth authorization","openapi":"/api-reference/bma.openapi.yaml post /v1/mcp_oauth/callback","href":"/zh/api-reference/endpoints/mcp-oauth/complete-an-mcp-oauth-authorization"}]},{"group":"Me","pages":[{"title":"List the invites sent to me","openapi":"/api-reference/bma.openapi.yaml get /v1/me/invites","href":"/zh/api-reference/endpoints/me/list-the-invites-sent-to-me"},{"title":"Accept an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/accept","href":"/zh/api-reference/endpoints/me/accept-an-invite"},{"title":"Decline an invite","openapi":"/api-reference/bma.openapi.yaml post /v1/me/invites/{invite_id}/decline","href":"/zh/api-reference/endpoints/me/decline-an-invite"},{"title":"List my personal access tokens","openapi":"/api-reference/bma.openapi.yaml get /v1/me/personal_access_tokens","href":"/zh/api-reference/endpoints/me/list-my-personal-access-tokens"},{"title":"Create a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens","href":"/zh/api-reference/endpoints/me/create-a-personal-access-token"},{"title":"Revoke a personal access token","openapi":"/api-reference/bma.openapi.yaml post /v1/me/personal_access_tokens/{token_id}/revoke","href":"/zh/api-reference/endpoints/me/revoke-a-personal-access-token"}]},{"group":"memory_stores","pages":[{"title":"List Memory Stores","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores","href":"/zh/api-reference/endpoints/memory_stores/list-memory-stores"},{"title":"Create a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores","href":"/zh/api-reference/endpoints/memory_stores/create-a-memory-store"},{"title":"Retrieve a Memory Store","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/retrieve-a-memory-store"},{"title":"Update a Memory Store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/update-a-memory-store"},{"title":"Delete a Memory Store","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}","href":"/zh/api-reference/endpoints/memory_stores/delete-a-memory-store"}]},{"group":"Memory Stores","pages":[{"title":"Archive a memory store","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/archive","href":"/zh/api-reference/endpoints/memory-stores/archive-a-memory-store"},{"title":"List memory versions","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions","href":"/zh/api-reference/endpoints/memory-stores/list-memory-versions"},{"title":"Retrieve a memory version","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}","href":"/zh/api-reference/endpoints/memory-stores/retrieve-a-memory-version"},{"title":"Redact a memory version","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact","href":"/zh/api-reference/endpoints/memory-stores/redact-a-memory-version"}]},{"group":"memory_stores.memories","pages":[{"title":"List Memories","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories","href":"/zh/api-reference/endpoints/memory_storesmemories/list-memories"},{"title":"Create a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories","href":"/zh/api-reference/endpoints/memory_storesmemories/create-a-memory"},{"title":"Retrieve a Memory","openapi":"/api-reference/bma.openapi.yaml get /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/retrieve-a-memory"},{"title":"Update a Memory","openapi":"/api-reference/bma.openapi.yaml post /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/update-a-memory"},{"title":"Delete a Memory","openapi":"/api-reference/bma.openapi.yaml delete /v1/memory_stores/{memory_store_id}/memories/{memory_id}","href":"/zh/api-reference/endpoints/memory_storesmemories/delete-a-memory"}]},{"group":"Model providers","pages":[{"title":"List model providers","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers","href":"/zh/api-reference/endpoints/model-providers/list-model-providers"},{"title":"Create a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers","href":"/zh/api-reference/endpoints/model-providers/create-a-model-provider"},{"title":"Get a model provider","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/get-a-model-provider"},{"title":"Update a model provider","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/update-a-model-provider"},{"title":"Delete a model provider","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}","href":"/zh/api-reference/endpoints/model-providers/delete-a-model-provider"},{"title":"List a provider's models","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models","href":"/zh/api-reference/endpoints/model-providers/list-a-providers-models"},{"title":"Create a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models","href":"/zh/api-reference/endpoints/model-providers/create-a-model"},{"title":"Get a model","openapi":"/api-reference/bma.openapi.yaml get /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/get-a-model"},{"title":"Update a model","openapi":"/api-reference/bma.openapi.yaml post /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/update-a-model"},{"title":"Delete a model","openapi":"/api-reference/bma.openapi.yaml delete /v1/model_providers/{provider_id}/models/{model_id}","href":"/zh/api-reference/endpoints/model-providers/delete-a-model"},{"title":"List a model's grants","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}/grants","href":"/zh/api-reference/endpoints/model-providers/list-a-models-grants"},{"title":"Grant a model to a workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/models/{model_id}/grants","href":"/zh/api-reference/endpoints/model-providers/grant-a-model-to-a-workspace"},{"title":"Revoke a model grant","openapi":"/api-reference/bma.openapi.yaml delete /v1/models/{model_id}/grants/{workspace_id}","href":"/zh/api-reference/endpoints/model-providers/revoke-a-model-grant"}]},{"group":"models","pages":[{"title":"List available models.","openapi":"/api-reference/bma.openapi.yaml get /v1/models","href":"/zh/api-reference/endpoints/models/list-available-models"},{"title":"Get a specific model.","openapi":"/api-reference/bma.openapi.yaml get /v1/models/{model_id}","href":"/zh/api-reference/endpoints/models/get-a-specific-model"}]},{"group":"organization.api_keys","pages":[{"title":"List API Keys","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys","href":"/zh/api-reference/endpoints/organizationapi_keys/list-api-keys"},{"title":"Create an API key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys","href":"/zh/api-reference/endpoints/organizationapi_keys/create-an-api-key"},{"title":"Get API Key","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/api_keys/{api_key_id}","href":"/zh/api-reference/endpoints/organizationapi_keys/get-api-key"},{"title":"Update API Key","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/api_keys/{api_key_id}","href":"/zh/api-reference/endpoints/organizationapi_keys/update-api-key"}]},{"group":"Organization reports","pages":[{"title":"Get the cost report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/cost_report","href":"/zh/api-reference/endpoints/organization-reports/get-the-cost-report"},{"title":"Get the messages usage report","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/usage_report/messages","href":"/zh/api-reference/endpoints/organization-reports/get-the-messages-usage-report"}]},{"group":"organization.invites","pages":[{"title":"List the organization's invites.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites","href":"/zh/api-reference/endpoints/organizationinvites/list-the-organizations-invites"},{"title":"Invite a user to join the organization by email.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/invites","href":"/zh/api-reference/endpoints/organizationinvites/invite-a-user-to-join-the-organization-by-email"},{"title":"Retrieve an invite by ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/invites/{invite_id}","href":"/zh/api-reference/endpoints/organizationinvites/retrieve-an-invite-by-id"},{"title":"Delete a pending invite.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/invites/{invite_id}","href":"/zh/api-reference/endpoints/organizationinvites/delete-a-pending-invite"}]},{"group":"organization","pages":[{"title":"Retrieve information about the organization associated with the authenticated","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/me","href":"/zh/api-reference/endpoints/organization/retrieve-information-about-the-organization-associated-with-the-authenticated"}]},{"group":"organization.users","pages":[{"title":"List the organization's members.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users","href":"/zh/api-reference/endpoints/organizationusers/list-the-organizations-members"},{"title":"Retrieve a member of the organization by user ID.","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/retrieve-a-member-of-the-organization-by-user-id"},{"title":"Update a member's organization role.","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/update-a-members-organization-role"},{"title":"Remove a member from the organization.","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/users/{user_id}","href":"/zh/api-reference/endpoints/organizationusers/remove-a-member-from-the-organization"}]},{"group":"Webhooks","pages":[{"title":"List webhook endpoints","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks","href":"/zh/api-reference/endpoints/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint (the response carries the signing secret once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks","href":"/zh/api-reference/endpoints/webhooks/create-a-webhook-endpoint-the-response-carries-the-signing-secret-once"},{"title":"Retrieve a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/retrieve-a-webhook-endpoint"},{"title":"Update a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/update-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/webhooks/{webhook_endpoint_id}","href":"/zh/api-reference/endpoints/webhooks/delete-a-webhook-endpoint"},{"title":"Replace the signing secret (the response carries it once)","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret","href":"/zh/api-reference/endpoints/webhooks/replace-the-signing-secret-the-response-carries-it-once"}]},{"group":"organization.workspaces","pages":[{"title":"List Workspaces","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces","href":"/zh/api-reference/endpoints/organizationworkspaces/list-workspaces"},{"title":"Create Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces","href":"/zh/api-reference/endpoints/organizationworkspaces/create-workspace"},{"title":"Get Workspace","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}","href":"/zh/api-reference/endpoints/organizationworkspaces/get-workspace"},{"title":"Update Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}","href":"/zh/api-reference/endpoints/organizationworkspaces/update-workspace"},{"title":"Archive Workspace","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/archive","href":"/zh/api-reference/endpoints/organizationworkspaces/archive-workspace"}]},{"group":"organization.workspaces.members","pages":[{"title":"List Workspace Members","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/list-workspace-members"},{"title":"Create Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/create-workspace-member"},{"title":"Get Workspace Member","openapi":"/api-reference/bma.openapi.yaml get /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/get-workspace-member"},{"title":"Update Workspace Member","openapi":"/api-reference/bma.openapi.yaml post /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/update-workspace-member"},{"title":"Delete Workspace Member","openapi":"/api-reference/bma.openapi.yaml delete /v1/organizations/workspaces/{workspace_id}/members/{user_id}","href":"/zh/api-reference/endpoints/organizationworkspacesmembers/delete-workspace-member"}]},{"group":"sessions","pages":[{"title":"List Sessions","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions","href":"/zh/api-reference/endpoints/sessions/list-sessions"},{"title":"Create Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions","href":"/zh/api-reference/endpoints/sessions/create-session"},{"title":"Get Session","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/get-session"},{"title":"Update Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/update-session"},{"title":"Delete Session","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}","href":"/zh/api-reference/endpoints/sessions/delete-session"},{"title":"Archive Session","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/archive","href":"/zh/api-reference/endpoints/sessions/archive-session"},{"title":"Revoke an archived session's executor","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/bma_executor_revocation","href":"/zh/api-reference/endpoints/sessions/revoke-an-archived-sessions-executor"},{"title":"Fork a session (copies the conversation only, not files)","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/fork","href":"/zh/api-reference/endpoints/sessions/fork-a-session-copies-the-conversation-only-not-files"}]},{"group":"sessions.events","pages":[{"title":"List Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events","href":"/zh/api-reference/endpoints/sessionsevents/list-events"},{"title":"Send Events","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/events","href":"/zh/api-reference/endpoints/sessionsevents/send-events"},{"title":"Stream Events","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/events/stream","href":"/zh/api-reference/endpoints/sessionsevents/stream-events"}]},{"group":"sessions.resources","pages":[{"title":"List Session Resources","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources","href":"/zh/api-reference/endpoints/sessionsresources/list-session-resources"},{"title":"Add Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources","href":"/zh/api-reference/endpoints/sessionsresources/add-session-resource"},{"title":"Get Session Resource","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/get-session-resource"},{"title":"Update Session Resource","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/update-session-resource"},{"title":"Delete Session Resource","openapi":"/api-reference/bma.openapi.yaml delete /v1/sessions/{session_id}/resources/{resource_id}","href":"/zh/api-reference/endpoints/sessionsresources/delete-session-resource"}]},{"group":"Session tool grants","pages":[{"title":"List a session's tool grants","openapi":"/api-reference/bma.openapi.yaml get /v1/sessions/{session_id}/tool_grants","href":"/zh/api-reference/endpoints/session-tool-grants/list-a-sessions-tool-grants"},{"title":"Revoke a session's tool grant","openapi":"/api-reference/bma.openapi.yaml post /v1/sessions/{session_id}/tool_grants/{grant_id}/revoke","href":"/zh/api-reference/endpoints/session-tool-grants/revoke-a-sessions-tool-grant"}]},{"group":"Skills","pages":[{"title":"List skills","openapi":"/api-reference/bma.openapi.yaml get /v1/skills","href":"/zh/api-reference/endpoints/skills/list-skills"},{"title":"Create a skill","openapi":"/api-reference/bma.openapi.yaml post /v1/skills","href":"/zh/api-reference/endpoints/skills/create-a-skill"},{"title":"Retrieve a skill","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}","href":"/zh/api-reference/endpoints/skills/retrieve-a-skill"},{"title":"Delete a skill","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}","href":"/zh/api-reference/endpoints/skills/delete-a-skill"},{"title":"List skill versions","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions","href":"/zh/api-reference/endpoints/skills/list-skill-versions"},{"title":"Create a skill version","openapi":"/api-reference/bma.openapi.yaml post /v1/skills/{skill_id}/versions","href":"/zh/api-reference/endpoints/skills/create-a-skill-version"},{"title":"Retrieve a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}","href":"/zh/api-reference/endpoints/skills/retrieve-a-skill-version"},{"title":"Delete a skill version","openapi":"/api-reference/bma.openapi.yaml delete /v1/skills/{skill_id}/versions/{version}","href":"/zh/api-reference/endpoints/skills/delete-a-skill-version"},{"title":"Download a skill version","openapi":"/api-reference/bma.openapi.yaml get /v1/skills/{skill_id}/versions/{version}/content","href":"/zh/api-reference/endpoints/skills/download-a-skill-version"}]},{"group":"Terminal sessions","pages":[{"title":"List the terminal sessions of a machine","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions","href":"/zh/api-reference/endpoints/terminal-sessions/list-the-terminal-sessions-of-a-machine"},{"title":"Open a terminal session (body machine_id)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions","href":"/zh/api-reference/endpoints/terminal-sessions/open-a-terminal-session-body-machine_id"},{"title":"Retrieve a terminal session","openapi":"/api-reference/bma.openapi.yaml get /v1/terminal_sessions/{terminal_session_id}","href":"/zh/api-reference/endpoints/terminal-sessions/retrieve-a-terminal-session"},{"title":"Close a terminal session","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/close","href":"/zh/api-reference/endpoints/terminal-sessions/close-a-terminal-session"},{"title":"Mint a single-use ticket (purpose connect)","openapi":"/api-reference/bma.openapi.yaml post /v1/terminal_sessions/{terminal_session_id}/tickets","href":"/zh/api-reference/endpoints/terminal-sessions/mint-a-single-use-ticket-purpose-connect"}]},{"group":"User Profiles","pages":[{"title":"List user profiles","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles","href":"/zh/api-reference/endpoints/user-profiles/list-user-profiles"},{"title":"Create a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles","href":"/zh/api-reference/endpoints/user-profiles/create-a-user-profile"},{"title":"Retrieve a user profile","openapi":"/api-reference/bma.openapi.yaml get /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/retrieve-a-user-profile"},{"title":"Update a user profile","openapi":"/api-reference/bma.openapi.yaml post /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/update-a-user-profile"},{"title":"Delete a user profile","openapi":"/api-reference/bma.openapi.yaml delete /v1/user_profiles/{user_profile_id}","href":"/zh/api-reference/endpoints/user-profiles/delete-a-user-profile"}]},{"group":"Vaults","pages":[{"title":"List vaults","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults","href":"/zh/api-reference/endpoints/vaults/list-vaults"},{"title":"Create a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults","href":"/zh/api-reference/endpoints/vaults/create-a-vault"},{"title":"Retrieve a vault","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/retrieve-a-vault"},{"title":"Update a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/update-a-vault"},{"title":"Delete a vault","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}","href":"/zh/api-reference/endpoints/vaults/delete-a-vault"},{"title":"Archive a vault","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/archive","href":"/zh/api-reference/endpoints/vaults/archive-a-vault"},{"title":"List credentials","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials","href":"/zh/api-reference/endpoints/vaults/list-credentials"},{"title":"Create a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials","href":"/zh/api-reference/endpoints/vaults/create-a-credential"},{"title":"Retrieve a credential","openapi":"/api-reference/bma.openapi.yaml get /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/retrieve-a-credential"},{"title":"Update or rotate a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/update-or-rotate-a-credential"},{"title":"Delete a credential","openapi":"/api-reference/bma.openapi.yaml delete /v1/vaults/{vault_id}/credentials/{credential_id}","href":"/zh/api-reference/endpoints/vaults/delete-a-credential"},{"title":"Archive a credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/archive","href":"/zh/api-reference/endpoints/vaults/archive-a-credential"},{"title":"Validate an MCP OAuth credential","openapi":"/api-reference/bma.openapi.yaml post /v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate","href":"/zh/api-reference/endpoints/vaults/validate-an-mcp-oauth-credential"}]}]}]},{"tab":"自托管","pages":[{"title":"自托管","href":"/zh/self-hosting/overview"}]},{"tab":"更新日志与路线图","pages":[{"title":"更新日志与路线图","href":"/zh/changelog"}]}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-hant/api-reference/endpoints/machine-pools/create-a-machine-pool"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/api-reference/endpoints/machine-pools/create-a-machine-pool"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/api-reference/endpoints/machine-pools/create-a-machine-pool"}]}]},"basePath":"","title":"Create a machine pool - BMA Developer Docs","buildId":"467f09c1d15f","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-D3zq8_H1.js","snippetPresets-BxQ21E0F.js","utils-BCl_2N0Z.js","style-to-object-BY3JEAdk.js","utils-C2M6pTR9.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-hpCx1oX4.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DI6Imbcs.js","_Uint8Array-B1w0qMTA.js","isObject-FP1Yky1u.js","ApiExamples-C0JO5nDy.js","usePlaygroundInputsStore-BbvIAdMs.js","shallow-DUW2i2qm.js","isEqual-CAgRPPTj.js","CodeSnippets-z27RXAlz.js","CodeSnippet-CjPdxhrr.js","getApiPlaygroundDisplay-DyNzEC4A.js","Page-CMgUcQ5g.js","DynamicMarkdown-DYO7TkoS.js","SectionHeading-bhNWaVe-.js","icon-BHNujPGU.js","MethodPill-D6X6nTgT.js","getPastedJson-6nUvCk5_.js","Check2Icon-CN83-KZF.js","axios-CsQoIw0U.js","Markdown-Ztb7Q798.js","AssistantPageLink-Dvkz0EpA.js","dist-CjHMc-SQ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}