POST
/api/eaas-console/environments
Console — create an environment
Same create contract as POST /api/v1/environments (202 + Location, same create
spec, same idempotency ledger with the canonical /api/v1 path), over the session
channel.
当前语言暂无代码示例
参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| string | N | — | ||
| string | N | — |
请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| projectId | string | Y | — | |
| template | string | Y | — | Official template name, or an immutable `name@sha256:...` pin (mismatch → 422). |
| profile | string (2c4g) | Y | — | Gate A supports the `2c4g` profile only. |
| ttlSeconds | integer | N | 3600 | |
| metadata | object | N | — | |
| env | object | N | — | Secret values are injected only after the environment is bound to the caller's identity; they never enter events or warm templates. |
| startup | object | N | — | |
| └ onWarmMiss | string (cold | fail) | N | — | May only tighten the project policy (cold→fail); loosening is rejected. |