Record a deployment
Record a deployment
Creates or updates a deployment record linking an artifact to an environment. If a record for the same environment and deployment name already exists, it will be updated.
POST
Record a deployment
Authorizations
Bearer token for authentication
Body
application/json
Available options:
ARTIFACT_KIND_UNSPECIFIED, CONTAINER_IMAGE, HELM_CHART - DEPLOYED: DEPLOYED indicates the artifact is currently running in the environment slot.
- DECOMMISSIONED: DECOMMISSIONED indicates the artifact has been intentionally removed from the environment slot.
- SUPERSEDED: SUPERSEDED indicates the artifact was replaced by a different artifact in the same environment slot.
Available options:
DEPLOYMENT_STATUS_UNSPECIFIED, DEPLOYED, DECOMMISSIONED, SUPERSEDED Response
A successful response.
deployment_record
DeploymentStatus defines the status of a deployment
DeploymentRecord represents a deployment record entity · object
Example:
{
"artifact": {
"kind": "kind",
"name": "name",
"digest": "digest",
"version": "version"
},
"logical_environment_id": "logical_environment_id",
"environment_id": "environment_id",
"updated_at": "2000-01-23T04:56:07.000Z",
"deployment_name": "deployment_name",
"created_at": "2000-01-23T04:56:07.000Z",
"id": "id",
"logical_environment_name": "logical_environment_name",
"last_seen_at": "2000-01-23T04:56:07.000Z",
"artifact_id": "artifact_id",
"status": "DEPLOYMENT_STATUS_UNSPECIFIED",
"environment_name": "environment_name"
}