根据环境 ID 返回完整配置,包括沙箱类型、预装依赖与网络策略。
前提
已完成 Endpoint 与鉴权配置,详见API 总览与认证。
接口
GET /environments/{environment_id}
请求示例
响应示例
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
id | string | 环境 ID,格式 env_<ULID> |
type | string | 固定为 environment |
name / description / scope / config / metadata | string / object | 环境基础属性与完整运行时配置(沙箱类型、预装依赖、网络策略) |
archived_at | string / null | 归档时间,未归档时为 null |
created_at / updated_at | string | 创建 / 最近更新时间,ISO 8601 |
request_id | string | 本次请求的唯一标识 |