v1

latestOpenAPI 3.1.02026-07-26289714404.6 KB
Environments

Update Environment TTL

put/environments/{id}/ttl

Path parameters

idstring required

Request body

type'INFINITE' | 'HOURS' | 'DATE' required
valuestring

Required when the type is not INFINITE. When it's HOURS - attach a stringified number. When it's DATE - format is yyyy-mm-ddThh:MM:ss.000Z (For example 2023-06-04T20:05:00.000Z)

Response

idstring
createdAtstring date-time
updatedAtstring date-time
namestring required
organizationIdstring required
projectIdstring required
userIdstring required
workspaceNamestring required
requiresApprovalboolean required
status'CREATED' | 'INACTIVE' | 'ACTIVE' | 'FAILED' | 'TIMEOUT' | 'WAITING_FOR_USER' | 'DEPLOY_IN_PROGRESS' | 'DESTROY_IN_PROGRESS' | 'TASK_IN_PROGRESS' | 'ABORTING' | 'ABORTED' | 'NEVER_DEPLOYED' | 'DRIFTED' | 'DRY_RUN_IN_PROGRESS' | 'CREATED' | 'INACTIVE' | 'ACTIVE' | 'FAILED' | 'TIMEOUT' | 'WAITING_FOR_USER' | 'DEPLOY_IN_PROGRESS' | 'DESTROY_IN_PROGRESS' | 'TASK_IN_PROGRESS' | 'ABORTING' | 'ABORTED' | 'NEVER_DEPLOYED' | 'DRIFTED' | 'DRY_RUN_IN_PROGRESS' | 'CREATED' | 'INACTIVE' | 'ACTIVE' | 'FAILED' | 'TIMEOUT' | 'WAITING_FOR_USER' | 'DEPLOY_IN_PROGRESS' | 'DESTROY_IN_PROGRESS' | 'TASK_IN_PROGRESS' | 'ABORTING' | 'ABORTED' | 'NEVER_DEPLOYED' | 'DRIFTED' | 'DRY_RUN_IN_PROGRESS' required
latestDeploymentLogIdstring required
lifespanEndAtstring date-time required
markedForAutoDestroy0 | 1 | 2 | 3 | 0 | 1 | 2 | 3 required
isArchivedboolean required

Mark the environment as inactive

vcsCommandsAliasstring
vcsPrCommentsEnabledboolean
continuousDeploymentboolean required
pullRequestPlanDeploymentsboolean required
autoDeployOnPathChangesOnlyboolean required
autoDeployByCustomGlobstring
terragruntWorkingDirectorystring
isSingleUseBlueprintboolean
workflowEnvironmentIdstring
isRemoteBackendboolean required
isLockedboolean required
k8sNamespacestring
isRemoteApplyEnabledboolean
driftStatus'ERROR' | 'DRIFTED' | 'OK' | 'NEVER_RUN' | 'DISABLED' | 'ERROR' | 'DRIFTED' | 'OK' | 'NEVER_RUN' | 'DISABLED' | 'ERROR' | 'DRIFTED' | 'OK' | 'NEVER_RUN' | 'DISABLED' required