Update a deployment
Updates mutable deployment fields such as its model, configuration, autoscaling bounds, or LoRA support. Changes that affect serving may trigger asynchronous reprovisioning.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Project identifier.
Endpoint identifier.
Deployment identifier.
Query Parameters
Fields to update. If not set, the fields populated on deployment are updated.
Body
Mutable deployment settings. Use the resource-name fields or their deprecated ID alternatives for a model or config change, but not both.
Response
OK
Serving workload that binds a model and immutable config to an endpoint and manages its replicas.
Unique deployment identifier.
ID of the project that owns the deployment.
ID of the endpoint that contains the deployment.
Project- and endpoint-qualified deployment name in the form <project_slug>/<endpoint_name>/<deployment_name>. Pass it as model in an inference request to target this deployment directly instead of using the endpoint's traffic split.
Timestamp when the deployment was created.
Timestamp when the deployment was last updated.
Deprecated. Use model. Model identifier being served, populated during migration.
Deprecated. Use model with a /revisions/{revisionId} segment. Pin to a specific model revision.
Pinned model resource in the form projects/{projectId}/models/{modelId}/revisions/{revisionId}.
Replica bounds, timing windows, and metrics that control horizontal scaling.
Deprecated. Use config. Config revision identifier, populated during migration.
Immutable config revision in the form projects/{projectId}/configs/{configRevisionId}.
Opaque version tag for optimistic concurrency control. Supply on update/delete to ensure consistent read-modify-write. If not set, the write overwrites based on current state.
Hardware selected by the deployment config, including GPU type and count.
Whether the deployment serves client-visible responses or only mirrored shadow traffic.
TRAFFIC_MODE_LIVE, TRAFFIC_MODE_SHADOW Current lifecycle state and observed replica counts.
Deprecated. Use speculator. Speculative decoding model identifier derived from the deployment config.
Deprecated. Use speculator. ID of the speculative decoding draft-model revision pinned at creation time.
Pinned draft-model resource used for speculative decoding, in the same form as model. Omitted when speculative decoding is disabled.
Estimated fraction in [0, 1] of endpoint traffic that reaches this deployment under the current routing configuration. Absent or unrouted deployments are 0.
Whether the deployment can dynamically load LoRA adapters.
Serving engine and feature support derived from the immutable config.
Number of replicas the autoscaler currently wants across all regions.
Region constraints used to schedule the deployment's replicas.
- Option 1
- Option 2