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

Project is the project identifier.

Example: xoh
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=Excepturi incidunt sapiente asperiores eum dolorem.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Nihil sed.
status
Array of strings

Status of the execution

Example: status=Tempore ipsum esse fugit.&status=Et enim ut illo adipisci voluptas nulla.&status=Labore in dolores aut.&status=Quasi quidem.
pipeline_name
string

Pipeline name

Example: pipeline_name=Voluptas fugit officiis possimus.
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: c
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: pkc
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: es
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": "Vero qui id ut iure.",
  • "pipeline_execution_id": "Dignissimos et facere.",
  • "pipeline_stage_id": "Ipsum ipsum harum occaecati laborum vel placeat.",
  • "workspace": "Ipsum earum corrupti."
}
Response samples
application/json
{
  • "account": "dm",
  • "audit": "Autem doloremque minus consequatur non autem.",
  • "created": 6437406989673660000,
  • "org": "f8",
  • "pipeline": "Assumenda consequatur id.",
  • "pipeline_execution_id": "Aut reprehenderit.",
  • "pipeline_stage_id": "Reprehenderit alias pariatur possimus id sint sed.",
  • "project": "01d",
  • "status": "none",
  • "workspace": "Rerum et."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: rxs
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",
  • "audit": "A quae enim molestiae.",
  • "created": 8663038914657972000,
  • "org": "6ej",
  • "pipeline": "Odio nesciunt mollitia architecto repudiandae.",
  • "pipeline_execution_id": "Earum ab eum unde nesciunt aut voluptas.",
  • "pipeline_stage_id": "Sapiente vel placeat.",
  • "project": "v8c",
  • "status": "failure",
  • "workspace": "Consequuntur laboriosam fugit labore repellat hic."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

Example: hqh
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": "Minus minima eum et deserunt in nesciunt.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Voluptatem ut officia consectetur et.",
  • "past_total_monthly_cost": "Molestiae autem consequatur incidunt.",
  • "percentage_change_total_monthly_cost": 4442682744324066000,
  • "total_monthly_cost": "Sed laudantium."
}

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

Project is the project identifier.

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

Pipeline execution ID

Example: qf
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: 6
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": "Natus eum eaque natus.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "workspace_id": "Aut quia quisquam dolorem sequi fuga ipsum."
}