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 executions

List all executions.

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

Org is the organisation identifier.

Example: 8xr
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: b
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=Tempore eum optio eaque.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Reprehenderit magnam consequuntur aliquid et quae.
status
Array of strings

Status of the execution

Example: status=Maiores ea sed qui eum ipsa.&status=Dolor quod et quos natus.&status=Iure et aut modi recusandae architecto tenetur.&status=Repellendus enim.
pipeline_name
string

Pipeline name

Example: pipeline_name=Suscipit quos minus velit velit ut.
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: 45
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 executions

Create a new execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Account is the internal customer account ID.

Example: uhx
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": "Et autem.",
  • "pipeline_execution_id": "Consequatur occaecati sapiente est.",
  • "pipeline_stage_id": "Aut dolorum quis illum.",
  • "workspace": "Saepe quaerat modi."
}
Response samples
application/json
{
  • "account": "9ks",
  • "audit": "Adipisci sit magnam.",
  • "created": 6159324415113830000,
  • "org": "3i",
  • "pipeline": "Sit provident mollitia et cumque asperiores.",
  • "pipeline_execution_id": "Dignissimos ut.",
  • "pipeline_stage_id": "Nihil nam doloribus consectetur delectus dolor.",
  • "project": "xyr",
  • "status": "none",
  • "workspace": "Fuga ratione sit fuga quis."
}

show-execution executions

Show an individual execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: dil
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": "2ax",
  • "audit": "Cupiditate deserunt repudiandae.",
  • "created": 1527318477274541300,
  • "org": "a1",
  • "pipeline": "Aut est qui minus aut fugiat neque.",
  • "pipeline_execution_id": "Qui quo sint quisquam officia explicabo.",
  • "pipeline_stage_id": "Praesentium accusantium exercitationem.",
  • "project": "ubu",
  • "status": "success",
  • "workspace": "Necessitatibus aperiam temporibus sed aut sit quis."
}

modify-execution executions

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: 8x
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 executions

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

Example: 41e
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": "Repudiandae sequi doloremque autem modi.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Et ipsa eum.",
  • "past_total_monthly_cost": "Omnis consequuntur fuga non fuga omnis soluta.",
  • "percentage_change_total_monthly_cost": 774232517154614000,
  • "total_monthly_cost": "Voluptatem et voluptatem magnam."
}

list-resource-changes executions

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

Project is the project identifier.

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

Pipeline execution ID

Example: qkx
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: 22
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
{
  • "drift_changes": [
    ],
  • "outputs": [
    ],
  • "pipeline_execution": "Voluptatum assumenda cupiditate eaque cupiditate amet aut.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "workspace_id": "Suscipit impedit quis tenetur."
}