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

Project is the project identifier.

Example: t
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=Vel eligendi.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Consectetur eum aut excepturi veniam.
status
Array of strings

Status of the execution

Example: status=Voluptas rem voluptatem ut.&status=Exercitationem neque sint possimus.
pipeline_name
string

Pipeline name

Example: pipeline_name=Aperiam repellendus rerum distinctio reiciendis id libero.
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: 1z
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: ery
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: gr5
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": "Quod ipsum minima.",
  • "pipeline_execution_id": "Fuga nobis.",
  • "pipeline_stage_id": "Vero omnis sunt dolore.",
  • "workspace": "Ad eaque."
}
Response samples
application/json
{
  • "account": "i",
  • "created": 8620816304300119000,
  • "org": "h",
  • "pipeline": "Quam veritatis minima ipsa dignissimos blanditiis labore.",
  • "pipeline_execution_id": "Et est quam.",
  • "pipeline_stage_id": "Recusandae et suscipit ut.",
  • "project": "wx",
  • "status": "failure",
  • "workspace": "Harum id ut rerum qui."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: x
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": "0",
  • "created": 1369515592188667000,
  • "org": "lg",
  • "pipeline": "Voluptatibus quaerat doloribus nihil temporibus.",
  • "pipeline_execution_id": "Iusto voluptatibus blanditiis molestiae perferendis.",
  • "pipeline_stage_id": "Et quos deserunt suscipit tenetur voluptates.",
  • "project": "2",
  • "status": "none",
  • "workspace": "Maiores et placeat aut animi consequatur."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: pm5
query Parameters
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Dolor corporis cumque voluptas velit enim quidem.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: ej
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": "Id recusandae modi aut reiciendis.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Autem explicabo mollitia incidunt alias aut libero.",
  • "past_total_monthly_cost": "Quis molestiae est laborum.",
  • "percentage_change_total_monthly_cost": 2940500961730242600,
  • "total_monthly_cost": "Et aut explicabo sapiente."
}

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

Project is the project identifier.

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

Pipeline execution ID

Example: alt
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=Non voluptatem laborum.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 7
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": "Nihil perferendis facere quia dolorem.",
  • "pipeline_stage": "Exercitationem amet molestiae pariatur.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "workspace_id": "Est aliquam dolorum reprehenderit sunt minima nesciunt."
}