Promote Deployment
POST/agents/{agent_id}/deployments/{deployment_id}/promote
Promote a deployment to production with atomic cutover.
Promote Deployment
curl http://localhost:5003/agents/$AGENT_ID/deployments/$DEPLOYMENT_ID/promote \
-X POST \
-H "Authorization: Bearer $AGENTEX_SDK_API_KEY"{
"id": "id",
"agent_id": "agent_id",
"docker_image": "docker_image",
"is_production": true,
"status": "Pending",
"acp_url": "acp_url",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"promoted_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"sgp_deploy_id": "sgp_deploy_id"
}Returns Examples
{
"id": "id",
"agent_id": "agent_id",
"docker_image": "docker_image",
"is_production": true,
"status": "Pending",
"acp_url": "acp_url",
"created_at": "2019-12-27T18:11:19.117Z",
"expires_at": "2019-12-27T18:11:19.117Z",
"helm_release_name": "helm_release_name",
"promoted_at": "2019-12-27T18:11:19.117Z",
"registration_metadata": {
"foo": "bar"
},
"sgp_deploy_id": "sgp_deploy_id"
}