workspaces

Workspaces Service handles the API for managing workspaces and triggering workflows against them.

Show workspace metrics

Show metrics for workspaces

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Account is the internal customer account ID.

Example: xw
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}/workspace-metrics
Request samples
Response samples
application/json
{
  • "status_counts": {
    }
}

List workspaces

List all workspaces.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: 9m
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
searchTerm
string
Default: ""

Filter results by partial name match

Example: searchTerm=mysta
sort
string
Default: "name,ASC"

Sort order for results

Enum: "name,ASC" "name,DESC" "updated,ASC" "updated,DESC"
Example: sort=name,ASC
status
Array of strings

Status of the execution

Example: status=Repellendus enim et.&status=Sed voluptatibus accusantium quo et.&status=Ut explicabo vitae nihil qui voluptatibus.&status=Ut praesentium quia dolor necessitatibus voluptas neque.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: k
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}/workspaces
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Create workspace

Create a new workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

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

Account is the internal customer account ID.

Example: psj
Request Body schema: application/json
required
object (AssociatedTemplate)

AssociatedTemplate defines the template details with template_id and version.

budget
number <float>

define the budget for a specific workspace

cost_breakdown_json
string

cost_breakdown_json is the identifier to the breakdown cost file from the current execution that was applied successfully

cost_diff_json
string

cost_diff_json is the identifier to the diff cost file between the previous and current successful executions

cost_estimation_enabled
boolean
Default: false

define if cost estimation operations will be performed in this workspace

object

List of default pipelines associated with this workspace and any per-workspace overrrides.

description
string

Description provides long-form text about the resource.

required
object

list of environment variables configured on the workspace.

identifier
required
string [ 1 .. 128 ] characters

Workspace identifier.

modules_json
string

modules_json is the identifier of any modules metadata associated with this workspace

name
required
string [ 1 .. 128 ] characters

Name is the human readable name for the resource.

provider_connector
required
string

Provider Connector is the reference to the connector for the infrastructure provider.

providers_json
string

providers_json is the identifier of any modules metadata associated with this workspace

provisioner
required
string

Provisioner defines the provisioning tool to use.

Enum: "terraform" "opentofu"
provisioner_version
string
Default: "latest"

Provisioner Version defines the tool version to use.

repository
string

Repository is the name of the repository to use.

repository_branch
string

Repository Branch in which the code should be accessed.

repository_commit
string

Repository Commit/Tag in which the code should be accessed.

repository_connector
string

Repository Connector is the reference to the connector to use for this code.

repository_path
string
Default: ""

Repository Path is the path in which the infra code resides.

repository_sha
string

Repository SHA in which the code should be accessed.

state_checksum
string

state_checksum is the sha-256 checksum of terraform state file

terraform_plan_json
string

terraform_plan_json is the identifier to the current state file onl in JSON format.

terraform_state
string

terraform_state is the identifier to the plan file used to create the latest state.

terraform_state_json
string

terraform_state_json is the identifier to the plan file used to create the latest state only in JSON format.

Array of objects (WorkspaceTerraformVariableFiles)

define an array of terraform variables files that belong to a different repository

required
object

list of terraform variables configured on the workspace.

variable_sets
Array of strings

Optional Variable Sets as references

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}/workspaces
Request samples
application/json
{
  • "associated_template": {
    },
  • "budget": 0.10952692,
  • "cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "cost_estimation_enabled": true,
  • "default_pipelines": {
    },
  • "description": "this is a more detailed explanation of the resource.",
  • "environment_variables": {
    },
  • "identifier": "5",
  • "modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "name": "resource name",
  • "provider_connector": "Incidunt error rem consequuntur saepe non temporibus.",
  • "providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "provisioner": "opentofu",
  • "provisioner_version": "Laboriosam rerum quibusdam.",
  • "repository": "Maxime aut incidunt saepe.",
  • "repository_branch": "main",
  • "repository_commit": "abc10ed",
  • "repository_connector": "Quo at molestiae omnis aut natus et.",
  • "repository_path": "",
  • "repository_sha": "abc10ed",
  • "state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
  • "terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
  • "terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
  • "terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "terraform_variable_files": [
    ],
  • "terraform_variables": {
    },
  • "variable_sets": [
    ]
}
Response samples
application/json
{
  • "policy_evaluation": {
    }
}

