Promote a deployment to production
Promotes an existing deployment to production and returns the same deployment.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Body
A request to promote a deployment to production.
Whether to scale down the previous production deployment after promoting
true
Whether to use the promoting deployment's instance type or preserve target environment's instance type
true
Changes to the environment's settings. Omitted fields are unchanged. The promoted deployment uses the environment's current settings with these changes applied, and the environment keeps the result when the promotion completes.
Promotion settings for this promotion only. Omitted fields keep the environment's values, and the environment's promotion settings are unchanged.
Response
A deployment of a model.
Unique identifier of the deployment
Time the deployment was created in ISO 8601 format
Name of the deployment
Unique identifier of the model
Whether the deployment is the production deployment of the model
Whether the deployment is the development deployment of the model
Status of the deployment
BUILDING, DEPLOYING, DEPLOY_FAILED, LOADING_MODEL, ACTIVE, UNHEALTHY, BUILD_FAILED, BUILD_STOPPED, DEACTIVATING, INACTIVE, FAILED, UPDATING, SCALED_TO_ZERO, WAKING_UP Number of active replicas
Autoscaling settings for the deployment. If null, the model has not finished deploying
Name of the instance type the model deployment is running on
The environment associated with the deployment
Effective request backpressure settings for the deployment.
User-provided key-value labels for the deployment
The selected region for the deployment, if any