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

Project is the project identifier.

Example: xm8
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=Sed delectus non nam iste.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Ut tempore voluptate.
status
Array of strings

Status of the execution

Example: status=Quibusdam voluptatibus molestias maxime necessitatibus in.&status=Quod eos quia consectetur omnis sint quaerat.&status=Atque quis dolor soluta reprehenderit.
pipeline_name
string

Pipeline name

Example: pipeline_name=Velit velit.
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: y7
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: s
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: l02
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": "Eligendi sint exercitationem.",
  • "pipeline_execution_id": "Fugiat dolores ducimus.",
  • "pipeline_stage_id": "Libero qui aut ut iste quibusdam.",
  • "workspace": "Nostrum dicta minus ex magnam."
}
Response samples
application/json
{
  • "account": "8",
  • "created": 1911684732981497300,
  • "org": "lb8",
  • "pipeline": "Velit eaque non rerum provident laborum alias.",
  • "pipeline_execution_id": "Doloribus praesentium fugit.",
  • "pipeline_stage_id": "Repellat qui molestiae autem voluptatum et quos.",
  • "project": "k",
  • "status": "success",
  • "workspace": "Necessitatibus est aperiam sed quia."
}

Show execution

Show an individual execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Pipeline execution ID

Example: 6l
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: z
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": "vs",
  • "created": 5505820557495760000,
  • "org": "y",
  • "pipeline": "Laboriosam non vel debitis et consectetur.",
  • "pipeline_execution_id": "Quas cum sed.",
  • "pipeline_stage_id": "Blanditiis quaerat voluptatem et dolor.",
  • "project": "e6",
  • "status": "none",
  • "workspace": "Molestiae necessitatibus voluptates omnis voluptatibus ut."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: xu6
query Parameters
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Dignissimos eligendi consequatur repellat aut ipsa.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: tl
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": "Ipsa ipsam in fuga facere numquam.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Reprehenderit recusandae magni et sapiente quisquam.",
  • "past_total_monthly_cost": "Aut odio.",
  • "percentage_change_total_monthly_cost": 8796286972836387000,
  • "stage_execution_id": "Sed in qui amet.",
  • "stage_id": "Ut vitae eveniet quia possimus consequatur.",
  • "total_monthly_cost": "Nulla et nesciunt et facilis.",
  • "workspace_id": "Rerum molestias error excepturi laudantium dignissimos."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: k
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=Repellendus illo voluptas unde qui sequi aliquid.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: bug
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": "Repellendus aspernatur vel.",
  • "pipeline_stage": "Fugit harum.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "stage_id": "Amet modi dolores eius eum sunt vel.",
  • "workspace_id": "Quaerat asperiores qui autem itaque laborum."
}

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

Project is the project identifier.

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

Pipeline execution ID

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