Destroy workspace

Deletes the given workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: cjj
identifier
required
string [ 1 .. 128 ] characters

Identifier is the project identifier.

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

Account is the internal customer account ID.

Example: gm9
Responses
204

No Content 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.

delete/iacm/api/orgs/{org}/projects/{project}/workspaces/{identifier}
Request samples

Show workspace

Show an individual workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: j8
identifier
required
string [ 1 .. 128 ] characters

Identifier is the project identifier.

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

Account is the internal customer account ID.

Example: 8o
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}/workspaces/{identifier}
Request samples
Response samples
application/json
{
  • "account": "8",
  • "associated_template": {
    },
  • "backend_locked": false,
  • "budget": 0.6245874,
  • "cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "cost_estimation_enabled": true,
  • "created": 7178695302051972000,
  • "default_pipelines": {
    },
  • "description": "this is a more detailed explanation of the resource.",
  • "environment_variables": {
    },
  • "identifier": "e",
  • "modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "name": "resource name",
  • "org": "w3",
  • "project": "hd",
  • "provider_connector": "Reiciendis eos nihil alias eligendi eos quos.",
  • "providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "provisioner": "terraform",
  • "provisioner_data": "Voluptatem possimus tempora veniam ea laborum omnis.",
  • "provisioner_version": "Sapiente dolor commodi nesciunt aut modi quo.",
  • "repository": "Accusantium voluptas beatae.",
  • "repository_branch": "main",
  • "repository_commit": "abc10ed",
  • "repository_connector": "Expedita dignissimos.",
  • "repository_path": "",
  • "repository_sha": "abc10ed",
  • "state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
  • "status": "active",
  • "terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
  • "terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
  • "terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
  • "terraform_variable_files": [
    ],
  • "terraform_variables": {
    },
  • "updated": 2564473642249789400,
  • "variable_sets": [
    ]
}

Update workspace

Updates the given workspace with new info.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: 1e0
identifier
required
string [ 1 .. 128 ] characters

Workspace identifier.

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

Account is the internal customer account ID.

Example: nc
Request Body schema: application/json
required
budget
number <float>

define the budget for a specific workspace

cost_estimation_enabled
boolean
Default: false

define if cost estimation operations will be performed in this workspace

object

List of default pipelines associated with this workspace and any per-workspace overrrides.

description
string

Description provides long-form text about the resource.

required
object

list of environment variables configured on the workspace.

name
required
string [ 1 .. 128 ] characters

Name is the human readable name for the resource.

provider_connector
required
string

Provider Connector is the reference to the connector for the infrastructure provider.

provisioner
required
string

Provisioner defines the provisioning tool to use.

Enum: "terraform" "opentofu"
provisioner_version
string
Default: "latest"

Provisioner Version defines the tool version to use.

repository
string

Repository is the name of the repository to use.

repository_branch
string

Repository Branch in which the code should be accessed.

repository_commit
string

Repository Commit/Tag in which the code should be accessed.

repository_connector
string

Repository Connector is the reference to the connector to use for this code.

repository_path
string
Default: ""

Repository Path is the path in which the infra code resides.

repository_sha
string

Repository SHA in which the code should be accessed.

Array of objects (WorkspaceTerraformVariableFiles)

define an array of terraform variables files that belong to a different repository

required
object

list of terraform variables configured on the workspace.

variable_sets
Array of strings

Optional Variable Sets as references

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.

