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.