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

Project is the project identifier.

Example: 2p
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=Iusto illo.
pipeline_execution_id
string

Pipeline identifier

Example: pipeline_execution_id=Voluptatum in adipisci nisi repellat.
status
Array of strings

Status of the execution

Example: status=Corrupti odio eos et placeat.&status=Aut voluptas ut itaque.&status=Tempore non aut doloribus.&status=Sed aliquid assumenda quia.
pipeline_name
string

Pipeline name

Example: pipeline_name=Vel maiores exercitationem tenetur dolores quis.
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: oh
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: wt
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

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

Account is the internal customer account ID.

Example: i
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": "Minus ut.",
  • "pipeline_execution_id": "Aut autem nam laborum.",
  • "pipeline_stage_id": "Enim ut vel.",
  • "workspace": "Cumque animi et quis maiores at."
}
Response samples
application/json
{
  • "account": "z1l",
  • "created": 6996660595522573000,
  • "org": "iz0",
  • "pipeline": "Et nesciunt totam omnis dolor facere qui.",
  • "pipeline_execution_id": "Impedit esse corrupti numquam.",
  • "pipeline_stage_id": "Inventore quisquam.",
  • "project": "s",
  • "status": "none",
  • "workspace": "Fugiat a earum harum et amet animi."
}

Show execution

Show an individual execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: 0o
pipeline_execution_id
required
string [ 1 .. 128 ] characters

Pipeline execution ID

Example: 0q
pipeline_stage_id
required
string [ 1 .. 128 ] characters

Pipeline execution stage ID

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

Account is the internal customer account ID.

Example: e9
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": "qw",
  • "created": 389415151830996540,
  • "org": "omh",
  • "pipeline": "Facilis expedita.",
  • "pipeline_execution_id": "Dolore sed iusto consequuntur officia repellendus veniam.",
  • "pipeline_stage_id": "Occaecati aut quidem libero mollitia culpa.",
  • "project": "q8",
  • "status": "none",
  • "workspace": "Minima unde necessitatibus non natus animi eius."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Pipeline execution stage ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: k6
query Parameters
pipeline_stage_id
string
Default: ""
Example: pipeline_stage_id=Voluptas voluptas est.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: egq
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": "Quas pariatur omnis.",
  • "diff": {
    },
  • "diff_total_monthly_cost": "Perferendis ipsa libero aperiam quasi porro.",
  • "past_total_monthly_cost": "Quasi pariatur dolores.",
  • "percentage_change_total_monthly_cost": 2480000993154800600,
  • "stage_execution_id": "Nisi ipsum quisquam et veritatis consequatur non.",
  • "stage_id": "Quod non ipsam corporis iste harum.",
  • "total_monthly_cost": "Et minus minus.",
  • "workspace_id": "Qui dignissimos molestiae repudiandae nihil voluptatem."
}

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

Project is the project identifier.

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

Pipeline execution ID

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

Account is the internal customer account ID.

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

Project is the project identifier.

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

Pipeline execution ID

Example: 3fk
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=Sit saepe vel suscipit maxime harum nam.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 0lo
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": "Quo eligendi quaerat.",
  • "pipeline_stage": "Consequuntur molestias.",
  • "planned_changes": [
    ],
  • "resources": [
    ],
  • "stage_id": "Sit et in est possimus dolor.",
  • "workspace_id": "Ut ea laborum earum sunt."
}

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: et
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: znv
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: 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}/resource-changes-all-stages
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    }
]