put/iacm/api/orgs/{org}/projects/{project}/workspaces/{identifier}
Request samples
application/json
{
  • "budget": 0.97758543,
  • "cost_estimation_enabled": true,
  • "default_pipelines": {
    },
  • "description": "this is a more detailed explanation of the resource.",
  • "environment_variables": {
    },
  • "name": "resource name",
  • "provider_connector": "Dolore aut eum id aut dolor.",
  • "provisioner": "terraform",
  • "provisioner_version": "Dolore voluptatum dignissimos ut.",
  • "repository": "Assumenda illum dolores quis ratione.",
  • "repository_branch": "main",
  • "repository_commit": "abc10ed",
  • "repository_connector": "Rerum nemo quod.",
  • "repository_path": "",
  • "repository_sha": "abc10ed",
  • "terraform_variable_files": [
    ],
  • "terraform_variables": {
    },
  • "variable_sets": [
    ]
}
Response samples
application/json
{
  • "policy_evaluation": {
    }
}

Force unlock workspace

Force unlock a workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: jo
identifier
required
string [ 1 .. 128 ] characters

Identifier is the project identifier.

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

Account is the internal customer account ID.

Example: 4sk
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}/workspaces/{identifier}/actions/force-unlock
Request samples

List modules

List modules associated with this workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: a0k
identifier
required
string [ 1 .. 128 ] characters

Identifier is the project identifier.

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

Account is the internal customer account ID.

Example: h6h
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}/workspaces/{identifier}/modules
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    }
]

List resources

List resources associated with this workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: x
identifier
required
string [ 1 .. 128 ] characters

Identifier is the project identifier.

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

Account is the internal customer account ID.

Example: 4
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}/workspaces/{identifier}/resources
Request samples
Response samples
application/json
{
  • "outputs": [
    ],
  • "resources": [
    ]
}

Clone workspace

Clone the given workspace with new name.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: l5r
workspace
required
string
Example: Suscipit enim vitae atque ut.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: x
Request Body schema: application/json
required
identifier
required
string [ 1 .. 128 ] characters

Workspace identifier.

name
required
string [ 1 .. 128 ] characters

Name is the human readable name for the resource.

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}/workspaces/{workspace}/clone
Request samples
application/json
{
  • "identifier": "wj3",
  • "name": "resource name"
}
Response samples
application/json
{
  • "policy_evaluation": {
    }
}

List data

List all stored data for a workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: a
workspace
required
string

Workspace identifier

Example: Est esse voluptatem quae molestiae.
query Parameters
pipeline_execution_id
string

Filter by pipeline execution ID

Example: pipeline_execution_id=Magni quae laboriosam aliquam fugiat sint.
pipeline_stage_id
string

Filter by pipeline execution stage ID

Example: pipeline_stage_id=Qui ut aut id iure ut voluptatem.
provisioner_type
string

Filter by provisioner type

Example: provisioner_type=Minus eligendi labore.
data_type
string

Filter by data type

Example: data_type=Esse tempore consequatur quia est veritatis.
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
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: kr
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}/workspaces/{workspace}/data
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Create data

Store binary data generated by the provisioner, such as plans and state files.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: rfw
workspace
required
string

Workspace identifier

Example: workspace123
query Parameters
pipeline_id
required
string

The unique identifier for the associated pipeline

Example: pipeline_id=Ipsa voluptatum pariatur autem officia soluta fugit.
stage_id
required
string

The unique identifier for a stage

Example: stage_id=Numquam quasi doloremque a tempore nobis.
pipeline_execution_id
required
string

The unique identifier for the associated pipeline execution

Example: pipeline_execution_id=Nesciunt sint facilis.
pipeline_stage_id
required
string

The unique identifier for the associated pipeline execution stage

Example: pipeline_stage_id=Molestiae aut exercitationem molestiae sequi.
provisioner_type
required
string

Type of provisioner that created the data

Value: "tf"
Example: provisioner_type=tf
data_type
required
string

Type of data stored

Enum: "plan_human" "state_raw" "state_human" "cost_breakdown" "cost_diff" "modules" "providers"
Example: data_type=modules
policy_action
string

Policy action used during OPA evaluation

Example: policy_action=afterTerraformApply
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 2
Content-Length
integer <int64>

Size in bytes of the data.

