executions

Executions Service handles the API for workflow executions.

At this time it is a read-only API with no ability 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: a
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=Quidem ut illo.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Doloribus et autem minima.
status
Array of strings

Status of the execution

Example: status=Sit laudantium.&status=Aut quam voluptatum iusto suscipit nesciunt.&status=Sapiente consequatur.
pipeline_name
string

Pipeline name

Example: pipeline_name=Eveniet qui qui sint omnis aut ipsum.
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: y
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: lr
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: gpm
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": "Enim voluptate natus.",
  • "pipeline_execution_id": "Rerum id consectetur accusamus harum aliquid.",
  • "pipeline_stage_id": "Ut dignissimos sed quia.",
  • "workspace": "Eligendi distinctio."
}
Response samples
application/json
{
  • "account": "fdw",
  • "created": 4555248163680630000,
  • "org": "ygk",
  • "pipeline": "Qui ut fuga minus sed iure expedita.",
  • "pipeline_execution_id": "Iste modi iste maiores.",
  • "pipeline_stage_id": "Numquam reprehenderit dicta nisi.",
  • "project": "h",
  • "status": "failure",
  • "workspace": "Dolore ipsum."
}

Show execution

Show an individual execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Pipeline execution ID

Example: q
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: fj
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": "9",
  • "created": 1831741402713271000,
  • "org": "u",
  • "pipeline": "Ut quidem cumque est consequatur.",
  • "pipeline_execution_id": "Distinctio voluptatem.",
  • "pipeline_stage_id": "Adipisci possimus maiores.",
  • "project": "79d",
  • "status": "none",
  • "workspace": "Et reprehenderit architecto voluptatem voluptatem nisi."
}

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: v
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Pipeline execution ID

Example: m
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: td5
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: 0r9
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Pipeline execution ID

Example: v
query Parameters
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Expedita sit.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: d
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": "Aut ut doloremque eaque.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Fugit voluptatibus exercitationem cumque mollitia laborum dolores.",
  • "past_total_monthly_cost": "Id id ad ipsum.",
  • "percentage_change_total_monthly_cost": 1332440281197252900,
  • "stage_execution_id": "Natus impedit.",
  • "stage_id": "Eos sequi voluptatem nulla perspiciatis officia.",
  • "total_monthly_cost": "Laborum possimus quibusdam dolores qui sint aut.",
  • "workspace_id": "Eum unde."
}

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: 6
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

Example: 5
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: 3dc
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Pipeline execution ID

Example: h
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=Porro dolores et perspiciatis ipsa.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: f
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": "Iste impedit sint iusto libero maxime.",
  • "pipeline_stage": "Veniam officiis eum consequuntur corrupti.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "stage_id": "Excepturi aut.",
  • "workspace_id": "Et non enim sed natus qui."
}

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: q4a
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Pipeline execution ID

Example: ssg
query Parameters
exclude_state
boolean
Default: false

When true, exclude values from the state in the response

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

Account is the internal customer account ID.

Example: sv5
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
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]