Body
application/json
This is the schema of what env0 sends to your endpoint when a deploy has failed
Response
200
Return a 200 status to indicate that the data was received successfully
{
"type": "<string>",
"source": "<string>",
"id": "<string>",
"time": "<string>",
"datacontenttype": "<string>",
"data": {
"deploymentLog": {
"url": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "deploy",
"startedBy": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"output": {},
"error": {},
"failedCommand": "<string>",
"customEnv0EnvironmentVariables": {
"environmentId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"deploymentLogId": "<string>",
"deploymentType": "deploy",
"deploymentRevision": "<string>",
"workspaceName": "<string>",
"rootDir": "<string>",
"organizationId": "<string>",
"templateId": "<string>",
"templateDir": "<string>",
"templateName": "<string>",
"environmentName": "<string>",
"environmentCreatorName": "<string>",
"environmentCreatorUserId": "<string>",
"environmentCreatorEmail": "<string>",
"deployerName": "<string>",
"deployerUserId": "<string>",
"deployerEmail": "<string>",
"reviewerName": "<string>",
"reviewerEmail": "<string>",
"reviewerUserId": "<string>",
"vcsProvider": "gitlab",
"prAuthor": "<string>",
"prNumber": "<string>",
"prSourceRepository": "<string>",
"prSourceBranch": "<string>",
"prTargetBranch": "<string>",
"commitHash": "<string>",
"commitUrl": "<string>",
"oidcToken": "<string>",
"vcsAccessToken": "<string>",
"tfPlanJson": "<string>",
"cliArgsPlan": "<string>",
"cliArgsApply": "<string>"
},
"costEstimation": {
"totalMonthlyCost": 123,
"monthlyCostDiff": 123,
"projects": [
{
"diff": {
"totalMonthlyCost": "<any>"
}
}
]
},
"status": "IN_PROGRESS",
"blueprintId": "<string>",
"blueprintName": "<string>",
"blueprintRepository": "<string>",
"blueprintRevision": "<string>",
"blueprintPath": "<string>",
"blueprintType": "opentofu",
"comment": "<string>",
"environmentId": "<string>",
"resourceCount": 123,
"resources": [
{
"provider": "<string>",
"type": "<string>",
"name": "<string>",
"moduleName": "<string>"
}
],
"startedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isScheduledRun": true,
"abortedBy": "<string>",
"abortedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"gitUser": "<string>",
"gitAvatarUrl": "<string>",
"prNumber": "<string>",
"triggerName": "user",
"driftDetected": true,
"plan": {
"resourceChanges": [
{
"id": "<string>",
"cloudId": "<string>",
"moduleName": "<string>",
"driftByCloud": true,
"name": "<string>",
"providerName": "<string>",
"type": "<string>",
"path": "<string>",
"action": "create",
"attributes": [
"<any>"
],
"importing": {
"id": "<any>"
},
"actionReason": "replace_because_tainted",
"createBeforeDestroy": true,
"previousAddress": "<string>"
}
],
"outputChanges": [
{
"moduleName": "<string>",
"name": "<string>",
"action": "create",
"attributes": [
"<any>"
]
}
]
},
"planSummary": {
"added": 123,
"changed": 123,
"destroyed": 123,
"imported": 123
},
"isSkippedApply": true,
"workflowDeploymentId": "<string>",
"workflowFile": {
"settings": {
"environmentRemovalStrategy": "destroy"
},
"environments": {}
},
"workflowDeploymentOptions": {
"node": "<string>",
"operation": "run-from-here"
},
"stateVersionId": "<string>",
"reviewersUsers": [
{
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"action": "approved"
}
],
"reviewers": [
{
"userId": "<string>",
"action": "approved"
}
],
"reviewedBy": "<string>",
"reviewedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"targets": [
"<string>"
],
"variables": [
{
"id": "<string>",
"name": "<string>",
"scope": "SET",
"scopeId": "<string>",
"value": "<string>",
"isSensitive": true,
"type": 0,
"schema": {
"type": "<string>",
"enum": [
"<string>"
],
"format": "HCL"
},
"userId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>"
}
],
"gitMetadata": {
"commit": "<string>",
"branch": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"providerVersions": {},
"moduleVersions": {},
"stateFileHash": {
"value": "<string>"
},
"driftCause": {
"unappliedCommits": [
{
"userEmail": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"commitHash": "<string>"
}
]
}
},
"environment": {
"url": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"organizationId": "<string>",
"projectId": "<string>",
"userId": "<string>",
"workspaceName": "<string>",
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"requiresApproval": true,
"status": "CREATED",
"latestDeploymentLogId": "<string>",
"latestDeploymentLog": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "deploy",
"startedBy": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"output": {},
"error": {},
"failedCommand": "<string>",
"customEnv0EnvironmentVariables": {
"environmentId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"deploymentLogId": "<string>",
"deploymentType": "deploy",
"deploymentRevision": "<string>",
"workspaceName": "<string>",
"rootDir": "<string>",
"organizationId": "<string>",
"templateId": "<string>",
"templateDir": "<string>",
"templateName": "<string>",
"environmentName": "<string>",
"environmentCreatorName": "<string>",
"environmentCreatorUserId": "<string>",
"environmentCreatorEmail": "<string>",
"deployerName": "<string>",
"deployerUserId": "<string>",
"deployerEmail": "<string>",
"reviewerName": "<string>",
"reviewerEmail": "<string>",
"reviewerUserId": "<string>",
"vcsProvider": "gitlab",
"prAuthor": "<string>",
"prNumber": "<string>",
"prSourceRepository": "<string>",
"prSourceBranch": "<string>",
"prTargetBranch": "<string>",
"commitHash": "<string>",
"commitUrl": "<string>",
"oidcToken": "<string>",
"vcsAccessToken": "<string>",
"tfPlanJson": "<string>",
"cliArgsPlan": "<string>",
"cliArgsApply": "<string>"
},
"costEstimation": {
"totalMonthlyCost": 123,
"monthlyCostDiff": 123,
"projects": [
{
"diff": {
"totalMonthlyCost": "<any>"
}
}
]
},
"status": "IN_PROGRESS",
"blueprintId": "<string>",
"blueprintName": "<string>",
"blueprintRepository": "<string>",
"blueprintRevision": "<string>",
"blueprintPath": "<string>",
"blueprintType": "opentofu",
"comment": "<string>",
"environmentId": "<string>",
"resourceCount": 123,
"resources": [
{
"provider": "<string>",
"type": "<string>",
"name": "<string>",
"moduleName": "<string>"
}
],
"startedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isScheduledRun": true,
"abortedBy": "<string>",
"abortedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"gitUser": "<string>",
"gitAvatarUrl": "<string>",
"prNumber": "<string>",
"triggerName": "user",
"driftDetected": true,
"plan": {
"resourceChanges": [
{
"id": "<string>",
"cloudId": "<string>",
"moduleName": "<string>",
"driftByCloud": true,
"name": "<string>",
"providerName": "<string>",
"type": "<string>",
"path": "<string>",
"action": "create",
"attributes": [
"<any>"
],
"importing": {
"id": "<any>"
},
"actionReason": "replace_because_tainted",
"createBeforeDestroy": true,
"previousAddress": "<string>"
}
],
"outputChanges": [
{
"moduleName": "<string>",
"name": "<string>",
"action": "create",
"attributes": [
"<any>"
]
}
]
},
"planSummary": {
"added": 123,
"changed": 123,
"destroyed": 123,
"imported": 123
},
"isSkippedApply": true,
"workflowDeploymentId": "<string>",
"workflowFile": {
"settings": {
"environmentRemovalStrategy": "destroy"
},
"environments": {}
},
"workflowDeploymentOptions": {
"node": "<string>",
"operation": "run-from-here"
},
"stateVersionId": "<string>",
"reviewersUsers": [
{
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"action": "approved"
}
],
"reviewers": [
{
"userId": "<string>",
"action": "approved"
}
],
"reviewedBy": "<string>",
"reviewedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"targets": [
"<string>"
],
"variables": [
{
"id": "<string>",
"name": "<string>",
"scope": "SET",
"scopeId": "<string>",
"value": "<string>",
"isSensitive": true,
"type": 0,
"schema": {
"type": "<string>",
"enum": [
"<string>"
],
"format": "HCL"
},
"userId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>"
}
],
"gitMetadata": {
"commit": "<string>",
"branch": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"providerVersions": {},
"moduleVersions": {},
"stateFileHash": {
"value": "<string>"
},
"driftCause": {
"unappliedCommits": [
{
"userEmail": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"commitHash": "<string>"
}
]
}
},
"lifespanEndAt": "2023-11-07T05:31:56Z",
"markedForAutoDestroy": 0,
"isArchived": true,
"nextScheduledDates": {
"deploy": "2023-11-07T05:31:56Z",
"destroy": "2023-11-07T05:31:56Z"
},
"vcsCommandsAlias": "<string>",
"vcsPrCommentsEnabled": true,
"continuousDeployment": true,
"pullRequestPlanDeployments": true,
"autoDeployOnPathChangesOnly": true,
"autoDeployByCustomGlob": "<string>",
"terragruntWorkingDirectory": "<string>",
"isSingleUseBlueprint": true,
"workflowEnvironmentId": "<string>",
"isRemoteBackend": true,
"isLocked": true,
"lockStatus": {
"reason": "<string>",
"updatedBy": "<string>",
"updatedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"updatedAt": "2023-11-07T05:31:56Z"
},
"k8sNamespace": "<string>",
"isRemoteApplyEnabled": true,
"driftStatus": "ERROR"
},
"project": {
"url": "<string>",
"name": "<string>",
"description": "<string>",
"organizationId": "<string>",
"parentProjectId": "<string>",
"id": "<string>",
"createdBy": "<string>",
"createdByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isArchived": true,
"hierarchy": "<string>"
},
"organization": {
"url": "<string>",
"maxTtl": "<string>",
"defaultTtl": "<string>",
"doNotReportSkippedStatusChecks": true,
"doNotConsiderMergeCommitsForPrPlans": true,
"enableOidc": true,
"enforcePrCommenterPermissions": true,
"projectCustomFlowsPolicy": "MERGE_WITH_TEMPLATES",
"allowEnv0Secrets": true,
"requireApprovalForPrApplies": true,
"id": "<string>",
"name": "<string>",
"description": "<string>",
"photoUrl": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mode": "paying",
"trialEnd": "2023-11-07T05:31:56Z",
"role": "<string>",
"isSelfHostedK8s": true
},
"blueprint": {
"url": "<string>",
"name": "<string>",
"description": "<string>",
"retry": {
"onDestroy": {
"times": 123,
"errorRegex": "<string>"
},
"onDeploy": {
"times": 123,
"errorRegex": "<string>"
}
},
"runTestsOnPullRequest": true,
"isTerragruntRunAll": true,
"projectIds": [
"<string>"
],
"tagPrefix": "<string>",
"repository": "<string>",
"revision": "<string>",
"path": "<string>",
"fileName": "<string>",
"helmChartName": "<string>",
"terraformVersion": "<string>",
"opentofuVersion": "<string>",
"terragruntVersion": "<string>",
"terragruntTfBinary": "terraform",
"pulumiVersion": "<string>",
"ansibleVersion": "<string>",
"type": "opentofu",
"tokenName": "<string>",
"tokenId": "<string>",
"sshKeys": [
{
"id": "<string>",
"name": "<string>"
}
],
"githubInstallationId": 123,
"bitbucketClientKey": "<string>",
"isBitbucketServer": true,
"isGitLabEnterprise": true,
"isGitHubEnterprise": true,
"isGitLab": true,
"isAzureDevOps": true,
"isHelmRepository": true,
"vcsConnectionId": "<string>",
"id": "<string>",
"author": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"authorId": "<string>",
"organizationId": "<string>",
"projectId": "<string>",
"isSingleUse": true
},
"gitRevision": "<string>"
}
}
This webhook is fired when a deploy has failed
{
"type": "<string>",
"source": "<string>",
"id": "<string>",
"time": "<string>",
"datacontenttype": "<string>",
"data": {
"deploymentLog": {
"url": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "deploy",
"startedBy": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"output": {},
"error": {},
"failedCommand": "<string>",
"customEnv0EnvironmentVariables": {
"environmentId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"deploymentLogId": "<string>",
"deploymentType": "deploy",
"deploymentRevision": "<string>",
"workspaceName": "<string>",
"rootDir": "<string>",
"organizationId": "<string>",
"templateId": "<string>",
"templateDir": "<string>",
"templateName": "<string>",
"environmentName": "<string>",
"environmentCreatorName": "<string>",
"environmentCreatorUserId": "<string>",
"environmentCreatorEmail": "<string>",
"deployerName": "<string>",
"deployerUserId": "<string>",
"deployerEmail": "<string>",
"reviewerName": "<string>",
"reviewerEmail": "<string>",
"reviewerUserId": "<string>",
"vcsProvider": "gitlab",
"prAuthor": "<string>",
"prNumber": "<string>",
"prSourceRepository": "<string>",
"prSourceBranch": "<string>",
"prTargetBranch": "<string>",
"commitHash": "<string>",
"commitUrl": "<string>",
"oidcToken": "<string>",
"vcsAccessToken": "<string>",
"tfPlanJson": "<string>",
"cliArgsPlan": "<string>",
"cliArgsApply": "<string>"
},
"costEstimation": {
"totalMonthlyCost": 123,
"monthlyCostDiff": 123,
"projects": [
{
"diff": {
"totalMonthlyCost": "<any>"
}
}
]
},
"status": "IN_PROGRESS",
"blueprintId": "<string>",
"blueprintName": "<string>",
"blueprintRepository": "<string>",
"blueprintRevision": "<string>",
"blueprintPath": "<string>",
"blueprintType": "opentofu",
"comment": "<string>",
"environmentId": "<string>",
"resourceCount": 123,
"resources": [
{
"provider": "<string>",
"type": "<string>",
"name": "<string>",
"moduleName": "<string>"
}
],
"startedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isScheduledRun": true,
"abortedBy": "<string>",
"abortedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"gitUser": "<string>",
"gitAvatarUrl": "<string>",
"prNumber": "<string>",
"triggerName": "user",
"driftDetected": true,
"plan": {
"resourceChanges": [
{
"id": "<string>",
"cloudId": "<string>",
"moduleName": "<string>",
"driftByCloud": true,
"name": "<string>",
"providerName": "<string>",
"type": "<string>",
"path": "<string>",
"action": "create",
"attributes": [
"<any>"
],
"importing": {
"id": "<any>"
},
"actionReason": "replace_because_tainted",
"createBeforeDestroy": true,
"previousAddress": "<string>"
}
],
"outputChanges": [
{
"moduleName": "<string>",
"name": "<string>",
"action": "create",
"attributes": [
"<any>"
]
}
]
},
"planSummary": {
"added": 123,
"changed": 123,
"destroyed": 123,
"imported": 123
},
"isSkippedApply": true,
"workflowDeploymentId": "<string>",
"workflowFile": {
"settings": {
"environmentRemovalStrategy": "destroy"
},
"environments": {}
},
"workflowDeploymentOptions": {
"node": "<string>",
"operation": "run-from-here"
},
"stateVersionId": "<string>",
"reviewersUsers": [
{
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"action": "approved"
}
],
"reviewers": [
{
"userId": "<string>",
"action": "approved"
}
],
"reviewedBy": "<string>",
"reviewedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"targets": [
"<string>"
],
"variables": [
{
"id": "<string>",
"name": "<string>",
"scope": "SET",
"scopeId": "<string>",
"value": "<string>",
"isSensitive": true,
"type": 0,
"schema": {
"type": "<string>",
"enum": [
"<string>"
],
"format": "HCL"
},
"userId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>"
}
],
"gitMetadata": {
"commit": "<string>",
"branch": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"providerVersions": {},
"moduleVersions": {},
"stateFileHash": {
"value": "<string>"
},
"driftCause": {
"unappliedCommits": [
{
"userEmail": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"commitHash": "<string>"
}
]
}
},
"environment": {
"url": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"organizationId": "<string>",
"projectId": "<string>",
"userId": "<string>",
"workspaceName": "<string>",
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"requiresApproval": true,
"status": "CREATED",
"latestDeploymentLogId": "<string>",
"latestDeploymentLog": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"type": "deploy",
"startedBy": "<string>",
"queuedAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"output": {},
"error": {},
"failedCommand": "<string>",
"customEnv0EnvironmentVariables": {
"environmentId": "<string>",
"projectId": "<string>",
"projectName": "<string>",
"deploymentLogId": "<string>",
"deploymentType": "deploy",
"deploymentRevision": "<string>",
"workspaceName": "<string>",
"rootDir": "<string>",
"organizationId": "<string>",
"templateId": "<string>",
"templateDir": "<string>",
"templateName": "<string>",
"environmentName": "<string>",
"environmentCreatorName": "<string>",
"environmentCreatorUserId": "<string>",
"environmentCreatorEmail": "<string>",
"deployerName": "<string>",
"deployerUserId": "<string>",
"deployerEmail": "<string>",
"reviewerName": "<string>",
"reviewerEmail": "<string>",
"reviewerUserId": "<string>",
"vcsProvider": "gitlab",
"prAuthor": "<string>",
"prNumber": "<string>",
"prSourceRepository": "<string>",
"prSourceBranch": "<string>",
"prTargetBranch": "<string>",
"commitHash": "<string>",
"commitUrl": "<string>",
"oidcToken": "<string>",
"vcsAccessToken": "<string>",
"tfPlanJson": "<string>",
"cliArgsPlan": "<string>",
"cliArgsApply": "<string>"
},
"costEstimation": {
"totalMonthlyCost": 123,
"monthlyCostDiff": 123,
"projects": [
{
"diff": {
"totalMonthlyCost": "<any>"
}
}
]
},
"status": "IN_PROGRESS",
"blueprintId": "<string>",
"blueprintName": "<string>",
"blueprintRepository": "<string>",
"blueprintRevision": "<string>",
"blueprintPath": "<string>",
"blueprintType": "opentofu",
"comment": "<string>",
"environmentId": "<string>",
"resourceCount": 123,
"resources": [
{
"provider": "<string>",
"type": "<string>",
"name": "<string>",
"moduleName": "<string>"
}
],
"startedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isScheduledRun": true,
"abortedBy": "<string>",
"abortedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"gitUser": "<string>",
"gitAvatarUrl": "<string>",
"prNumber": "<string>",
"triggerName": "user",
"driftDetected": true,
"plan": {
"resourceChanges": [
{
"id": "<string>",
"cloudId": "<string>",
"moduleName": "<string>",
"driftByCloud": true,
"name": "<string>",
"providerName": "<string>",
"type": "<string>",
"path": "<string>",
"action": "create",
"attributes": [
"<any>"
],
"importing": {
"id": "<any>"
},
"actionReason": "replace_because_tainted",
"createBeforeDestroy": true,
"previousAddress": "<string>"
}
],
"outputChanges": [
{
"moduleName": "<string>",
"name": "<string>",
"action": "create",
"attributes": [
"<any>"
]
}
]
},
"planSummary": {
"added": 123,
"changed": 123,
"destroyed": 123,
"imported": 123
},
"isSkippedApply": true,
"workflowDeploymentId": "<string>",
"workflowFile": {
"settings": {
"environmentRemovalStrategy": "destroy"
},
"environments": {}
},
"workflowDeploymentOptions": {
"node": "<string>",
"operation": "run-from-here"
},
"stateVersionId": "<string>",
"reviewersUsers": [
{
"user": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"action": "approved"
}
],
"reviewers": [
{
"userId": "<string>",
"action": "approved"
}
],
"reviewedBy": "<string>",
"reviewedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"targets": [
"<string>"
],
"variables": [
{
"id": "<string>",
"name": "<string>",
"scope": "SET",
"scopeId": "<string>",
"value": "<string>",
"isSensitive": true,
"type": 0,
"schema": {
"type": "<string>",
"enum": [
"<string>"
],
"format": "HCL"
},
"userId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>"
}
],
"gitMetadata": {
"commit": "<string>",
"branch": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
},
"providerVersions": {},
"moduleVersions": {},
"stateFileHash": {
"value": "<string>"
},
"driftCause": {
"unappliedCommits": [
{
"userEmail": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"commitHash": "<string>"
}
]
}
},
"lifespanEndAt": "2023-11-07T05:31:56Z",
"markedForAutoDestroy": 0,
"isArchived": true,
"nextScheduledDates": {
"deploy": "2023-11-07T05:31:56Z",
"destroy": "2023-11-07T05:31:56Z"
},
"vcsCommandsAlias": "<string>",
"vcsPrCommentsEnabled": true,
"continuousDeployment": true,
"pullRequestPlanDeployments": true,
"autoDeployOnPathChangesOnly": true,
"autoDeployByCustomGlob": "<string>",
"terragruntWorkingDirectory": "<string>",
"isSingleUseBlueprint": true,
"workflowEnvironmentId": "<string>",
"isRemoteBackend": true,
"isLocked": true,
"lockStatus": {
"reason": "<string>",
"updatedBy": "<string>",
"updatedByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"updatedAt": "2023-11-07T05:31:56Z"
},
"k8sNamespace": "<string>",
"isRemoteApplyEnabled": true,
"driftStatus": "ERROR"
},
"project": {
"url": "<string>",
"name": "<string>",
"description": "<string>",
"organizationId": "<string>",
"parentProjectId": "<string>",
"id": "<string>",
"createdBy": "<string>",
"createdByUser": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"isArchived": true,
"hierarchy": "<string>"
},
"organization": {
"url": "<string>",
"maxTtl": "<string>",
"defaultTtl": "<string>",
"doNotReportSkippedStatusChecks": true,
"doNotConsiderMergeCommitsForPrPlans": true,
"enableOidc": true,
"enforcePrCommenterPermissions": true,
"projectCustomFlowsPolicy": "MERGE_WITH_TEMPLATES",
"allowEnv0Secrets": true,
"requireApprovalForPrApplies": true,
"id": "<string>",
"name": "<string>",
"description": "<string>",
"photoUrl": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mode": "paying",
"trialEnd": "2023-11-07T05:31:56Z",
"role": "<string>",
"isSelfHostedK8s": true
},
"blueprint": {
"url": "<string>",
"name": "<string>",
"description": "<string>",
"retry": {
"onDestroy": {
"times": 123,
"errorRegex": "<string>"
},
"onDeploy": {
"times": 123,
"errorRegex": "<string>"
}
},
"runTestsOnPullRequest": true,
"isTerragruntRunAll": true,
"projectIds": [
"<string>"
],
"tagPrefix": "<string>",
"repository": "<string>",
"revision": "<string>",
"path": "<string>",
"fileName": "<string>",
"helmChartName": "<string>",
"terraformVersion": "<string>",
"opentofuVersion": "<string>",
"terragruntVersion": "<string>",
"terragruntTfBinary": "terraform",
"pulumiVersion": "<string>",
"ansibleVersion": "<string>",
"type": "opentofu",
"tokenName": "<string>",
"tokenId": "<string>",
"sshKeys": [
{
"id": "<string>",
"name": "<string>"
}
],
"githubInstallationId": 123,
"bitbucketClientKey": "<string>",
"isBitbucketServer": true,
"isGitLabEnterprise": true,
"isGitHubEnterprise": true,
"isGitLab": true,
"isAzureDevOps": true,
"isHelmRepository": true,
"vcsConnectionId": "<string>",
"id": "<string>",
"author": {
"email": "<string>",
"user_id": "<string>",
"created_at": "<string>",
"app_metadata": {},
"picture": "<string>",
"name": "<string>",
"last_login": "<string>",
"given_name": "<string>",
"family_name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"isDeleted": true,
"authorId": "<string>",
"organizationId": "<string>",
"projectId": "<string>",
"isSingleUse": true
},
"gitRevision": "<string>"
}
}
This is the schema of what env0 sends to your endpoint when a deploy has failed
Return a 200 status to indicate that the data was received successfully
Was this page helpful?