Example: 2344966962444532000
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}/workspaces/{workspace}/data
Request samples
Response samples
application/json
{
  • "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
  • "policy_evaluation": [
    ],
  • "policy_evaluation_message": "- instance type 'xlarge' is not permitted",
  • "policy_evaluation_status": "error"
}

Show data

Get binary data generated by the provisioner, such as plans and state files.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: ww
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Est fugiat ad accusamus nulla voluptatem voluptate.
id
required
string

The unique identifier for the data

Example: dc538c61-de48-4220-958c-5f3c4f983daa
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 8h
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}/workspaces/{workspace}/data/{id}
Request samples
Response samples
application/json
"string"

Evaluate data

Evaluate policy against previously stored data, such as plans and state files.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: b
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Magnam voluptates in id eum repellat.
id
required
string

The unique identifier for the data

Example: dc538c61-de48-4220-958c-5f3c4f983daa
query Parameters
pipeline_execution_id
string

Pipeline execution associated with this evaluation

Example: pipeline_execution_id=Nesciunt eius qui enim non et et.
policy_action
required
string

Policy action used during OPA evaluation

Example: policy_action=afterTerraformApply
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: ll1
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}/workspaces/{workspace}/data/{id}/evaluate-policy
Request samples
Response samples
application/json
{
  • "id": "dc538c61-de48-4220-958c-5f3c4f983daa",
  • "policy_evaluation": [
    ],
  • "policy_evaluation_message": "- instance type 'xlarge' is not permitted",
  • "policy_evaluation_status": "error"
}

Send event

Store binary data generated by the provisioner, such as plans and state files.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: xx
workspace
required
string [ 1 .. 1024 ] characters

Workspace associated with this event

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

Account is the internal customer account ID.

Example: om1
Request Body schema: application/json
required
object
event_type
required
string

The type of event that occurred

Enum: "plan" "drifted" "provisioning" "destroying" "active" "inactive" "failed" "stage-complete"
object (ActivityMetadata)
pipeline_execution_id
string
Default: ""

Deprecated: use metadata instead

pipeline_stage_id
string
Default: ""

Deprecated: use metadata instead

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}/workspaces/{workspace}/events
Request samples
application/json
{
  • "data": {
    },
  • "event_type": "failed",
  • "metadata": {
    },
  • "pipeline_execution_id": "Aperiam sit tempore vel dolorem fugiat aut.",
  • "pipeline_stage_id": "A omnis excepturi asperiores libero quaerat et."
}

List pipelines

List the pipelines where the workspace is been used

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: fje
workspace
required
string

Workspace identifier

Example: Deleniti fugiat distinctio magnam expedita quidem.
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
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: t
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}/workspaces/{workspace}/pipelines
Request samples
Response samples
application/json
{
  • "account": "0v",
  • "org": "e",
  • "pipelines": [
    ],
  • "project": "80"
}

Create remote execution

Create a remote execution for a workspace.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: s4
workspace
required
string

The workspace associated with the remote execution.

Example: Laborum nobis non rerum.
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: a
Request Body schema: application/json
required
object

The arguments supplied to the plan.

Responses
201

Created 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}/workspaces/{workspace}/remote-executions
Request samples
application/json
{
  • "custom_arguments": {
    }
}
Response samples
application/json
{
  • "account": "l6",
  • "created": 7059030763787109000,
  • "custom_arguments": {
    },
  • "executed": true,
  • "id": "01ffa9ce-7f4a-4ab4-8de9-7a15795ea798",
  • "org": "sk2",
  • "pipeline_execution_id": "Voluptatem quia.",
  • "pipeline_execution_url": "Tempore quisquam dicta itaque.",
  • "project": "mz",
  • "sha256_checksum": "Nihil aut consequatur ducimus voluptatem suscipit quidem.",
  • "updated": 9106090072191144000,
  • "workspace": "Voluptas consequatur placeat ipsum rem."
}

Show remote execution

Find remote execution

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: ufl
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Earum repudiandae quod.
id
required
string <uuid>

The ID of the remote execution

