Workspaces
Workspaces Service handles the API for managing workspaces and triggering workflows against them.
List all tags
Org is the organisation identifier.
dProject is the project identifier.
0Account is the internal customer account ID.
mbOK response.
["Totam quam illo voluptatibus exercitationem ut.","Minima quam id ut non tempora qui.","Doloremque earum et est voluptates officia ipsam."]BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/tags HTTP/1.1
Host: localhost:80
Harness-Account: mb
Accept: */*
[
"Error ad quod magnam ipsum laudantium vitae.",
"Esse itaque unde.",
"Itaque est earum laudantium velit asperiores et."
]Show metrics for workspaces
Org is the organisation identifier.
yqzProject is the project identifier.
stStart time filter (Unix timestamp)
7488794139730840000End time filter (Unix timestamp)
5584043480870504000Account is the internal customer account ID.
0jOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspace-metrics HTTP/1.1
Host: localhost:80
Harness-Account: 0j
Accept: */*
{
"status_counts": {
"Minus quaerat atque.": 3206029449139134500
}
}List all workspaces.
Org is the organisation identifier.
7oProject is the project identifier.
jtnLimit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Filter results by partial name match
""Example: mystaSort order for results
name,ASCExample: name,ASCPossible values: Status of the execution
["Vitae voluptatem.","Fugit placeat suscipit aut.","Voluptas labore labore molestiae est at enim."]Comma separated list of tags to filter by
["Et maiores tenetur.","Nostrum cumque rerum est adipisci modi debitis.","Et voluptatem laudantium id blanditiis.","Alias a necessitatibus quisquam."]Account is the internal customer account ID.
5OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces HTTP/1.1
Host: localhost:80
Harness-Account: 5
Accept: */*
[
{
"account": "e1",
"created": 2335482780094034400,
"description": "this is a more detailed explanation of the resource.",
"identifier": "4",
"name": "resource name",
"org": "t",
"project": "6",
"status": "active",
"updated": 6157082135055780000
},
{
"account": "e1",
"created": 2335482780094034400,
"description": "this is a more detailed explanation of the resource.",
"identifier": "4",
"name": "resource name",
"org": "t",
"project": "6",
"status": "active",
"updated": 6157082135055780000
},
{
"account": "e1",
"created": 2335482780094034400,
"description": "this is a more detailed explanation of the resource.",
"identifier": "4",
"name": "resource name",
"org": "t",
"project": "6",
"status": "active",
"updated": 6157082135055780000
},
{
"account": "e1",
"created": 2335482780094034400,
"description": "this is a more detailed explanation of the resource.",
"identifier": "4",
"name": "resource name",
"org": "t",
"project": "6",
"status": "active",
"updated": 6157082135055780000
}
]Create a new workspace.
Org is the organisation identifier.
5Project is the project identifier.
inrAccount is the internal customer account ID.
tdefine the budget for a specific workspace
0.5693851define if CCM cost integration is enabled for this workspace
falseExample: truecost_breakdown_json is the identifier to the breakdown cost file from the current execution that was applied successfully
c4a2d99bc28d236098a095277b7eb0718d6be068cost_diff_json is the identifier to the diff cost file between the previous and current successful executions
c4a2d99bc28d236098a095277b7eb0718d6be068define if cost estimation operations will be performed in this workspace
falseExample: trueif true, auto-generate default pipelines for the workspace provisioner at creation time
falseExample: falseDescription provides long-form text about the resource.
this is a more detailed explanation of the resource.Git fetch type (branch/commitId/sha) - can contain JEXL expressions.
branchID PK for internal uses
5620433849146420000Workspace identifier.
ch0modules_json is the identifier of any modules metadata associated with this workspace
c4a2d99bc28d236098a095277b7eb0718d6be068Name is the human readable name for the resource.
resource nameProvider Connector is the reference to the connector for the infrastructure provider.
Eum ipsa voluptatibus earum porro.providers_json is the identifier of any modules metadata associated with this workspace
c4a2d99bc28d236098a095277b7eb0718d6be068Provisioner defines the provisioning tool to use.
Occaecati sed animi.Provisioner configuration metadata (key value pair provisioner specific configuration).
Adipisci sunt et odit eos minus dolores.Provisioner Version defines the tool version to use.
latestExample: Dicta dolores.prune_sensitive_data is a flag to enable or disable pruning of sensitive data
falseExample: trueRepository is the name of the repository to use.
Cupiditate et.Repository Branch in which the code should be accessed.
mainRepository Commit/Tag in which the code should be accessed.
abc10edRepository Connector is the reference to the connector to use for this code.
Libero accusantium esse et ratione labore atque.Repository Path is the path in which the infra code resides.
""Generic repository reference (branch/commit/sha) used with JEXL expressions.
<+stage.variables.REF>Repository SHA in which the code should be accessed.
abc10edrepository_submodules is the instruction about whether to clone submodules in the pipeline step
falseExample: recursivePossible values: Run-All terragrunt modules.
trueList of patterens that will be used for sparse checkout option of git clone
Eos debitis aliquam nostrum perspiciatis ipsum dolor.state_checksum is the sha-256 checksum of terraform state file
d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8fterraform_plan_json is the identifier to the current state file only in JSON format.
f9e21473daaa2674d862b67a1339f4570e86de17terraform_state is the identifier to the plan file used to create the latest state.
fc1200c7a7aa52109d762a9f005b149abef01479terraform_state_json is the identifier to the plan file used to create the latest state only in JSON format.
c4a2d99bc28d236098a095277b7eb0718d6be068Whether this workspace uses terragrunt to provision infrastructure
falseExample: trueTerragrunt Version to use when provisioner is terragrunt.
Rem voluptas totam.Attached Variable Sets references
["Cumque voluptate perspiciatis quidem exercitationem.","Consectetur facilis minima voluptatem illo ut maiores."]OK response.
Create-WorkspaceResponseBody result type (default view)
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces HTTP/1.1
Host: localhost:80
Harness-Account: t
Content-Type: application/json
Accept: */*
Content-Length: 4921
{
"associated_template": {
"template_id": "urr",
"version": "nwg"
},
"budget": 0.2619898,
"ccm_cost_enabled": false,
"cdk_context_files": [
{
"repository": "cdk-context",
"repository_branch": "main",
"repository_connector": "account.github_connector",
"repository_path": "context/"
}
],
"cdk_variables": {
"Enim quae aut velit officiis.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
},
"Id laboriosam enim inventore corporis excepturi.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"cost_estimation_enabled": true,
"create_default_pipelines": false,
"default_pipelines": {
"Error rerum omnis vero.": {
"project_pipeline": "Rerum deleniti amet quia consectetur.",
"workspace_pipeline": "Architecto et."
},
"Eum et et voluptates facere tenetur.": {
"project_pipeline": "Rerum deleniti amet quia consectetur.",
"workspace_pipeline": "Architecto et."
}
},
"description": "this is a more detailed explanation of the resource.",
"environment_variables": {
"Saepe quam eos deserunt a.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"git_fetch_type": "branch",
"id": 7886113068543970000,
"identifier": "pe",
"modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"name": "resource name",
"provider_connector": "Dicta voluptates sed ipsa itaque.",
"provider_connectors": [
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
},
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
},
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
},
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
}
],
"providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"provisioner": "Numquam eum rem id nostrum rerum tenetur.",
"provisioner_configuration": "Vel consequatur harum aut.",
"provisioner_version": "Sunt et minus voluptas recusandae sed qui.",
"prune_sensitive_data": true,
"repository": "Placeat consequuntur iusto exercitationem itaque repellendus vel.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Et ut.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed",
"repository_submodules": "recursive",
"run_all": false,
"sparse_checkout": "Aliquam pariatur nihil.",
"state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
"tags": {
"cost-center": "engineering",
"environment": "production",
"team": "platform"
},
"terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
"terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
"terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"terraform_variable_files": [
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
}
],
"terraform_variables": {
"Hic quia harum aut commodi.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
},
"Voluptatem aut veniam.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"terragrunt_provider": true,
"terragrunt_version": "Atque debitis odit.",
"variable_sets": [
"Est repellat blanditiis enim eos nam.",
"Voluptatem et asperiores.",
"Consectetur similique ipsa ut corporis earum."
]
}{
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
}
}Show an individual workspace.
Org is the organisation identifier.
6lProject is the project identifier.
8Identifier is the project identifier.
490Account is the internal customer account ID.
jOK response.
Show-WorkspaceResponseBody result type (default view)
Account is the internal customer account ID.
fawDefines if the remote backend is locked or not
falseExample: falsedefine the budget for a specific workspace
0.77379626define if CCM cost integration is enabled for this workspace
falseExample: falsecost_breakdown_json is the identifier to the breakdown cost file from the current execution that was applied successfully
c4a2d99bc28d236098a095277b7eb0718d6be068cost_diff_json is the identifier to the diff cost file between the previous and current successful executions
c4a2d99bc28d236098a095277b7eb0718d6be068define if cost estimation operations will be performed in this workspace
falseExample: trueCreated is the unix timestamp at which the resource was originally created in milliseconds.
245789994206227550Description provides long-form text about the resource.
this is a more detailed explanation of the resource.Git fetch type (branch/commitId/sha) - can contain JEXL expressions.
branchWorkspace identifier.
vmodules_json is the identifier of any modules metadata associated with this workspace
c4a2d99bc28d236098a095277b7eb0718d6be068Name is the human readable name for the resource.
resource nameOrg is the organisation identifier.
mProject is the project identifier.
zxaProvider Connector is the reference to the connector for the infrastructure provider.
Dolorem magni nemo non incidunt.providers_json is the identifier of any modules metadata associated with this workspace
c4a2d99bc28d236098a095277b7eb0718d6be068Provisioner defines the provisioning tool to use.
Suscipit consequatur dolores modi.Provisioner configuration metadata (key value pair provisioner specific configuration).
Doloremque vel quibusdam consequatur id sit.Similique maxime sed modi et.Provisioner Version defines the tool version to use.
latestExample: Eos aut.prune_sensitive_data is a flag to enable or disable pruning of sensitive data
falseExample: trueRepository is the name of the repository to use.
Omnis vitae.Repository Branch in which the code should be accessed.
mainRepository Commit/Tag in which the code should be accessed.
abc10edRepository Connector is the reference to the connector to use for this code.
Doloremque nostrum dolorum est ut in.Repository Path is the path in which the infra code resides.
""Generic repository reference (branch/commit/sha) used with JEXL expressions.
<+stage.variables.REF>Repository SHA in which the code should be accessed.
abc10edrepository_submodules is the instruction about whether to clone submodules in the pipeline step
falseExample: recursivePossible values: Run-All terragrunt modules.
falseList of patterens that will be used for sparse checkout option of git clone
Assumenda necessitatibus fugiat porro.state_checksum is the sha-256 checksum of terraform state file
d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8fThe status of the workspace
unknownPossible values: terraform_plan_json is the identifier to the current state file only in JSON format.
f9e21473daaa2674d862b67a1339f4570e86de17terraform_state is the identifier to the plan file used to create the latest state.
fc1200c7a7aa52109d762a9f005b149abef01479terraform_state_json is the identifier to the plan file used to create the latest state only in JSON format.
c4a2d99bc28d236098a095277b7eb0718d6be068Whether this workspace uses terragrunt to provision infrastructure
falseExample: falseTerragrunt Version to use when provisioner is terragrunt.
Velit ipsa autem reprehenderit dolores.Modified is the unix timestamp at which the resource was last modified in milliseconds.
7063517725192963000Attached Variable Sets references
["Porro officia quia doloribus est.","Veritatis dolorem enim architecto iusto.","Voluptatem quis molestiae voluptates rerum.","Itaque atque ipsum."]BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: j
Accept: */*
{
"account": "2ve",
"associated_template": {
"template_id": "eea",
"version": "7d"
},
"backend_locked": true,
"budget": 0.58620745,
"ccm_cost_enabled": false,
"cdk_context_files": [
{
"repository": "cdk-context",
"repository_branch": "main",
"repository_connector": "account.github_connector",
"repository_path": "context/"
}
],
"cdk_variables": {
"Alias omnis sit.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
},
"Praesentium inventore blanditiis vitae.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
}
},
"cost_breakdown_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"cost_diff_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"cost_estimation_enabled": true,
"created": 9112843322050322000,
"default_pipelines": {
"Numquam itaque.": {
"project_pipeline": "Earum nam dicta.",
"workspace_pipeline": "Natus maxime adipisci consequatur aliquid sequi."
}
},
"description": "this is a more detailed explanation of the resource.",
"environment_variables": {
"Et voluptas quia animi corporis.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
},
"Fugiat culpa magni et a.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
},
"Nostrum aut modi est qui.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
}
},
"git_fetch_type": "branch",
"identifier": "tyf",
"lock": {
"created_at": 4451099852111615500,
"id": "Perferendis sint aut.",
"locked_by_display_name": "Quia harum exercitationem non vel amet id.",
"locked_by_principal_id": "Facere et dignissimos dolorum velit et porro.",
"locked_by_principal_type": "Sapiente laboriosam iure excepturi quam cumque.",
"manual": true,
"reason": "Distinctio necessitatibus voluptatem deserunt ut veniam."
},
"modules_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"name": "resource name",
"org": "7bb",
"project": "d",
"provider_connector": "Atque perferendis incidunt ea.",
"provider_connectors": [
{
"connector_ref": "zb",
"created": 1627590400,
"id": 7114607990558172000,
"terragrunt_provider": true,
"type": "azure",
"updated": 1627686800,
"workspace_id": 9090452521337308000
},
{
"connector_ref": "zb",
"created": 1627590400,
"id": 7114607990558172000,
"terragrunt_provider": true,
"type": "azure",
"updated": 1627686800,
"workspace_id": 9090452521337308000
},
{
"connector_ref": "zb",
"created": 1627590400,
"id": 7114607990558172000,
"terragrunt_provider": true,
"type": "azure",
"updated": 1627686800,
"workspace_id": 9090452521337308000
},
{
"connector_ref": "zb",
"created": 1627590400,
"id": 7114607990558172000,
"terragrunt_provider": true,
"type": "azure",
"updated": 1627686800,
"workspace_id": 9090452521337308000
}
],
"providers_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"provisioner": "Voluptas eos.",
"provisioner_configuration": "Facilis exercitationem libero nihil.",
"provisioner_data": "Reprehenderit quo.",
"provisioner_version": "Fuga atque et error voluptatem.",
"prune_sensitive_data": true,
"repository": "Id ad nemo voluptas quam et et.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Quaerat non ipsum pariatur nisi eos quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed",
"repository_submodules": "recursive",
"run_all": true,
"sparse_checkout": "Blanditiis pariatur quae nihil quia.",
"state_checksum": "d21c1662d8ce2c74f24efdc8db93eb34473b86810aeccca4b1518f70b0ccde8f",
"status": "failed",
"tags": {
"cost-center": "engineering",
"environment": "production",
"team": "platform"
},
"terraform_plan_json": "f9e21473daaa2674d862b67a1339f4570e86de17",
"terraform_state": "fc1200c7a7aa52109d762a9f005b149abef01479",
"terraform_state_json": "c4a2d99bc28d236098a095277b7eb0718d6be068",
"terraform_variable_files": [
{
"git_fetch_type": "branch",
"priority": 110954524797471300,
"repository": "Quibusdam animi.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Eos nulla non.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 110954524797471300,
"repository": "Quibusdam animi.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Eos nulla non.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 110954524797471300,
"repository": "Quibusdam animi.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Eos nulla non.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
}
],
"terraform_variables": {
"Alias architecto nulla reiciendis ea dolor nostrum.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
},
"Sed sapiente iure alias a voluptates vero.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
},
"Sequi quis blanditiis.": {
"created": 1943778209777329700,
"key": "9uh",
"updated": 6028789862012497000,
"value": "Ad dolorem error voluptatem.",
"value_type": "string"
}
},
"terragrunt_provider": true,
"terragrunt_version": "Corporis dignissimos dolorum.",
"updated": 5001398671280299000,
"variable_sets": [
"Magni repellat sunt et rerum.",
"Aut aliquam nobis impedit ut.",
"Necessitatibus blanditiis beatae.",
"Consequatur neque repellat quidem quia harum omnis."
]
}Updates the given workspace with new info.
Org is the organisation identifier.
h0Project is the project identifier.
6Workspace identifier.
o6rAccount is the internal customer account ID.
cajdefine the budget for a specific workspace
0.8796052define if CCM cost integration is enabled for this workspace
falseExample: falsedefine if cost estimation operations will be performed in this workspace
falseExample: trueDescription provides long-form text about the resource.
this is a more detailed explanation of the resource.Git fetch type (branch/commitId/sha) - can contain JEXL expressions.
branchName is the human readable name for the resource.
resource nameProvider Connector is the reference to the connector for the infrastructure provider.
Eum id dicta et.Provisioner defines the provisioning tool to use.
Omnis assumenda.Provisioner configuration metadata (key value pair provisioner specific configuration).
Ab cumque quia.Provisioner Version defines the tool version to use.
latestExample: Est odio error eos.prune_sensitive_data is a flag to enable or disable pruning of sensitive data
falseExample: trueRepository is the name of the repository to use.
Tempora accusamus.Repository Branch in which the code should be accessed.
mainRepository Commit/Tag in which the code should be accessed.
abc10edRepository Connector is the reference to the connector to use for this code.
Vitae ea.Repository Path is the path in which the infra code resides.
""Generic repository reference (branch/commit/sha) used with JEXL expressions.
<+stage.variables.REF>Repository SHA in which the code should be accessed.
abc10edrepository_submodules is the instruction about whether to clone submodules in the pipeline step
falseExample: recursivePossible values: Run-All terragrunt modules.
trueList of patterens that will be used for sparse checkout option of git clone
Ut quidem.Whether this workspace uses terragrunt to provision infrastructure
falseExample: trueTerragrunt Version to use when provisioner is terragrunt.
Deleniti assumenda pariatur non voluptatem tempora animi.Optional optimistic-concurrency token. Set this to the "updated" timestamp returned by the last GET/Show of this workspace. If provided and it no longer matches the workspace's current "updated" value, the update is rejected with 409 Conflict and nothing is written. Omit to skip the check (legacy behavior).
472490218476012500Attached Variable Sets references
["Debitis eius consequatur eligendi.","Quo labore esse deserunt ea eum assumenda."]OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: caj
Content-Type: application/json
Accept: */*
Content-Length: 4164
{
"budget": 0.12637895,
"ccm_cost_enabled": false,
"cdk_context_files": [
{
"repository": "cdk-context",
"repository_branch": "main",
"repository_connector": "account.github_connector",
"repository_path": "context/"
}
],
"cdk_variables": {
"Fugiat maiores modi soluta.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"cost_estimation_enabled": true,
"default_pipelines": {
"Non ratione cupiditate iusto repellendus unde illo.": {
"project_pipeline": "Rerum deleniti amet quia consectetur.",
"workspace_pipeline": "Architecto et."
}
},
"description": "this is a more detailed explanation of the resource.",
"environment_variables": {
"Animi dolorem adipisci hic dolores magni.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
},
"Maiores modi est.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
},
"Voluptas facere excepturi voluptatum aut nulla.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"git_fetch_type": "branch",
"name": "resource name",
"provider_connector": "Animi maxime neque sint quo.",
"provider_connectors": [
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
},
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
},
{
"connector_ref": "3x3",
"created": 1627590400,
"id": 7418687553247255000,
"terragrunt_provider": false,
"type": "vault",
"updated": 1627686800,
"workspace_id": 7763510621565255000
}
],
"provisioner": "Aperiam temporibus ut ipsum necessitatibus iste fugiat.",
"provisioner_configuration": "Porro blanditiis molestiae quasi.",
"provisioner_version": "Et aut.",
"prune_sensitive_data": true,
"repository": "Illum minima quo voluptatem quo voluptatibus maiores.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Quaerat aliquam quo quia.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed",
"repository_submodules": "recursive",
"run_all": false,
"sparse_checkout": "Et voluptatem aut beatae ullam sit.",
"tags": {
"cost-center": "engineering",
"environment": "production",
"team": "platform"
},
"terraform_variable_files": [
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
},
{
"git_fetch_type": "branch",
"priority": 8019677376764303000,
"repository": "Omnis deserunt quo.",
"repository_branch": "main",
"repository_commit": "abc10ed",
"repository_connector": "Blanditiis veniam sed aspernatur ut necessitatibus quae.",
"repository_path": "",
"repository_ref": "<+stage.variables.REF>",
"repository_sha": "abc10ed"
}
],
"terraform_variables": {
"Minus commodi id qui vel iste assumenda.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
},
"Sit debitis deserunt atque aut facilis.": {
"key": "iow",
"value": "Id nobis praesentium aut velit blanditiis non.",
"value_type": "number"
}
},
"terragrunt_provider": false,
"terragrunt_version": "Placeat minus cumque quis modi.",
"updated_at": 2353188073938450000,
"variable_sets": [
"Ullam sit corrupti earum dolor placeat.",
"In repudiandae.",
"Voluptatem voluptates ex et."
]
}{
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
}
}Deletes the given workspace.
Org is the organisation identifier.
74Project is the project identifier.
jdIdentifier is the project identifier.
6rmAccount is the internal customer account ID.
arNo Content response.
No content
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{identifier} HTTP/1.1
Host: localhost:80
Harness-Account: ar
Accept: */*
No content
Unlock a workspace, removing the lock regardless of its origin (manual or automatic). Idempotent.
Org is the organisation identifier.
qmkProject is the project identifier.
7n9Identifier is the project identifier.
mnAccount is the internal customer account ID.
0qyOK response.
No content
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{identifier}/actions/force-unlock HTTP/1.1
Host: localhost:80
Harness-Account: 0qy
Accept: */*
No content
Create a manual lock on a workspace.
Org is the organisation identifier.
r2Project is the project identifier.
eIdentifier is the project identifier.
hAccount is the internal customer account ID.
dqReason for locking the workspace (optional, max 1024 characters)
Q2 freezeOK response.
Lock ID
12727878-e854-42d4-bbf0-2be9bf8fed70Display name of who locked
Consequatur occaecati repellat dolorem iusto quae.Principal ID who locked
Vel molestias labore labore.Type of principal
Sapiente autem quisquam et ducimus voluptates rerum.Whether the lock is manual (user-initiated). true = manual lock, false = automatic lock
trueReason for lock
Qui qui.Workspace identifier
Voluptas possimus molestiae molestiae.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{identifier}/actions/lock HTTP/1.1
Host: localhost:80
Harness-Account: dq
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"reason": "Q2 freeze"
}{
"id": "4e2c2af4-20d5-4fda-8508-81a4691a8e4d",
"locked_by_display_name": "Officiis expedita libero accusantium ipsam repellendus quas.",
"locked_by_principal_id": "Accusamus deserunt dignissimos eligendi nesciunt necessitatibus tempora.",
"locked_by_principal_type": "Sed aut omnis.",
"manual": false,
"reason": "Ea natus voluptatem.",
"workspace": "Similique quam rerum sed voluptatem est."
}List modules associated with this workspace.
Org is the organisation identifier.
17bProject is the project identifier.
8Identifier is the project identifier.
dAccount is the internal customer account ID.
e3OK response.
Represents an individual OpenTofu or Terraform module.
Number of times this module is invoked in the workspace
3Module key
ec2-instance_testModule source
registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/completeTerragrunt stack path (empty for regular Terraform workspaces)
environments/prod/ec2Module version
5.0.0BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/modules HTTP/1.1
Host: localhost:80
Harness-Account: e3
Accept: */*
[
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
},
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
},
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
},
{
"invocations": 3,
"key": "ec2-instance_test",
"source": "registry.opentofu.org/terraform-aws-modules/ec2-instance/aws//examples/complete",
"stack_path": "environments/prod/ec2",
"version": "5.0.0"
}
]Return the applied resource graph for a workspace. With no query, the response is the resource graph when it fits the size limit and a module summary when it does not. module expands one module. focus expands one resource and its direct dependencies. Resource attributes are omitted.
Org is the organisation identifier.
gxProject is the project identifier.
gWorkspace identifier.
t9Module address to expand, such as root or module.network.
Delectus eligendi quia et sunt eaque distinctio.Stack path of the module to expand. Empty for a single-root workspace. Requires module.
Autem placeat.Resource UUID to expand by one hop.
2d9b3898-561e-410b-ac2b-9286bc4737a9Neighborhood distance when focus is set. Only 1 is supported.
1Example: 1Account is the internal customer account ID.
1wOK response.
True when another request can expand this response into a smaller slice.
falseRepresentation contained in nodes and edges.
resourcesPossible values: BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
payload_too_large: Requested resource graph slice exceeds the maximum supported size
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/resource-graph HTTP/1.1
Host: localhost:80
Harness-Account: 1w
Accept: */*
{
"edges": [
{
"attributes": [
"vpc_id"
],
"source": "11111111-1111-1111-1111-111111111111",
"target": "22222222-2222-2222-2222-222222222222"
},
{
"attributes": [
"vpc_id"
],
"source": "11111111-1111-1111-1111-111111111111",
"target": "22222222-2222-2222-2222-222222222222"
},
{
"attributes": [
"vpc_id"
],
"source": "11111111-1111-1111-1111-111111111111",
"target": "22222222-2222-2222-2222-222222222222"
}
],
"nodes": [
{
"address": "aws_subnet.private[0]",
"drift_status": "unchanged",
"id": "11111111-1111-1111-1111-111111111111",
"mode": "managed",
"module": "root",
"name": "private[0]",
"path_id": "dev",
"provider": "registry.terraform.io/hashicorp/aws",
"resource_count": 2413488699199516700,
"stub": true,
"type": "aws_subnet"
},
{
"address": "aws_subnet.private[0]",
"drift_status": "unchanged",
"id": "11111111-1111-1111-1111-111111111111",
"mode": "managed",
"module": "root",
"name": "private[0]",
"path_id": "dev",
"provider": "registry.terraform.io/hashicorp/aws",
"resource_count": 2413488699199516700,
"stub": true,
"type": "aws_subnet"
},
{
"address": "aws_subnet.private[0]",
"drift_status": "unchanged",
"id": "11111111-1111-1111-1111-111111111111",
"mode": "managed",
"module": "root",
"name": "private[0]",
"path_id": "dev",
"provider": "registry.terraform.io/hashicorp/aws",
"resource_count": 2413488699199516700,
"stub": true,
"type": "aws_subnet"
},
{
"address": "aws_subnet.private[0]",
"drift_status": "unchanged",
"id": "11111111-1111-1111-1111-111111111111",
"mode": "managed",
"module": "root",
"name": "private[0]",
"path_id": "dev",
"provider": "registry.terraform.io/hashicorp/aws",
"resource_count": 2413488699199516700,
"stub": true,
"type": "aws_subnet"
}
],
"truncated": true,
"view": "resources"
}List resources associated with this workspace.
Org is the organisation identifier.
noProject is the project identifier.
rWorkspace identifier.
29Limit is the number of records to return for a page. When omitted, all records are returned.
30Page is the page number to return relative to the page 'limit'. When omitted, all records are returned.
1Resource types to filter by.
["aws_instance","google_compute_instance"]Account is the internal customer account ID.
mOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/resources HTTP/1.1
Host: localhost:80
Harness-Account: m
Accept: */*
{
"data_sources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"outputs": [
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
}
],
"resources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"stack_outputs": {
"IaCM/TGOverride/environments/dev/ec2": [
{
"name": "instance_id",
"sensitive": false,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "i-1234567890abcdef0"
}
]
},
"total_resources": 42
}Get a single provisioned resource by its IaCM resource ID (resources.id UUID). Returns the same Resource shape as list-resources.
Org is the organisation identifier.
55Project is the project identifier.
cWorkspace identifier.
zIaCM resource ID (resources.id UUID).
11111111-1111-1111-1111-111111111111Account is the internal customer account ID.
2nOK response.
Timestamp when the resource was created.
1627590400Indicates if this resource is experiencing drift.
changedPossible values: Timestamp when the resource was last updated.
1627686800Mode associated with the resource.
resourcePossible values: Module associated with the resource.
full_stackCurrent period cost from CCM (null if no cost data).
0.17405730020868984Monthly potential saving from CCM (null if no cost data).
0.21305224557853683Name associated with the resource.
app_serverPath associated with the resource. Could be namespace, environment or stack id.
namespaceCloud provider associated with the resource.
AWSNumber of CCM recommendations for this resource (null if no cost data).
6719760703679275000Unique identifier for the resource from the cloud provider.
arn:aws:s3:::my-bucketType of the provisioned resource.
S3 BucketBadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{identifier}/resources/{id} HTTP/1.1
Host: localhost:80
Harness-Account: 2n
Accept: */*
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.5739923905487929,
"monthly_saving": 0.08183214308009837,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 2053648467760526000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}List resources for a workspace using selectors. Pagination is optional: when limit and page are omitted (or zero), all matching resources are returned for backward compatibility.
Org is the organisation identifier.
gProject is the project identifier.
hzWorkspace identifier
Esse vel est quisquam.Account is the internal customer account ID.
7qxLimit is the number of records to return for a page. When omitted, all records are returned.
30Page is the page number to return relative to the page 'limit'. When omitted, all records are returned.
1OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{identifier}/resources/search HTTP/1.1
Host: localhost:80
Harness-Account: 7qx
Content-Type: application/json
Accept: */*
Content-Length: 578
{
"limit": 30,
"page": 1,
"selectors": [
{
"include_conditions": [
{
"attribute": "tag.environment",
"operator": "equals",
"value": "prod"
}
],
"path_id": "qa",
"provider": "aws",
"resource_type": "aws_instance",
"search_text": "some text"
},
{
"include_conditions": [
{
"attribute": "tag.environment",
"operator": "equals",
"value": "prod"
}
],
"path_id": "qa",
"provider": "aws",
"resource_type": "aws_instance",
"search_text": "some text"
},
{
"include_conditions": [
{
"attribute": "tag.environment",
"operator": "equals",
"value": "prod"
}
],
"path_id": "qa",
"provider": "aws",
"resource_type": "aws_instance",
"search_text": "some text"
}
]
}{
"data_sources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"outputs": [
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
},
{
"expression": "<+outputs.instance_id>",
"name": "instance_public_ip",
"sensitive": true,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "Temporibus iusto porro amet."
}
],
"resources": [
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
},
{
"attributes": {
"ami": "ami-830c94ec",
"instance_type": "t2.micro"
},
"createdAt": 1627590400,
"drift_attributes": {
"instance_type": "t2.nano"
},
"drift_status": "changed",
"lastSyncedAt": 1627686800,
"mode": "resource",
"module": "full_stack",
"monthly_cost": 0.01905283111564605,
"monthly_saving": 0.32511100926090114,
"name": "app_server",
"path_id": "namespace",
"provider": "AWS",
"recommendation_count": 3315473753417558000,
"resource_id": "arn:aws:s3:::my-bucket",
"sensitive_attributes": [
"instance_type"
],
"type": "S3 Bucket"
}
],
"stack_outputs": {
"IaCM/TGOverride/environments/dev/ec2": [
{
"name": "instance_id",
"sensitive": false,
"stack_path": "IaCM/TGOverride/environments/dev/ec2",
"value": "i-1234567890abcdef0"
}
]
},
"total_resources": 42
}Returns whether auto-plan webhooks are enabled and related metadata.
Org is the organisation identifier.
fProject is the project identifier.
m3Workspace identifier
Explicabo non tenetur ea ipsam.Account is the internal customer account ID.
gkOK response.
falseHarness trigger ID for commit auto-plan
Quia molestiae repellat et.trueUnix milliseconds of the last trigger mapping update
838020437005263600Earum tempore voluptates rerum.falseHarness trigger ID for pull-request auto-plan
Recusandae voluptas debitis.Trigger mapping status: active, pending_update, or failed
Laborum suscipit ad molestiae deserunt quos.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-plan-config HTTP/1.1
Host: localhost:80
Harness-Account: gk
Accept: */*
{
"commit_automation": false,
"commit_trigger_id": "Rerum ipsam molestiae nesciunt aut.",
"enabled": true,
"last_updated": 2783884540902830600,
"pipeline_id": "Quos quia.",
"pr_automation": false,
"pr_open_trigger_id": "Et sunt perferendis excepturi aut.",
"status": "Aut recusandae ex."
}Creates Harness webhook triggers that run the workspace plan pipeline on pull-request open/update and on commits to the tracked branch. Git provider, connector, and repo are taken from the workspace.
Org is the organisation identifier.
hxProject is the project identifier.
54Workspace identifier
Rerum dolores vitae adipisci ad sint eum.Account is the internal customer account ID.
brCreate the commit/synchronize plan trigger
trueExample: falsePipeline to run for auto-plan
Quam tempora et perspiciatis.Create the pull-request plan trigger
trueExample: trueOK response.
Outcome message
Ipsa tempora.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-plan-config HTTP/1.1
Host: localhost:80
Harness-Account: br
Content-Type: application/json
Accept: */*
Content-Length: 92
{
"commit_automation": true,
"pipeline_id": "Quasi sed nihil sunt atque.",
"pr_automation": false
}{
"status": "Est aspernatur officia eos tempora debitis."
}Removes auto-plan webhook triggers for the workspace. Failed Harness deletes are queued for retry.
Org is the organisation identifier.
gProject is the project identifier.
l7lWorkspace identifier
Error necessitatibus officiis ullam.Account is the internal customer account ID.
0uOK response.
Outcome message
Magnam quis deleniti.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-plan-config HTTP/1.1
Host: localhost:80
Harness-Account: 0u
Accept: */*
{
"status": "Voluptas dolorem et tenetur."
}Returns whether auto-provision webhooks are enabled and related metadata.
Org is the organisation identifier.
t2mProject is the project identifier.
oWorkspace identifier
Corrupti atque iusto expedita.Account is the internal customer account ID.
23OK response.
falseUnix milliseconds of the last trigger mapping update
5288704161099646000Quia assumenda voluptas error.Trigger mapping status: active, pending_update, or failed
Mollitia modi recusandae dolores.Harness trigger ID for merged-PR auto-provision
Quis aut quia.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-provision-config HTTP/1.1
Host: localhost:80
Harness-Account: 23
Accept: */*
{
"enabled": false,
"last_updated": 6322170784640343000,
"pipeline_id": "Autem odio qui possimus est.",
"status": "Reprehenderit nihil.",
"trigger_id": "Molestiae in nostrum."
}Creates a Harness webhook trigger that runs the workspace apply pipeline when a pull request is merged. Git provider, connector, and repo are taken from the workspace.
Org is the organisation identifier.
9nProject is the project identifier.
5hWorkspace identifier
Error possimus.Account is the internal customer account ID.
mPipeline to run for auto-provision
Nisi nihil.OK response.
Outcome message
Aliquid et.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-provision-config HTTP/1.1
Host: localhost:80
Harness-Account: m
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"pipeline_id": "Perspiciatis ipsam."
}{
"status": "Quaerat aut quia non totam dolorem."
}Removes the auto-provision webhook trigger for the workspace. Failed Harness deletes are queued for retry.
Org is the organisation identifier.
huyProject is the project identifier.
caWorkspace identifier
Dolorem beatae accusantium modi adipisci.Account is the internal customer account ID.
7OK response.
Outcome message
Dolor eveniet laborum ut cumque libero.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/auto-provision-config HTTP/1.1
Host: localhost:80
Harness-Account: 7
Accept: */*
{
"status": "Eum quo ea nesciunt commodi omnis."
}Clone the given workspace with new name.
Org is the organisation identifier.
u5uProject is the project identifier.
02Nesciunt dolorem temporibus animi molestiae et vero.Account is the internal customer account ID.
8Workspace identifier.
oPattern: ^[A-Za-z_][A-Za-z0-9_-]*$Name is the human readable name for the resource.
resource namePattern: ^[A-Za-z_][A-Za-z0-9_ -]*$OK response.
Create-WorkspaceResponseBody result type (default view)
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/clone HTTP/1.1
Host: localhost:80
Harness-Account: 8
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"identifier": "bbw",
"name": "resource name"
}{
"policy_evaluation": {
"account_id": "XRQAjvT37acOiXx9PRaQMF",
"action": "onrun",
"created": 1636370209475,
"details": [
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
},
{
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"action": "onrun",
"created": 1636669297674,
"description": "Captures critical production policies",
"details": [
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
},
{
"deny_messages": [
"deployment stage 'example-stage' does not have a HarnessApproval step",
"deployment stage 'example-stage' has step 'run-script' that is forbidden type 'ShellScript'"
],
"output": "{\n \"deny\": [\n \"deployment stage 'deploy' does not have a HarnessApproval step\"\n ],\n \"stages_with_approval\": []\n}",
"policy": {
"account_id": "eBqAoNchMLKigC_qZ5EdC",
"created": 1636669297674,
"identifier": "policy-1",
"name": "Pipeline Approval",
"org_id": "test-org",
"project_id": "test-project",
"rego": "",
"updated": 1636669297674
},
"rego_error": "policy.rego:25: rego_parse_error: non-terminated string m == \"test",
"status": "error"
}
],
"enabled": true,
"identifier": "policyset-1",
"name": "Production Policies",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline",
"updated": 1636669297674
}
],
"entity": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"entity_metadata": "7bbca5d4-e9f2-4955-9b2a-019ec4d3645e",
"id": 123,
"input": "",
"org_id": "test-org",
"project_id": "test-project",
"status": "error",
"type": "pipeline,service"
}
}List all stored data for a workspace.
Org is the organisation identifier.
1oeProject is the project identifier.
md0Workspace identifier
Quia ut dolore natus voluptatem quibusdam molestiae.Filter by pipeline execution ID
Est ducimus eos deserunt.Filter by pipeline execution stage ID
Et est temporibus id quo.Filter by provisioner type
Asperiores voluptate odit.Filter by data type
Vel voluptatibus.Filter by stack path
Tenetur aut quia.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
sdlOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/data HTTP/1.1
Host: localhost:80
Harness-Account: sdl
Accept: */*
[
{
"account": "q3",
"created": 6540489608371019000,
"data_type": "cdk_tree",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"org": "q",
"pipeline_execution_id": "Rem nesciunt dolorum hic.",
"pipeline_id": "Sint sit dolor laborum eum nemo ut.",
"pipeline_stage_id": "Optio laborum modi voluptate.",
"project": "g",
"provisioner_type": "awscdk",
"stack_path": "Ipsum numquam dolorum ea voluptatibus velit rem.",
"stage_id": "Et ducimus a distinctio.",
"workspace": "workspace123"
},
{
"account": "q3",
"created": 6540489608371019000,
"data_type": "cdk_tree",
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"org": "q",
"pipeline_execution_id": "Rem nesciunt dolorum hic.",
"pipeline_id": "Sint sit dolor laborum eum nemo ut.",
"pipeline_stage_id": "Optio laborum modi voluptate.",
"project": "g",
"provisioner_type": "awscdk",
"stack_path": "Ipsum numquam dolorum ea voluptatibus velit rem.",
"stage_id": "Et ducimus a distinctio.",
"workspace": "workspace123"
}
]Store binary data generated by the provisioner, such as plans and state files.
Org is the organisation identifier.
d5Project is the project identifier.
fWorkspace identifier
workspace123The unique identifier for the associated pipeline
Ipsa perspiciatis dolor ad.The unique identifier for a stage
Quae dolores aspernatur.The unique identifier for the associated pipeline execution
Delectus ipsa alias in accusamus.The unique identifier for the associated pipeline execution stage
Eos reprehenderit qui consectetur.Type of provisioner that created the data
awscdkPossible values: Type of data stored
cdk_templatePossible values: Policy action used during OPA evaluation
afterTerraformApplyIndicates the plugin supports OPA SDK-based evaluation
falseOptional path to the stack module
Voluptatem dolores in.Account is the internal customer account ID.
5lSize in bytes of the data.
8677490156942426000OK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaPre-rendered message included when policy evaluation did not pass
- instance type 'xlarge' is not permittedThe overall status of policy evaluation (if it occurred) indicating whether it passed
errorPossible values: BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/data?pipeline_id=Ipsa+perspiciatis+dolor+ad.&stage_id=Quae+dolores+aspernatur.&pipeline_execution_id=Delectus+ipsa+alias+in+accusamus.&pipeline_stage_id=Eos+reprehenderit+qui+consectetur.&provisioner_type=awscdk&data_type=cdk_template HTTP/1.1
Host: localhost:80
Harness-Account: 5l
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"policy_evaluation": [
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
}
],
"policy_evaluation_message": "- instance type 'xlarge' is not permitted",
"policy_evaluation_status": "error"
}Get binary data generated by the provisioner, such as plans and state files.
Org is the organisation identifier.
4Project is the project identifier.
vxWorkspace is the resource workspace this variable is associated with.
Dolorum dolorem.The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaAccount is the internal customer account ID.
zOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/data/{id} HTTP/1.1
Host: localhost:80
Harness-Account: z
Accept: */*
binaryEvaluate policy against previously stored data, such as plans and state files.
Org is the organisation identifier.
jduProject is the project identifier.
zWorkspace is the resource workspace this variable is associated with.
Rerum expedita ut quaerat impedit velit.The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaPipeline execution associated with this evaluation
Facere nobis qui perspiciatis expedita ea et.Policy action used during OPA evaluation
afterTerraformApplyAccount is the internal customer account ID.
6bqOK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaPre-rendered message included when policy evaluation did not pass
- instance type 'xlarge' is not permittedThe overall status of policy evaluation (if it occurred) indicating whether it passed
errorPossible values: BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/data/{id}/evaluate-policy?policy_action=afterTerraformApply HTTP/1.1
Host: localhost:80
Harness-Account: 6bq
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"policy_evaluation": [
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
}
],
"policy_evaluation_message": "- instance type 'xlarge' is not permitted",
"policy_evaluation_status": "error"
}Upload dependency graph for an existing plan file.
Org is the organisation identifier.
fbProject is the project identifier.
r3Workspace identifier
workspace123The unique identifier for the associated pipeline
Ut et consequatur neque nam est.The unique identifier for a stage
Fugiat minima perferendis omnis animi molestias enim.The unique identifier for the associated pipeline execution
Non quia deserunt quas asperiores beatae.The unique identifier for the associated pipeline execution stage
Maxime molestiae optio reprehenderit.Type of provisioner that created the data
awscdkPossible values: Type of data stored
cdk_treePossible values: Optional path to the stack module
Enim saepe.Account is the internal customer account ID.
uSize in bytes of the graph data.
2777861322887190500OK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaPre-rendered message included when policy evaluation did not pass
- instance type 'xlarge' is not permittedThe overall status of policy evaluation (if it occurred) indicating whether it passed
errorPossible values: BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/dependency-graph?pipeline_id=Ut+et+consequatur+neque+nam+est.&stage_id=Fugiat+minima+perferendis+omnis+animi+molestias+enim.&pipeline_execution_id=Non+quia+deserunt+quas+asperiores+beatae.&pipeline_stage_id=Maxime+molestiae+optio+reprehenderit.&provisioner_type=awscdk&data_type=cdk_tree HTTP/1.1
Host: localhost:80
Harness-Account: u
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"policy_evaluation": [
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
}
],
"policy_evaluation_message": "- instance type 'xlarge' is not permitted",
"policy_evaluation_status": "error"
}Returns whether drift automation is enabled and related metadata.
Org is the organisation identifier.
bProject is the project identifier.
usWorkspace identifier
Omnis omnis itaque suscipit eaque.Provisioner key (defaults to opentofu when omitted)
Possimus qui.Account is the internal customer account ID.
eOK response.
falseQuibusdam nostrum est.Repeat interval; set when schedule is configured
7878648940724830000hours or days
daysPossible values: Voluptatem pariatur quis.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/drift-config HTTP/1.1
Host: localhost:80
Harness-Account: e
Accept: */*
{
"enabled": false,
"pipeline_id": "Unde omnis et dolor non.",
"run_every": 7260470872493344000,
"run_every_unit": "hours",
"trigger_id": "Nihil nobis qui."
}Configures drift detection pipeline and schedule for the workspace.
Org is the organisation identifier.
gProject is the project identifier.
lukWorkspace identifier
Esse est rem.Account is the internal customer account ID.
czPipeline to run for drift detection
Qui qui velit dolorem et ad.Provisioner key (defaults to opentofu when omitted)
Dolore natus magni ratione.Run drift detection every N hours or N days (see run_every_unit)
8584009500598941000hours or days
minutesPossible values: OK response.
Outcome message
Nisi architecto.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/drift-config HTTP/1.1
Host: localhost:80
Harness-Account: cz
Content-Type: application/json
Accept: */*
Content-Length: 126
{
"pipeline_id": "Blanditiis eius quia.",
"provisioner": "Iste sunt aut.",
"run_every": 270202010415451300,
"run_every_unit": "hours"
}{
"status": "Quod eum."
}Removes drift scheduling and related configuration for the workspace.
Org is the organisation identifier.
kaProject is the project identifier.
7Workspace identifier
Quis autem recusandae eos id aut ea.Provisioner key (defaults to opentofu when omitted)
Fuga animi aut placeat necessitatibus minus dolores.Account is the internal customer account ID.
8OK response.
Outcome message
Et expedita quibusdam consequatur molestiae sunt et.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/drift-config HTTP/1.1
Host: localhost:80
Harness-Account: 8
Accept: */*
{
"status": "Id inventore quasi."
}Returns whether ephemeral TTL is enabled and related metadata.
Org is the organisation identifier.
9dgProject is the project identifier.
olWorkspace identifier
Ipsum rerum animi itaque.Provisioner key (defaults to opentofu when omitted)
Sint aut.Account is the internal customer account ID.
bv0OK response.
Scheduled deletion timestamp (ISO 8601)
Aperiam fuga.Configured delete delay unit (hours or days)
daysPossible values: Configured delete delay value (when delete_workspace is true)
8330355675284791000Configured delete date (YYYY-MM-DD) when schedule uses a specific date
Consectetur magni nam amet sunt rerum.Whether workspace will be deleted after destroy
falseScheduled destruction timestamp (ISO 8601)
Non dicta.Configured destroy date (YYYY-MM-DD) when schedule uses a specific date
Qui nam distinctio iure.trueQui amet necessitatibus ad.Provisioner this configuration applies to
Aperiam nulla laudantium in dolorem est.Origin of the configuration: 'workspace', 'project', or 'disabled'
disabledPossible values: Harness trigger ID for the destroy schedule
Consequatur autem accusamus nihil.Configured destroy delay unit (hours or days)
daysPossible values: Configured destroy delay value (when schedule uses delay)
633552043677647900BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/ephemeral-config HTTP/1.1
Host: localhost:80
Harness-Account: bv0
Accept: */*
{
"delete_at": "Beatae cum.",
"delete_delay_unit": "days",
"delete_delay_value": 3891724312763759600,
"delete_on_date": "Vel iusto non maiores ex ea.",
"delete_workspace": true,
"destroy_at": "Incidunt tempora a tempore.",
"destroy_on_date": "Quia qui placeat cum nihil voluptas.",
"enabled": false,
"pipeline_id": "Similique commodi qui id velit.",
"provisioner": "Non ut.",
"source": "project",
"trigger_id": "Dolor veritatis voluptas.",
"ttl_unit": "seconds",
"ttl_value": 5152995014675474000
}Configures time-to-live settings to automatically destroy infrastructure and optionally delete the workspace.
Org is the organisation identifier.
7Project is the project identifier.
0mWorkspace identifier
Et animi officiis.Account is the internal customer account ID.
fUnit for delete delay
secondsPossible values: Delete workspace after N hours or days from now
7383443828328143000Specific date to delete workspace (ISO 8601 format, e.g. 2026-09-02)
Perferendis totam eum illum.Whether to delete the workspace record after infrastructure is destroyed
trueUnit for destroy delay
daysPossible values: Destroy infrastructure after N hours or days from now
4390518099527992300Specific date to destroy infrastructure (ISO 8601 format, e.g. 2026-08-24)
Et qui quasi nihil dolor voluptatibus.Pipeline to run for destroying infrastructure
Et ab et sunt aut.Provisioner key (defaults to opentofu when omitted)
Sapiente unde qui magnam.OK response.
Computed delete timestamp (ISO 8601), empty if delete_workspace is false
Rerum est qui ex qui rem.Computed destroy timestamp (ISO 8601)
Excepturi adipisci ipsum ducimus est architecto molestias.Outcome message
Qui quo in et.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/ephemeral-config HTTP/1.1
Host: localhost:80
Harness-Account: f
Content-Type: application/json
Accept: */*
Content-Length: 393
{
"delete_delay_unit": "seconds",
"delete_delay_value": 6333660294114714000,
"delete_on_date": "Animi qui aspernatur ipsum consequuntur est.",
"delete_workspace": true,
"destroy_delay_unit": "minutes",
"destroy_delay_value": 4228951436843927600,
"destroy_on_date": "Nemo eaque mollitia natus ipsum.",
"pipeline_id": "Molestiae et nulla pariatur adipisci.",
"provisioner": "Explicabo ipsa est deleniti ducimus."
}{
"delete_at": "Fugit libero rem.",
"destroy_at": "Dolore molestias.",
"status": "Temporibus sed dignissimos aut."
}Removes ephemeral scheduling and related configuration for the workspace.
Org is the organisation identifier.
byProject is the project identifier.
zs3Workspace identifier
Et vero ut.Provisioner key (defaults to opentofu when omitted)
Reiciendis rerum est quia non et blanditiis.Account is the internal customer account ID.
etbOK response.
Outcome message
Distinctio facere eveniet dicta nobis facere.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/ephemeral-config HTTP/1.1
Host: localhost:80
Harness-Account: etb
Accept: */*
{
"status": "Est enim est possimus."
}Store binary data generated by the provisioner, such as plans and state files.
Org is the organisation identifier.
fProject is the project identifier.
vnWorkspace associated with this event
tAccount is the internal customer account ID.
rThe type of event that occurred
inactivePossible values: Deprecated: use metadata instead
""Example: Quia omnis aut et quibusdam tempore ut.Deprecated: use metadata instead
""Example: Laboriosam possimus laborum.OK response.
No content
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/events HTTP/1.1
Host: localhost:80
Harness-Account: r
Content-Type: application/json
Accept: */*
Content-Length: 9106
{
"data": {
"Libero possimus eum qui voluptas.": "Voluptas nemo sit occaecati molestiae at voluptates."
},
"event_type": "drifted",
"metadata": {
"PlannedChangesCount": 2311114425189330400,
"activity_status": "incomplete",
"activity_type": "import",
"cost_breakdown_uuid": "Voluptas hic.",
"cost_currency": "Molestias quia laudantium amet molestiae provident.",
"cost_diff_total_monthly": "Fugiat vel enim voluptas.",
"cost_diff_uuid": "Vero est.",
"cost_past_total_monthly": "Quia fugiat qui eum voluptatem sequi voluptatibus.",
"cost_total_monthly": "Inventore et qui.",
"cost_total_monthly_percentage_change": "Reiciendis exercitationem inventore ducimus excepturi.",
"data_length": 976895326195666800,
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"enable_solutions_factory": true,
"git_branch": "Aliquid est est porro.",
"git_commit_message": "Facere iste qui id.",
"git_commit_sha": "Qui accusantium.",
"git_repo": "Magnam alias veritatis animi nobis sint.",
"modules_uuid": "Vero dignissimos labore soluta.",
"output_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"pipeline": "Dignissimos consectetur voluptate esse sed eveniet sit.",
"pipeline_execution_id": "Sint quis error nihil.",
"pipeline_execution_number": "Est earum excepturi ut rerum perspiciatis.",
"pipeline_name": "Illo libero.",
"pipeline_stage_id": "Sed voluptas.",
"pipeline_status": "ERRORED",
"plan_uuid": "Impedit qui.",
"providers_uuid": "Nostrum nisi consequuntur rerum.",
"provisioner": "Ullam tempora rem at iusto dolores amet.",
"provisioner_version": "Esse est qui.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"rollback_reason": "Qui pariatur quam dicta error iure.",
"rollback_source_id": "Quae vero ex dolor repellat.",
"stacks": [
{
"assets_uuid": "Consequatur non voluptatem non.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"drift_uuid": "Inventore ut nihil et distinctio quo impedit.",
"error_message": "Dolores corporis repudiandae ex accusantium delectus sunt.",
"manifest_uuid": "Blanditiis iusto.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"stack_name": "Perspiciatis rerum ab dolorem.",
"stack_outputs": {
"Totam consequatur exercitationem.": "Labore magni."
},
"stack_path": "Eligendi dolore ut ut officia voluptas ut.",
"status": "success",
"template_uuid": "Rerum laboriosam.",
"tree_uuid": "Iusto id molestias sit quaerat."
},
{
"assets_uuid": "Consequatur non voluptatem non.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"drift_uuid": "Inventore ut nihil et distinctio quo impedit.",
"error_message": "Dolores corporis repudiandae ex accusantium delectus sunt.",
"manifest_uuid": "Blanditiis iusto.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"stack_name": "Perspiciatis rerum ab dolorem.",
"stack_outputs": {
"Totam consequatur exercitationem.": "Labore magni."
},
"stack_path": "Eligendi dolore ut ut officia voluptas ut.",
"status": "success",
"template_uuid": "Rerum laboriosam.",
"tree_uuid": "Iusto id molestias sit quaerat."
},
{
"assets_uuid": "Consequatur non voluptatem non.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"drift_uuid": "Inventore ut nihil et distinctio quo impedit.",
"error_message": "Dolores corporis repudiandae ex accusantium delectus sunt.",
"manifest_uuid": "Blanditiis iusto.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"stack_name": "Perspiciatis rerum ab dolorem.",
"stack_outputs": {
"Totam consequatur exercitationem.": "Labore magni."
},
"stack_path": "Eligendi dolore ut ut officia voluptas ut.",
"status": "success",
"template_uuid": "Rerum laboriosam.",
"tree_uuid": "Iusto id molestias sit quaerat."
}
],
"state_checksum": "Qui rerum iusto.",
"state_uuid": "Ullam aliquid cupiditate dolores.",
"terragrunt_details": [
{
"cost_breakdown_uuid": "Debitis molestiae enim mollitia est consequatur sed.",
"cost_currency": "Quidem voluptatibus assumenda voluptates et.",
"cost_diff_total_monthly": "Molestiae veniam.",
"cost_diff_uuid": "Recusandae officia.",
"cost_past_total_monthly": "Optio architecto nihil libero.",
"cost_total_monthly": "Omnis eum fuga sed fugiat deleniti ut.",
"cost_total_monthly_percentage_change": "Ipsam distinctio fuga.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"output_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"path_id": "Praesentium consectetur earum maiores.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"state_file_link": "Laborum nihil possimus blanditiis enim eius.",
"status": "Aut veritatis."
},
{
"cost_breakdown_uuid": "Debitis molestiae enim mollitia est consequatur sed.",
"cost_currency": "Quidem voluptatibus assumenda voluptates et.",
"cost_diff_total_monthly": "Molestiae veniam.",
"cost_diff_uuid": "Recusandae officia.",
"cost_past_total_monthly": "Optio architecto nihil libero.",
"cost_total_monthly": "Omnis eum fuga sed fugiat deleniti ut.",
"cost_total_monthly_percentage_change": "Ipsam distinctio fuga.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"output_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"path_id": "Praesentium consectetur earum maiores.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"state_file_link": "Laborum nihil possimus blanditiis enim eius.",
"status": "Aut veritatis."
},
{
"cost_breakdown_uuid": "Debitis molestiae enim mollitia est consequatur sed.",
"cost_currency": "Quidem voluptatibus assumenda voluptates et.",
"cost_diff_total_monthly": "Molestiae veniam.",
"cost_diff_uuid": "Recusandae officia.",
"cost_past_total_monthly": "Optio architecto nihil libero.",
"cost_total_monthly": "Omnis eum fuga sed fugiat deleniti ut.",
"cost_total_monthly_percentage_change": "Ipsam distinctio fuga.",
"drift_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"output_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"path_id": "Praesentium consectetur earum maiores.",
"resource_counts": {
"added": 9212491354152771000,
"changed": 703323033953042300,
"deleted": 868040660597113600,
"imported": 6499253911078169000,
"removed": 5875780235693349000,
"replaced": 1774374459062137600,
"unchanged": 3936407468113801000
},
"state_file_link": "Laborum nihil possimus blanditiis enim eius.",
"status": "Aut veritatis."
}
],
"trigger": {
"Modi nesciunt.": "Accusamus et asperiores porro adipisci rem.",
"Non delectus.": "Incidunt reiciendis."
},
"via_cfn": true
},
"pipeline_execution_id": "Adipisci consequatur.",
"pipeline_stage_id": "Iure praesentium quod."
}No content
List the pipelines where the workspace is been used
Org is the organisation identifier.
mProject is the project identifier.
nWorkspace identifier
Inventore voluptas quia libero quia dolores tenetur.Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Account is the internal customer account ID.
xOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/pipelines HTTP/1.1
Host: localhost:80
Harness-Account: x
Accept: */*
{
"account": "nz",
"org": "k8",
"pipelines": [
"Debitis dignissimos veritatis rem.",
"Commodi et suscipit accusamus.",
"Rerum qui error quibusdam saepe beatae harum."
],
"project": "jsr"
}Create a remote execution for a workspace.
Org is the organisation identifier.
3Project is the project identifier.
eThe workspace associated with the remote execution.
Sunt labore sed.Account is the internal customer account ID.
qiCreated response.
Account is the internal customer account ID.
9ulCreated is the unix timestamp at which the resource was originally created in milliseconds.
1322908114132515000The boolean value indicating if the remote execution has been executed.
falseThe ID of the remote execution.
54f419f4-a2b9-4683-96ec-4954014097a8Org is the organisation identifier.
vThe pipeline execution ID of the pipeline executing the remote execution
Sunt accusamus culpa ut.The pipeline execution URL of the pipeline executing the remote execution
Amet qui numquam necessitatibus et.Project is the project identifier.
zThe checksum of the patch file of changes that the remote execution will run against.
Iusto aut occaecati fuga.Modified is the unix timestamp at which the resource was last modified in milliseconds.
1145138877143785300The workspace associated with the remote execution.
Minus fugiat.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions HTTP/1.1
Host: localhost:80
Harness-Account: qi
Content-Type: application/json
Accept: */*
Content-Length: 440
{
"custom_arguments": {
"Dolor eos harum.": [
"Similique esse.",
"Et odio.",
"Maiores atque maxime et.",
"Ut perspiciatis velit non maxime."
],
"Dolore a dolores qui consequatur et.": [
"Et consequatur.",
"Excepturi sint.",
"Eius nisi quis enim doloremque ullam."
],
"Ut eum quo quod unde eligendi distinctio.": [
"Velit quia incidunt quo.",
"Culpa qui esse doloribus quasi cumque veniam.",
"Et dolores quia iusto.",
"Quibusdam consequatur id sint possimus."
]
}
}{
"account": "1",
"created": 5378511880025979000,
"custom_arguments": {
"Laudantium qui et consectetur eum aut excepturi.": [
"Explicabo et tempora qui hic tempore.",
"Explicabo laboriosam ipsa autem vero qui.",
"Nostrum ut sit veritatis labore eveniet animi.",
"Veritatis aut dolorum magnam blanditiis voluptas rem."
],
"Ut ut exercitationem neque.": [
"Aut nemo consequatur doloremque.",
"Fugit maxime ea dolor aperiam repellendus.",
"Distinctio reiciendis id."
]
},
"executed": true,
"id": "3477c581-057b-44d7-bcf4-58a24e0d36e2",
"org": "06",
"pipeline_execution_id": "Modi beatae earum totam architecto sunt.",
"pipeline_execution_url": "In qui cupiditate ullam non cum aut.",
"project": "sub",
"sha256_checksum": "Vel eligendi.",
"updated": 965218394187895800,
"workspace": "Voluptas recusandae corporis quia."
}Find remote execution
Org is the organisation identifier.
9Project is the project identifier.
iWorkspace is the resource workspace this variable is associated with.
Et est qui.The ID of the remote execution
0518da1e-75e5-41ee-be9e-c1c2dd450112Account is the internal customer account ID.
7OK response.
Account is the internal customer account ID.
8xcCreated is the unix timestamp at which the resource was originally created in milliseconds.
1108939360378850400The boolean value indicating if the remote execution has been executed.
trueThe ID of the remote execution.
9fbd8e86-3ee8-4494-8c2a-09925faf868dOrg is the organisation identifier.
luThe pipeline execution ID of the pipeline executing the remote execution
Sint sequi minima ea unde.The pipeline execution URL of the pipeline executing the remote execution
Id sapiente repudiandae inventore explicabo non et.Project is the project identifier.
pokThe checksum of the patch file of changes that the remote execution will run against.
Cupiditate doloribus quos voluptatem repellendus odit corrupti.Modified is the unix timestamp at which the resource was last modified in milliseconds.
5550271567224742000The workspace associated with the remote execution.
Cum qui aut iure dolor maiores nesciunt.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions/{id} HTTP/1.1
Host: localhost:80
Harness-Account: 7
Accept: */*
{
"account": "3n9",
"created": 6805642675775401000,
"custom_arguments": {
"Ratione optio quidem maiores.": [
"Cum quidem ipsam suscipit impedit aliquam voluptate.",
"Fugit officiis minima."
]
},
"executed": true,
"id": "3a174f85-9c78-4a85-9178-7a6742a474ad",
"org": "4t",
"pipeline_execution_id": "Quae necessitatibus sit molestiae ea veniam.",
"pipeline_execution_url": "Eaque debitis rerum magni.",
"project": "emo",
"sha256_checksum": "Consequatur rerum cupiditate labore aut autem optio.",
"updated": 8648771079413247000,
"workspace": "Vel delectus labore."
}Download the source code for the remote plan.
Org is the organisation identifier.
k8Project is the project identifier.
vlWorkspace is the resource workspace this variable is associated with.
Et ut.The ID of the remote execution
e30e0e7e-8f39-46c8-9bad-b295820e5756Account is the internal customer account ID.
5OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions/{id}/download HTTP/1.1
Host: localhost:80
Harness-Account: 5
Accept: */*
binaryExecute the remote execution
Org is the organisation identifier.
ri6Project is the project identifier.
7tWorkspace is the resource workspace this variable is associated with.
Voluptatibus rerum qui laboriosam placeat.The ID of the remote execution
f06f425b-8069-4b5c-b4ef-50b6ff9c2d31The default pipeline to run: plan (terraform, opentofu, terragrunt; the default) or synth or diff (awscdk; required).
synthPossible values: Account is the internal customer account ID.
5kOK response.
remote execution details for a specific workspace.
Account is the internal customer account ID.
tpyCreated is the unix timestamp at which the resource was originally created in milliseconds.
1421298059128841000The boolean value indicating if the remote execution has been executed.
trueThe ID of the remote execution.
4bac360f-1c3d-4007-a913-af02e08d779aOrg is the organisation identifier.
l7The pipeline execution ID of the pipeline executing the remote execution
Eos id velit.The pipeline execution URL of the pipeline executing the remote execution
Sed consectetur dolor expedita ipsam vel.Project is the project identifier.
dntThe checksum of the patch file of changes that the remote execution will run against.
Et illo accusantium aut.Modified is the unix timestamp at which the resource was last modified in milliseconds.
6514716918660339000The workspace associated with the remote execution.
Id non nesciunt in.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions/{id}/execute HTTP/1.1
Host: localhost:80
Harness-Account: 5k
Accept: */*
{
"account": "sn",
"created": 1299081984574952000,
"custom_arguments": {
"A expedita non nulla ut et.": [
"Corporis excepturi non ut.",
"Aut saepe minus debitis quaerat debitis."
]
},
"executed": true,
"id": "9a83acf7-a517-4ada-9f03-fd5ee668a131",
"org": "qes",
"pipeline_execution_id": "Dolorem delectus itaque culpa et id qui.",
"pipeline_execution_url": "Et rem sed natus sunt non.",
"project": "9",
"sha256_checksum": "Et quaerat ullam explicabo.",
"updated": 5915072540698716000,
"workspace": "Expedita quis recusandae."
}Upload the source code for the remote execution.
Org is the organisation identifier.
1rProject is the project identifier.
5xWorkspace is the resource workspace this variable is associated with.
Molestiae enim voluptates voluptatem.The ID of the remote execution
d801785a-82b2-4084-bc4a-de9a9ac67214Account is the internal customer account ID.
y8qSize in bytes of the source code.
4469388826800512500Content-Digest header as defined in https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Digest. Sha256 is the only supported algorithm.
Atque quas consequatur.OK response.
Account is the internal customer account ID.
52Created is the unix timestamp at which the resource was originally created in milliseconds.
3132701670604299300The boolean value indicating if the remote execution has been executed.
falseThe ID of the remote execution.
b1c85809-f3f4-427e-b8fe-48ad6854ada5Org is the organisation identifier.
pThe pipeline execution ID of the pipeline executing the remote execution
Atque autem minima quos ullam.The pipeline execution URL of the pipeline executing the remote execution
Nostrum ut enim voluptate.Project is the project identifier.
uThe checksum of the patch file of changes that the remote execution will run against.
Sint officia et.Modified is the unix timestamp at which the resource was last modified in milliseconds.
4468695751509290000The workspace associated with the remote execution.
Et nobis est ea illo eveniet eos.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/remote-executions/{id}/upload HTTP/1.1
Host: localhost:80
Harness-Account: y8q
Content-Digest: Atque quas consequatur.
Accept: */*
{
"account": "0",
"created": 3882579926984203300,
"custom_arguments": {
"Possimus maxime neque eius.": [
"Molestiae inventore repellendus.",
"Maxime vel aut autem."
]
},
"executed": true,
"id": "d3c21879-33c7-4f04-afb9-a1e0ecdb00d1",
"org": "5p",
"pipeline_execution_id": "Voluptatibus ut excepturi rerum corrupti reprehenderit libero.",
"pipeline_execution_url": "Architecto aut.",
"project": "r",
"sha256_checksum": "Magni tenetur ut quam sit asperiores.",
"updated": 8661385920077450000,
"workspace": "Necessitatibus ipsum distinctio libero repellat."
}Append one batch of the applied workspace resource graph for an inventory sync. The snapshot stays pending until a batch sets complete, which drops every other sync and makes this sync readable.
Org is the organisation identifier.
olxProject is the project identifier.
mWorkspace identifier
Quia accusantium.Account is the internal customer account ID.
401True on the last batch. Earlier batches leave the snapshot pending.
falseApply sync ID shared with resource inventory publication
6f2b5ac2-cc3e-421e-b782-75fd7fd15509OK response.
Edges stored for this sync, including earlier batches.
8065342656541048000Resources in the inventory for this sync.
4786376777921368000Edges in this batch omitted because an endpoint was missing from this batch or from inventory.
4268252474274659000BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resource-graph HTTP/1.1
Host: localhost:80
Harness-Account: 401
Content-Type: application/json
Accept: */*
Content-Length: 1183
{
"complete": false,
"edges": [
{
"attributes": [
"Eos dolor qui quos accusantium possimus.",
"Quis dolor et quia aut autem quia."
],
"path_id": "Qui deleniti modi corrupti expedita vel.",
"source": "Culpa et.",
"target": "Placeat qui doloremque accusantium."
},
{
"attributes": [
"Eos dolor qui quos accusantium possimus.",
"Quis dolor et quia aut autem quia."
],
"path_id": "Qui deleniti modi corrupti expedita vel.",
"source": "Culpa et.",
"target": "Placeat qui doloremque accusantium."
}
],
"nodes": [
{
"address": "aws_vpc.main",
"mode": "managed",
"module": "Sapiente incidunt animi fuga.",
"name": "Maiores ut et vel nihil.",
"path_id": "Sint et est consequuntur veritatis ut.",
"provider": "Et aspernatur.",
"type": "Autem optio."
},
{
"address": "aws_vpc.main",
"mode": "managed",
"module": "Sapiente incidunt animi fuga.",
"name": "Maiores ut et vel nihil.",
"path_id": "Sint et est consequuntur veritatis ut.",
"provider": "Et aspernatur.",
"type": "Autem optio."
},
{
"address": "aws_vpc.main",
"mode": "managed",
"module": "Sapiente incidunt animi fuga.",
"name": "Maiores ut et vel nihil.",
"path_id": "Sint et est consequuntur veritatis ut.",
"provider": "Et aspernatur.",
"type": "Autem optio."
}
],
"sync_id": "4073a9ca-a932-4870-bafc-c115947c6c0f"
}{
"edge_count": 6199403380776726000,
"node_count": 6476599334367775000,
"skipped_endpoints": 9129693916683099000
}Retrieves the resource types used by workspaces
Org is the organisation identifier.
rwsProject is the project identifier.
xxWorkspace identifier
Odio harum quas.Account is the internal customer account ID.
kfOK response.
List of resource types
["Aspernatur minus qui.","Ad cum eum et aperiam quia eius."]BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resource-types HTTP/1.1
Host: localhost:80
Harness-Account: kf
Accept: */*
[
"Laudantium ipsa fuga laudantium deserunt.",
"Ratione quos et est."
]Retrieves the resource type attributes used by workspaces and attributes
Org is the organisation identifier.
89rProject is the project identifier.
xWorkspace identifier
Voluptatem ad deleniti ut adipisci.Account is the internal customer account ID.
zyOK response.
Map of resource types and their attributes
["Qui harum ex incidunt.","Laborum facere eaque in aspernatur officiis."]BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resource-types-and-attributes HTTP/1.1
Host: localhost:80
Harness-Account: zy
Accept: */*
{
"Aut expedita voluptas quibusdam repellendus voluptas amet.": [
"Eligendi aliquid est.",
"Non unde nemo.",
"Delectus consequatur.",
"Qui est."
],
"Neque nobis blanditiis.": [
"Quia magnam sed quo placeat.",
"Soluta culpa minima praesentium provident enim.",
"Quos nisi cumque quia deserunt."
],
"Unde voluptatem tempore quam aut rerum.": [
"Totam qui.",
"Inventore minima nulla est nihil tempora.",
"Asperiores expedita neque in sed incidunt.",
"Quos magnam velit adipisci asperiores nostrum sint."
]
}Retrieves the resource type attributes used by workspaces
Org is the organisation identifier.
9tkProject is the project identifier.
tyWorkspace identifier
Totam dolores soluta.Resource type
Assumenda expedita iste.Account is the internal customer account ID.
mOK response.
List of resource type attributes
["Est consequatur.","Quo dolores et iusto.","Vitae impedit repellendus.","Aperiam ut."]BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resource-types/{resource_type}/attributes HTTP/1.1
Host: localhost:80
Harness-Account: m
Accept: */*
[
"Soluta ad.",
"Et et aut sint repellat quasi aut."
]Deletes destroyed resources for a workspace.
Org is the organisation identifier.
iProject is the project identifier.
lz7Workspace identifier
Nemo autem.Account is the internal customer account ID.
ipOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resources HTTP/1.1
Host: localhost:80
Harness-Account: ip
Content-Type: application/json
Accept: */*
Content-Length: 523
{
"resources": [
{
"module": "Placeat corrupti voluptatem aut qui perspiciatis quia.",
"name": "Deserunt nemo ut ipsa.",
"path_id": "Molestias laborum qui.",
"provider": "Consequuntur culpa autem unde soluta quae ex.",
"type": "Ea reprehenderit at molestiae sit cupiditate quas."
},
{
"module": "Placeat corrupti voluptatem aut qui perspiciatis quia.",
"name": "Deserunt nemo ut ipsa.",
"path_id": "Molestias laborum qui.",
"provider": "Consequuntur culpa autem unde soluta quae ex.",
"type": "Ea reprehenderit at molestiae sit cupiditate quas."
}
]
}{
"results": [
{
"error": "Eaque et ipsum cumque aut qui voluptatem.",
"module": "Consequuntur ipsa ut.",
"name": "Molestiae aut.",
"provider": "Magni at consectetur nulla.",
"status": "failed",
"type": "Ut voluptatem natus dolorum aperiam dolore hic."
},
{
"error": "Eaque et ipsum cumque aut qui voluptatem.",
"module": "Consequuntur ipsa ut.",
"name": "Molestiae aut.",
"provider": "Magni at consectetur nulla.",
"status": "failed",
"type": "Ut voluptatem natus dolorum aperiam dolore hic."
},
{
"error": "Eaque et ipsum cumque aut qui voluptatem.",
"module": "Consequuntur ipsa ut.",
"name": "Molestiae aut.",
"provider": "Magni at consectetur nulla.",
"status": "failed",
"type": "Ut voluptatem natus dolorum aperiam dolore hic."
}
],
"summary": {
"deleted": 1567968767474798800,
"failed": 8128265166482946000,
"skipped": 399536672396674400,
"total": 6185119897353239000
}
}Updates resources for a workspace.
Org is the organisation identifier.
fdProject is the project identifier.
oWorkspace identifier
Non quod et et id quia et.Account is the internal customer account ID.
xjSession ID to track resource updates belongs to same operation
3bf3a053-c34a-4949-bc43-b69cf4d84f7eUpdate mode: upsert (default) updates attributes; drift updates drift columns only
upsertExample: driftPossible values: OK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PATCH /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resources HTTP/1.1
Host: localhost:80
Harness-Account: xj
Content-Type: application/json
Accept: */*
Content-Length: 1380
{
"resources": [
{
"attributes": "Esse sint iusto numquam nulla officiis.",
"drift_attributes": {
"Quis possimus magni et.": "Dolorum quis voluptatum.",
"Voluptatem et.": "Vitae alias nobis."
},
"drift_status": "deleted",
"mode": "Asperiores asperiores consequatur.",
"module": "Est numquam excepturi delectus vel autem.",
"name": "Velit doloremque a ipsa enim ut.",
"path_id": "Blanditiis in ipsum non ex odio.",
"provider": "In ullam repellat est eligendi nobis.",
"sensitive_attribute_paths": [
"Et ea.",
"Voluptas sequi dolore reiciendis qui est.",
"Asperiores aut doloremque animi fugiat voluptas.",
"Sed qui blanditiis."
],
"type": "Quo et libero ipsum necessitatibus qui temporibus."
},
{
"attributes": "Esse sint iusto numquam nulla officiis.",
"drift_attributes": {
"Quis possimus magni et.": "Dolorum quis voluptatum.",
"Voluptatem et.": "Vitae alias nobis."
},
"drift_status": "deleted",
"mode": "Asperiores asperiores consequatur.",
"module": "Est numquam excepturi delectus vel autem.",
"name": "Velit doloremque a ipsa enim ut.",
"path_id": "Blanditiis in ipsum non ex odio.",
"provider": "In ullam repellat est eligendi nobis.",
"sensitive_attribute_paths": [
"Et ea.",
"Voluptas sequi dolore reiciendis qui est.",
"Asperiores aut doloremque animi fugiat voluptas.",
"Sed qui blanditiis."
],
"type": "Quo et libero ipsum necessitatibus qui temporibus."
}
],
"session_id": "26a19ad2-31db-4cb7-afb8-a105109612e6",
"update_mode": "upsert"
}{
"results": [
{
"error": "Consequatur corrupti atque illo ad ea.",
"mode": "Cumque neque.",
"module": "Reprehenderit sunt ipsam.",
"name": "Quia et laudantium fugit.",
"provider": "Ex laborum facilis molestiae aut esse.",
"status": "skipped",
"type": "A consequatur rerum non sit numquam."
},
{
"error": "Consequatur corrupti atque illo ad ea.",
"mode": "Cumque neque.",
"module": "Reprehenderit sunt ipsam.",
"name": "Quia et laudantium fugit.",
"provider": "Ex laborum facilis molestiae aut esse.",
"status": "skipped",
"type": "A consequatur rerum non sit numquam."
}
],
"summary": {
"failed": 8733448341162103000,
"skipped": 7073563715756064000,
"total": 1480454182789404400,
"updated": 4456616226071622700
}
}Deletes stale resources for a workspace that don't belong to the current session.
Org is the organisation identifier.
fonProject is the project identifier.
iemWorkspace identifier
Qui ad aperiam illum ea beatae et.Account is the internal customer account ID.
0oCurrent session ID - resources not matching this will be deleted
fea24e6f-0822-416d-9975-5f779600f451OK response.
Number of stale resources deleted
1703700412303845600BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
DELETE /api/orgs/{org}/projects/{project}/workspaces/{workspace}/resources/stale HTTP/1.1
Host: localhost:80
Harness-Account: 0o
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"session_id": "427c3d84-0620-4c1e-a498-35ad45ea3717"
}{
"deleted_count": 2679989077083109400
}Upload per-resource risk data and overall risk summary for an existing plan file.
Org is the organisation identifier.
aProject is the project identifier.
j0Workspace identifier
workspace123The unique identifier for the associated pipeline
Sunt incidunt odit molestiae ut et.The unique identifier for a stage
Mollitia et eligendi quidem doloribus laudantium.The unique identifier for the associated pipeline execution
Autem sit quidem est voluptatibus qui.The unique identifier for the associated pipeline execution stage
Totam in vel et enim placeat deserunt.Type of provisioner that created the data
tfPossible values: Type of data stored
cdk_driftPossible values: Optional path to the stack module
At ut.Account is the internal customer account ID.
uSize in bytes of the risk data.
87801351873059800OK response.
The unique identifier for the data
dc538c61-de48-4220-958c-5f3c4f983daaPre-rendered message included when policy evaluation did not pass
- instance type 'xlarge' is not permittedThe overall status of policy evaluation (if it occurred) indicating whether it passed
errorPossible values: BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/risk-assessment?pipeline_id=Sunt+incidunt+odit+molestiae+ut+et.&stage_id=Mollitia+et+eligendi+quidem+doloribus+laudantium.&pipeline_execution_id=Autem+sit+quidem+est+voluptatibus+qui.&pipeline_stage_id=Totam+in+vel+et+enim+placeat+deserunt.&provisioner_type=tf&data_type=cdk_drift HTTP/1.1
Host: localhost:80
Harness-Account: u
Accept: */*
{
"id": "dc538c61-de48-4220-958c-5f3c4f983daa",
"policy_evaluation": [
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
},
{
"message": "Necessitatibus nulla neque totam consequatur.",
"policy_id": "Voluptatem distinctio voluptatem quia dolorem voluptatibus.",
"policy_name": "Nihil et incidunt.",
"policy_set_id": "Id et quas perspiciatis iste.",
"policy_set_name": "Quis ut est.",
"policy_status": "Aperiam deleniti ut et impedit tempora consequatur."
}
],
"policy_evaluation_message": "- instance type 'xlarge' is not permitted",
"policy_evaluation_status": "error"
}Copies a historical state file to a new version and sets the workspace state pointer to it. Blocked when a pipeline execution is in flight.
Org is the organisation identifier.
anxProject is the project identifier.
yWorkspace identifier
Repellendus recusandae ut qui corporis.The unique identifier of the state version to roll back to
6bf6ac9b-b2a7-4b8e-8d73-c2fcebe5275eAccount is the internal customer account ID.
bOptional human-readable reason for the rollback
Qui qui maiores eos accusamus maiores impedit.OK response.
The unique identifier of the audit activity record
a562a993-683c-4e8c-bbf2-8d33f7c47c43The unique identifier of the new state version created by the rollback
2dfe74bb-8584-4986-98f7-ae1cb1db63c2The file version timestamp (microseconds) of the new state object
6817473294927860000BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/workspaces/{workspace}/state-versions/{data_id}/rollback HTTP/1.1
Host: localhost:80
Harness-Account: b
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"rollback_reason": "Recusandae a veritatis optio assumenda laborum."
}{
"activity_id": "8465a669-7489-4d56-a41e-7a1cd71ac367",
"new_data_id": "66bab1c3-1fa4-423a-adf3-9bca5b92631d",
"new_file_version": 8495923036479045000
}Retrieves the ratio of provisioners used by workspaces
Org is the organisation identifier.
q1Project is the project identifier.
dStart time filter (Unix timestamp)
2871648614935167500End time filter (Unix timestamp)
1037570023126539100Account is the internal customer account ID.
fjOK response.
List of provisioners ratio
Total number of workspaces
0.9650681509427244BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/workspaces/provisioners-ratio HTTP/1.1
Host: localhost:80
Harness-Account: fj
Accept: */*
{
"provisioner": {
"Deserunt eum aspernatur corrupti cum aut ex.": 0.29940009196626455,
"Earum voluptate.": 0.2357342323813719
},
"total": 0.7252221157967921
}Get all workspaces associated with a specific template ID
Template identifier to filter workspaces
j1qOrganization identifier (required for 'org' and 'project' scope).
zgfProject identifier (required for 'project' scope).
m2fTemplate version associated with the workspace.
3Account identifier.
0OK response.
List of workspaces associated with the template ID
Account identifier.
iTimestamp when the workspace-template association was created.
1627590400Organization identifier.
oProject identifier.
8Template identifier.
auTimestamp when the workspace-template association was last updated.
1627686800Template version associated with the workspace.
kzjWorkspace identifier.
w0BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/workspace/templates/{template_id} HTTP/1.1
Host: localhost:80
Harness-Account: 0
Accept: */*
[
{
"account": "nl",
"created_at": 1627590400,
"org": "00q",
"project": "3i4",
"template_id": "eb",
"updated_at": 1627686800,
"version": "d25",
"workspace_id": "dg"
},
{
"account": "nl",
"created_at": 1627590400,
"org": "00q",
"project": "3i4",
"template_id": "eb",
"updated_at": 1627686800,
"version": "d25",
"workspace_id": "dg"
},
{
"account": "nl",
"created_at": 1627590400,
"org": "00q",
"project": "3i4",
"template_id": "eb",
"updated_at": 1627686800,
"version": "d25",
"workspace_id": "dg"
}
]List the sync status of every workspace associated with a template version, paginated.
Template identifier to filter workspaces
skgOrganization identifier (required for 'org' and 'project' scope).
6Project identifier (required for 'project' scope).
5w8Template version to compare workspaces against. Omitted/empty means the template service's stable version.
pfRows per page.
10Example: 101-indexed page number to fetch. Ignored when 'status' is set; use 'page_token' instead.
1Example: 1Only return workspaces with this sync status. Pages are then continued with 'page_token' and a page may hold fewer than 'limit' entries.
OUT_OF_SYNCPossible values: The 'next_page_token' of the previous response. Only valid with 'status', and every filter parameter must match the request that produced the token.
efAccount identifier.
fOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/workspace/templates/{template_id}/sync-status HTTP/1.1
Host: localhost:80
Harness-Account: f
Accept: */*
[
{
"entity": "p",
"last_updated": 1627686800,
"scope": {
"org": "tbh",
"project": "t"
},
"status": "SYNCED",
"version": "4q"
},
{
"entity": "p",
"last_updated": 1627686800,
"scope": {
"org": "tbh",
"project": "t"
},
"status": "SYNCED",
"version": "4q"
},
{
"entity": "p",
"last_updated": 1627686800,
"scope": {
"org": "tbh",
"project": "t"
},
"status": "SYNCED",
"version": "4q"
},
{
"entity": "p",
"last_updated": 1627686800,
"scope": {
"org": "tbh",
"project": "t"
},
"status": "SYNCED",
"version": "4q"
}
]Last updated
Was this helpful?