executions

Executions Service handles the API for workflow executions.

At this time it is a read-only API with no abilty to directly create or edit executions. Instead these are triggered from the Workspaces Service.

List executions

List all executions.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: z
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: ne
query Parameters
limit
integer <int64> [ 1 .. 1000 ]
Default: 30

Limit is the number of records to return for a page.

Example: limit=30
page
integer <int64> >= 1
Default: 1

Page is the page number to return relative to the page 'limit'.

Example: page=1
workspace
string

Workspace identifier

Example: workspace=Adipisci reiciendis.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Voluptas nulla ab voluptatem delectus consequatur aut.
status
Array of strings

Status of the execution

Example: status=Aut non aut quaerat distinctio porro.&status=Quas et eos ut ullam ducimus quos.
pipeline_name
string

Pipeline name

Example: pipeline_name=Eius sed est sapiente.
start_time
integer <int64>

Specify the start time for the query

Example: start_time=1691150743950
end_time
integer <int64>

Specify the end time limit for the query

Example: end_time=1691150743950
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: l2v
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Create execution

Create a new execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: v0l
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: jk2
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 00
Request Body schema: application/json
required
pipeline
required
string

The unique identifier for the associated pipeline

pipeline_execution_id
required
string

The unique identifier for the associated pipeline execution

pipeline_stage_id
required
string

The unique identifier for the associated pipeline stage

workspace
required
string

The unique identifier for the associated workspace

Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

post/iacm/api/orgs/{org}/projects/{project}/executions
Request samples
application/json
{
  • "pipeline": "Sit et temporibus autem voluptatibus eveniet.",
  • "pipeline_execution_id": "Neque asperiores quo aliquid.",
  • "pipeline_stage_id": "Ipsum voluptates quia sed qui optio.",
  • "workspace": "Aut eum."
}
Response samples
application/json
{
  • "account": "6",
  • "created": 824064631257257300,
  • "org": "rp",
  • "pipeline": "Nihil reiciendis fuga.",
  • "pipeline_execution_id": "Error laborum perferendis saepe.",
  • "pipeline_stage_id": "Quasi earum.",
  • "project": "fw",
  • "status": "none",
  • "workspace": "Nesciunt laudantium aliquam aut in."
}

Show execution

Show an individual execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: 4g1
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: mz
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: 9z
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

Example: v3l
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: u
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/{pipeline_stage_id}
Request samples
Response samples
application/json
{
  • "account": "f",
  • "created": 7625744138253649000,
  • "org": "h",
  • "pipeline": "Distinctio suscipit qui aut.",
  • "pipeline_execution_id": "Perferendis asperiores enim quo beatae recusandae laudantium.",
  • "pipeline_stage_id": "Accusantium consequatur.",
  • "project": "tq9",
  • "status": "success",
  • "workspace": "Earum dolorem."
}

Update execution

Modify an individual execution by adding audit data.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: eu2
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: zs0
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: 2w
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

Example: f9
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: qzv
Request Body schema: application/json
required
object (Audit)
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

post/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/{pipeline_stage_id}/audit-event
Request samples
application/json
{
  • "audit": {
    }
}

List cost changes

List cost changes from the latest plan and last applied state for the current execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: hb
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: s7
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: h
query Parameters
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Voluptates quo consequatur enim omnis.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: cw
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/cost-changes
Request samples
Response samples
application/json
{
  • "currency": "In et nostrum corrupti qui fugit perspiciatis.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "In accusantium sunt.",
  • "past_total_monthly_cost": "Porro enim molestiae laborum molestiae vero.",
  • "percentage_change_total_monthly_cost": 4802187063298460000,
  • "stage_execution_id": "Voluptas quae.",
  • "stage_id": "Est voluptatem optio molestias suscipit est.",
  • "total_monthly_cost": "Aut fugit ut.",
  • "workspace_id": "Repellat iure alias voluptatem."
}

List cost changes for all stages

List cost changes for all stages from the latest plan and last applied state for the current execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: 73
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: i8u
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: yv
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: bgb
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/cost-changes-all-stages
Request samples
Response samples
application/json
[
  • {
    },
  • {
    }
]

List resource changes

List resource changes from the latest plan and state for this execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: gru
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: p
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: 40
query Parameters
exclude_state
boolean
Default: false

When true, exclude values from the state in the response

Example: exclude_state=true
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Est quod ad dignissimos temporibus vitae.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 4
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/resource-changes
Request samples
Response samples
application/json
{
  • "data_sources": [
    ],
  • "drift_changes": [
    ],
  • "outputs": [
    ],
  • "pipeline_execution": "Deleniti in a excepturi qui.",
  • "pipeline_stage": "Officiis magni odit sed.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "stage_id": "Perspiciatis quia fugiat omnis reprehenderit error.",
  • "workspace_id": "Explicabo quae."
}

List resource changes for all stages

List resource changes for all stages from the latest plan and state for this execution.

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: w
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: 8y
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: v9h
query Parameters
exclude_state
boolean
Default: false

When true, exclude values from the state in the response

Example: exclude_state=false
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: u
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/executions/{pipeline_execution_id}/resource-changes-all-stages
Request samples
Response samples
application/json
[
  • {
    },
  • {
    }
]