Example: 2fb567ce-6ec2-41ee-9386-abe0dc59e66c
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: ta
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}/workspaces/{workspace}/remote-executions/{id}
Request samples
Response samples
application/json
{
  • "account": "pnv",
  • "created": 2275601611304323300,
  • "custom_arguments": {
    },
  • "executed": true,
  • "id": "5dc7f8a4-b9bb-4319-b419-b5d87512326b",
  • "org": "6v",
  • "pipeline_execution_id": "Voluptas quo ex.",
  • "pipeline_execution_url": "Autem quis fugit voluptatem nulla magni quisquam.",
  • "project": "m",
  • "sha256_checksum": "Doloribus quisquam.",
  • "updated": 7902167227968351000,
  • "workspace": "Ut quod qui iure rerum."
}

Download remote exectution

Download the source code for the remote plan.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: a
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Soluta ullam.
id
required
string <uuid>

The ID of the remote execution

Example: bcc93d22-5c25-46a9-90f1-56f596d4d9ce
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}/workspaces/{workspace}/remote-executions/{id}/download
Request samples
Response samples
application/json
"string"

execute-remote-execution workspaces

Execute the remote execution

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

Org is the organisation identifier.

Example: 2or
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: un
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Autem a voluptas.
id
required
string <uuid>

The ID of the remote execution

Example: 85416796-7332-4add-868f-c1e025b451d1
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: 3q
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}/workspaces/{workspace}/remote-executions/{id}/execute
Request samples
Response samples
application/json
{
  • "account": "py9",
  • "created": 1215991044050867000,
  • "custom_arguments": {
    },
  • "executed": true,
  • "id": "bed26b79-ae96-4bfc-a6da-7b14fbeafb5a",
  • "org": "goi",
  • "pipeline_execution_id": "Tenetur consequatur quod in odio minus.",
  • "pipeline_execution_url": "Eos qui et aut iure.",
  • "project": "u",
  • "sha256_checksum": "Quis eum.",
  • "updated": 6014953954371395000,
  • "workspace": "Autem est."
}

Upload remote execution source

Upload the source code for the remote execution.

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

Org is the organisation identifier.

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

Project is the project identifier.

Example: r1q
workspace
required
string

Workspace is the resource workspace this variable is associated with.

Example: Vero aut sed eos iure autem.
id
required
string <uuid>

The ID of the remote execution

Example: 812b7d9a-0505-4b3b-847d-e7d14c764e7c
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: vf
Content-Length
integer <int64>

Size in bytes of the source code.

Example: 8254549818997101000
Content-Digest
required
string

Content-Digest header as defined in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Digest. Sha256 is the only supported algorithm.

Example: Eius quam aliquid maiores eligendi suscipit.
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}/workspaces/{workspace}/remote-executions/{id}/upload
Request samples
Response samples
application/json
{
  • "account": "1vp",
  • "created": 5870418372671915000,
  • "custom_arguments": {
    },
  • "executed": true,
  • "id": "c5f059c4-1a63-426a-99d6-251bf548f149",
  • "org": "q",
  • "pipeline_execution_id": "Molestias nihil nam reprehenderit.",
  • "pipeline_execution_url": "Quasi rerum aperiam.",
  • "project": "3gf",
  • "sha256_checksum": "Qui quo magnam cupiditate.",
  • "updated": 2543279644387391500,
  • "workspace": "Doloribus alias amet et iusto."
}

List workspaces associated with a template ID

Get all workspaces associated with a specific template ID

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

Template identifier to filter workspaces

Example: g6
query Parameters
org
string [ 1 .. 128 ] characters

Organization identifier (required for 'org' and 'project' scope).

Example: org=s
project
string [ 1 .. 128 ] characters

Project identifier (required for 'project' scope).

Example: project=8n
version
string [ 1 .. 32 ] characters

Template version associated with the workspace.

Example: version=006
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account identifier.

Example: l
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/workspace/templates/{template_id}
Request samples
Response samples
application/json
[
  • {
    },
  • {
    }
]