跳转到主要内容
POST
Create a deployment

授权

Authorization
string
header
必填

A workspace-scoped Cloud JWT.

请求头

Idempotency-Key
string

请求体

application/json
releaseId
string
必填

The cut release to run.

computeConfig
object
必填

The requested serverless shape. The endpoint autoscales between min and max workers on demand (min 0 scales to zero when idle). region names where the deployment runs, at any level the catalog lists: the endpoint and its network volume stay bound to that placement. Changing GPU class or region creates a separate copy while preserving the deployment id and URL. Deployment reads report serving settings while ready; stopped/failed reads report accepted next-start settings when a compute request is stored.

name
string

The deployment's name, unique among its build's live deployments: 1 to 40 of a-z, 0-9 and -, starting and ending with a letter or a digit and never with dep-, so no name reads as an id. Omitted, production where the build has no live deployment, else deployment-N at the lowest free N.

Required string length: 1 - 40
Pattern: ^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$
editor
boolean

Whether the deployment keeps a CPU server answering its custom nodes' own routes while it is edited in the editor. Omitted, true.

响应

Accepted; poll statusUrl.

id
string
必填

Deployment id (dep-...).

status
enum<string>
必填

Lifecycle state. unhealthy is a recoverable post-ready state: the deployment was serving but its endpoint degraded or vanished, and the control plane will move it back to ready if it recovers. stop_failed means a stop ran but could not release the compute, so the deployment may still be holding (and billing for) its endpoint; it is not terminal, and stopping it again retries the release. stopped and failed are terminal.

可用选项:
queued,
provisioning,
starting,
ready,
unhealthy,
stopping,
stop_failed,
stopped,
failed
statusUrl
string
必填
name
string | null

The deployment's name, unique among its build's live deployments; null on a deployment created before names until it is given one.