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

Project is the project identifier.

Example: b7
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=Et qui.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Vel qui veniam.
status
Array of strings

Status of the execution

Example: status=Et magnam expedita.&status=Nam voluptates eos voluptatem maiores.&status=Quasi aut veritatis eos dicta quidem.
pipeline_name
string

Pipeline name

Example: pipeline_name=Fuga ad placeat dicta ad et est.
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: srv
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: or
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: q
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 hic.",
  • "pipeline_execution_id": "Ex ex quod aliquam beatae ea.",
  • "pipeline_stage_id": "Temporibus praesentium veniam illo.",
  • "workspace": "Molestias a qui tenetur beatae ipsum."
}
Response samples
application/json
{
  • "account": "22f",
  • "created": 1343851760300365800,
  • "org": "jo8",
  • "pipeline": "Unde maxime sequi voluptates facere.",
  • "pipeline_execution_id": "Non odit et velit.",
  • "pipeline_stage_id": "Aspernatur voluptas earum non et.",
  • "project": "5l",
  • "status": "none",
  • "workspace": "Nulla voluptas voluptas accusamus nisi numquam debitis."
}

Show execution

Show an individual execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: 2j
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": "8q",
  • "created": 1368476783929846800,
  • "org": "0un",
  • "pipeline": "Sunt libero.",
  • "pipeline_execution_id": "Dolorem sunt accusamus.",
  • "pipeline_stage_id": "Ut qui numquam in occaecati voluptatum.",
  • "project": "q",
  • "status": "success",
  • "workspace": "Harum possimus nostrum a ex enim impedit."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

Example: 0j
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": "Ut ea.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Libero ut ullam quos sit voluptatum.",
  • "past_total_monthly_cost": "Sed cupiditate itaque corrupti eaque laudantium.",
  • "percentage_change_total_monthly_cost": 8083749398355985000,
  • "stage_execution_id": "Perferendis doloribus.",
  • "stage_id": "Esse molestiae enim nihil quod deleniti.",
  • "total_monthly_cost": "Cupiditate sit quo et.",
  • "workspace_id": "Amet et."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: 3i
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=Quam perspiciatis eos.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 3
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": "Explicabo reprehenderit et.",
  • "pipeline_stage": "Nihil modi aut.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "stage_id": "Temporibus consequuntur.",
  • "workspace_id": "Earum possimus enim repellat quae saepe aspernatur."
}

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

Project is the project identifier.

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

Pipeline execution ID

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