GET

授权

x-api-key
string
header
必填

请求头

bma-workspace-id
string

Project scope. Required when the API key can access more than one project. Also accepted as anthropic-workspace-id; headers sent together must agree, otherwise the request is a 400 workspace_id_conflict.

路径参数

pool_id
string
必填
grant_id
string
必填

查询参数

project_id
string

响应

Success.

type
string
必填

Always machine_pool_grant.

Allowed value: "machine_pool_grant"
id
string
必填
Pattern: ^pmpg_[a-z2-7]{26}$
org_id
string
必填
Pattern: ^org_[a-z2-7]{26}$
project_id
string
必填

Project ID (proj_...).

Pattern: ^proj_[a-z2-7]{26}$
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}$
description
string
必填
default_machine_cpu
integer<int32> | null
必填
必填范围: 1 <= x <= 2147483647
default_machine_memory_mb
integer<int32> | null
必填
必填范围: 1 <= x <= 2147483647
default_machine_env_overlay
object
必填

Env overlay merged over the pool's default_machine_env for machines materialized through this grant; a null entry removes the key.

default_machine_secret_env_overlay
object
必填

Secret env overlay merged over the pool's default_machine_secret_env for machines materialized through this grant; a null entry removes the key.

default_machine_provider_options_overlay
object
必填
default_cwd
string
必填
max_total_machines
integer<int32> | null
必填
必填范围: 0 <= x <= 2147483647
max_total_cpu
integer<int32> | null
必填
必填范围: 0 <= x <= 2147483647
max_total_memory_mb
integer<int32> | null
必填
必填范围: 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
必填

Idle minutes before deleting a machine created through this grant. Zero disables deletion for this grant; null inherits the pool default.

必填范围: 0 <= x <= 2147483647
metadata
object
必填

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

created_at
string<date-time>
必填
updated_at
string<date-time>
必填
machine_pool
object

Present on list items.