v1

latestOpenAPI 3.1.02026-07-26289714404.6 KB
Environments

List Environments

get/environments

Query parameters

limitstring

Number of environments per page. The maximum is 100, with the default value is set to maximum

offsetstring

The offset of the first environment returned. Defaults to 0

excludeFieldsstring

Comma-separated list of fields to exclude from the response (e.g., 'latestDeploymentLog.output,latestDeploymentLog.plan')

organizationIdstring
projectIdstring
onlyMystring
isActivestring
namestring
isRemoteBackendstring
workspaceNamestring
workspaceNamePrefixstring
includeSubEnvironmentsstring
searchTextstring

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