For the complete documentation index, see llms.txt. This page is also available as Markdown.

Settings

Settings service handles all API endpoints related to configuration settings

List default pipelines

get

List all associations between provisioner operations and default pipelines

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: oai
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: d3
Query parameters
workspacestringOptional

Workspace identifier

Default: ""Example: workspace123
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: mb
Responses
200

OK response.

application/json
accountstringRequiredExample: Commodi beatae odio.
operationstring · enumRequired

The default pipeline is associated with this operation

Example: planPossible values:
orgstringRequiredExample: Fugit odit optio omnis aut aperiam sed.
pipelinestringRequired

The default pipeline associated with the provisioner operation

Example: testpipeline
projectstringRequiredExample: Explicabo eligendi ea id.
provisionerstring · enumRequired

The default pipeline is associated with this provisioner

Example: opentofuPossible values:
updatedinteger · int64Required

Time the default pipeline was last updated

Example: 1636669297674
workspacestringOptional

The default pipeline is associated with this workspace if specified

Default: ""Example: plan
get/api/orgs/{org}/projects/{project}/settings/default-pipelines
GET /api/orgs/{org}/projects/{project}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: mb
Accept: */*
[
  {
    "account": "Nihil quis voluptatem tenetur quia.",
    "operation": "plan",
    "org": "Eveniet minus qui voluptatibus.",
    "pipeline": "testpipeline",
    "project": "Ea eos qui sed.",
    "provisioner": "opentofu",
    "updated": 1636669297674,
    "workspace": "plan"
  },
  {
    "account": "Nihil quis voluptatem tenetur quia.",
    "operation": "plan",
    "org": "Eveniet minus qui voluptatibus.",
    "pipeline": "testpipeline",
    "project": "Ea eos qui sed.",
    "provisioner": "opentofu",
    "updated": 1636669297674,
    "workspace": "plan"
  },
  {
    "account": "Nihil quis voluptatem tenetur quia.",
    "operation": "plan",
    "org": "Eveniet minus qui voluptatibus.",
    "pipeline": "testpipeline",
    "project": "Ea eos qui sed.",
    "provisioner": "opentofu",
    "updated": 1636669297674,
    "workspace": "plan"
  },
  {
    "account": "Nihil quis voluptatem tenetur quia.",
    "operation": "plan",
    "org": "Eveniet minus qui voluptatibus.",
    "pipeline": "testpipeline",
    "project": "Ea eos qui sed.",
    "provisioner": "opentofu",
    "updated": 1636669297674,
    "workspace": "plan"
  }
]

Upsert default pipeline

put

Associate a default pipeline with a provisioner operation

Path parameters
orgstringRequiredExample: Est necessitatibus ipsum.
projectstringRequiredExample: Nesciunt nesciunt.
Header parameters
Harness-AccountstringRequiredExample: Qui deserunt.
Body
operationstring · enumRequired

The default pipeline is associated with this operation

Example: planPossible values:
pipelinestringRequired

The default pipeline associated with the provisioner operation

Example: testpipeline
provisionerstring · enumRequired

The default pipeline is associated with this provisioner

Example: opentofuPossible values:
updatedinteger · int64Required

Time the default pipeline was last updated

Example: 1636669297674
workspacestringOptional

The default pipeline is associated with this workspace if specified

Default: ""Example: plan
Responses
200

OK response.

No content

put/api/orgs/{org}/projects/{project}/settings/default-pipelines
PUT /api/orgs/{org}/projects/{project}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: Qui deserunt.
Content-Type: application/json
Accept: */*
Content-Length: 114

{
  "operation": "plan",
  "pipeline": "testpipeline",
  "provisioner": "opentofu",
  "updated": 1636669297674,
  "workspace": "plan"
}

No content

Delete default pipeline

delete

Delete the association between a default pipeline and a provisioner operation

Path parameters
orgstringRequiredExample: Omnis quod.
projectstringRequiredExample: Expedita et quo earum.
Header parameters
Harness-AccountstringRequiredExample: Eaque voluptas natus modi omnis.
Body
operationstring · enumRequired

The default pipeline is associated with this operation

Example: planPossible values:
provisionerstring · enumRequired

The default pipeline is associated with this provisioner

Example: opentofuPossible values:
workspacestringOptional

The default pipeline is associated with this workspace if specified

Default: ""Example: plan
Responses
200

OK response.

No content

delete/api/orgs/{org}/projects/{project}/settings/default-pipelines
DELETE /api/orgs/{org}/projects/{project}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: Eaque voluptas natus modi omnis.
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "operation": "plan",
  "provisioner": "opentofu",
  "workspace": "plan"
}

No content

Check push data

get

Check if the plan/state should be sent to the server

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: p
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: h6s
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 7p
Responses
200

OK response.

application/json
disabledbooleanRequired

Indicates if the data is allowed to be pushed

Example: true
get/api/orgs/{org}/projects/{project}/settings/disabled
GET /api/orgs/{org}/projects/{project}/settings/disabled HTTP/1.1
Host: localhost:80
Harness-Account: 7p
Accept: */*
{
  "disabled": false
}

Get project-level drift automation status for a provisioner

get

Returns whether drift automation is currently enabled at the project level for the given provisioner, along with its pipeline_id and schedule.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: lz
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: hib
Query parameters
provisionerstring · enumRequired

Provisioner type to query drift status for

Example: terragruntPossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: sg3
Responses
200

OK response.

application/json
enabledbooleanRequired

Whether project-level drift automation is currently enabled for this provisioner

Example: false
pipeline_idstringOptional

Pipeline configured to run for drift detection

Example: Placeat dolorem et maxime corporis.
provisionerstringRequired

Provisioner this configuration applies to

Example: Maxime tempore est et molestiae.
run_everyinteger · int64Optional

Repeat interval; set when drift is enabled

Example: 4717019202404721000
run_every_unitstring · enumOptional

hours or days

Example: daysPossible values:
get/api/orgs/{org}/projects/{project}/settings/drift-config
GET /api/orgs/{org}/projects/{project}/settings/drift-config?provisioner=terragrunt HTTP/1.1
Host: localhost:80
Harness-Account: sg3
Accept: */*
{
  "enabled": false,
  "pipeline_id": "Laudantium ut.",
  "provisioner": "Laborum eum aperiam voluptatem.",
  "run_every": 7419069864141441000,
  "run_every_unit": "days"
}

Enable drift automation for all workspaces in a project

put

Enqueues a background job that creates drift triggers for every workspace in the project.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: aq
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: gf0
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: j
Body
pipeline_idstringRequired

Pipeline to run for drift detection

Example: Ut sequi quia non harum quae.
provisionerstring · enumRequired

Provisioner type to enable drift for

Example: terraformPossible values:
run_everyinteger · int64Required

Run drift detection every N hours or N days (see run_every_unit)

Example: 5342395590207975000
run_every_unitstring · enumRequired

hours or days

Example: secondsPossible values:
Responses
202

Accepted response.

application/json
job_idinteger · int64Required

Background job identifier

Example: 3019254584503934500
statusstringRequired

Outcome message

Example: Saepe provident omnis necessitatibus ut.
put/api/orgs/{org}/projects/{project}/settings/drift-config
PUT /api/orgs/{org}/projects/{project}/settings/drift-config HTTP/1.1
Host: localhost:80
Harness-Account: j
Content-Type: application/json
Accept: */*
Content-Length: 134

{
  "pipeline_id": "Modi non consequuntur tempore.",
  "provisioner": "terragrunt",
  "run_every": 4989555133752127000,
  "run_every_unit": "minutes"
}
{
  "job_id": 8598032438472293000,
  "status": "Laborum rerum quia asperiores."
}

Disable drift automation for all workspaces in a project

delete

Enqueues a background job that removes drift triggers for every workspace in the project.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 3gb
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: 6oq
Query parameters
provisionerstring · enumRequired

Provisioner type to disable drift for

Example: terraformPossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 8
Responses
202

Accepted response.

application/json
job_idinteger · int64Required

Background job identifier

Example: 9117553998849891000
statusstringRequired

Outcome message

Example: Voluptas inventore.
delete/api/orgs/{org}/projects/{project}/settings/drift-config
DELETE /api/orgs/{org}/projects/{project}/settings/drift-config?provisioner=terraform HTTP/1.1
Host: localhost:80
Harness-Account: 8
Accept: */*
{
  "job_id": 5904407009904556000,
  "status": "Odit quo id ut sapiente dolorum vel."
}

Get project-level ephemeral configuration for a provisioner

get

Returns whether ephemeral automation is currently enabled at the project level for the given provisioner, along with its raw schedule fields (ttl, destroy_on_date, delete_*) so the UI can re-render previously saved values.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: ym8
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: iy
Query parameters
provisionerstring · enumRequired

Provisioner type to query ephemeral status for

Example: opentofuPossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: u
Responses
200

OK response.

application/json
delete_delay_unitstring · enumOptional

Configured delete delay unit (hours or days)

Example: hoursPossible values:
delete_delay_valueinteger · int64Optional

Configured delete delay value (when delete_workspace is true)

Example: 3919427717052252000
delete_on_datestringOptional

Configured delete date (YYYY-MM-DD) when schedule uses a specific date

Example: Harum nihil voluptatibus assumenda maiores asperiores a.
delete_workspacebooleanOptional

Whether workspace records will be deleted after destroy

Example: true
destroy_on_datestringOptional

Configured destroy date (YYYY-MM-DD) when schedule uses a specific date

Example: Numquam ratione tempora fugit odit molestias in.
enabledbooleanRequired

Whether project-level ephemeral automation is currently enabled for this provisioner

Example: true
pipeline_idstringOptional

Pipeline configured for destroying infrastructure

Example: Quas dolorem.
provisionerstringRequired

Provisioner this configuration applies to

Example: Provident ea inventore.
ttl_unitstring · enumOptional

Configured destroy delay unit (hours or days)

Example: daysPossible values:
ttl_valueinteger · int64Optional

Configured destroy delay value (when schedule uses delay)

Example: 8385951510022888000
get/api/orgs/{org}/projects/{project}/settings/ephemeral-config
GET /api/orgs/{org}/projects/{project}/settings/ephemeral-config?provisioner=opentofu HTTP/1.1
Host: localhost:80
Harness-Account: u
Accept: */*
{
  "delete_delay_unit": "seconds",
  "delete_delay_value": 4043891178281221600,
  "delete_on_date": "Enim quam.",
  "delete_workspace": false,
  "destroy_on_date": "Nisi est voluptas.",
  "enabled": true,
  "pipeline_id": "Necessitatibus a impedit minus.",
  "provisioner": "Officia non vel architecto dolores.",
  "ttl_unit": "hours",
  "ttl_value": 7769401755229348000
}

Enable ephemeral TTL for all workspaces in a project

put

Enqueues a background job that configures ephemeral destroy/delete schedules for every workspace in the project.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: 67
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: hi1
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: 24
Body
delete_delay_unitstring · enumOptional

Unit for delete delay

Example: minutesPossible values:
delete_delay_valueinteger · int64Optional

Delete workspace after N hours or days from now

Example: 949805237331761700
delete_on_datestringOptional

Specific date to delete workspace (ISO 8601 format, e.g. 2026-09-02)

Example: Praesentium praesentium soluta.
delete_workspacebooleanOptional

Whether to delete the workspace record after infrastructure is destroyed

Example: true
destroy_delay_unitstring · enumOptional

Unit for destroy delay

Example: minutesPossible values:
destroy_delay_valueinteger · int64Optional

Destroy infrastructure after N hours or days from now

Example: 5593007425043856000
destroy_on_datestringOptional

Specific date to destroy infrastructure (ISO 8601 format, e.g. 2026-08-24)

Example: Aut aspernatur eius dolores sed quia.
pipeline_idstringRequired

Pipeline to run for destroying infrastructure

Example: Iure nemo voluptas aut.
provisionerstring · enumRequired

Provisioner type to enable ephemeral for

Example: opentofuPossible values:
Responses
202

Accepted response.

application/json
job_idinteger · int64Required

Background job identifier

Example: 3995448498242608600
statusstringRequired

Outcome message

Example: Sit consequuntur.
put/api/orgs/{org}/projects/{project}/settings/ephemeral-config
PUT /api/orgs/{org}/projects/{project}/settings/ephemeral-config HTTP/1.1
Host: localhost:80
Harness-Account: 24
Content-Type: application/json
Accept: */*
Content-Length: 318

{
  "delete_delay_unit": "minutes",
  "delete_delay_value": 1332440281197252900,
  "delete_on_date": "Sequi voluptatem nulla.",
  "delete_workspace": true,
  "destroy_delay_unit": "seconds",
  "destroy_delay_value": 3906090598959514600,
  "destroy_on_date": "Cumque mollitia laborum.",
  "pipeline_id": "Omnis id id ad ipsum.",
  "provisioner": "awscdk"
}
{
  "job_id": 6457959266108642000,
  "status": "Voluptates sequi dolores."
}

Disable ephemeral TTL for all workspaces in a project

delete

Enqueues a background job that removes ephemeral schedules for every workspace in the project.

Path parameters
orgstring · min: 1 · max: 128Required

Org is the organisation identifier.

Example: wv
projectstring · min: 1 · max: 128Required

Project is the project identifier.

Example: 6y
Query parameters
provisionerstring · enumRequired

Provisioner type to disable ephemeral for

Example: terraformPossible values:
Header parameters
Harness-Accountstring · min: 1 · max: 128Required

Account is the internal customer account ID.

Example: z4
Responses
202

Accepted response.

application/json
job_idinteger · int64Required

Background job identifier

Example: 5829595782293736000
statusstringRequired

Outcome message

Example: Fugiat excepturi quis cumque.
delete/api/orgs/{org}/projects/{project}/settings/ephemeral-config
DELETE /api/orgs/{org}/projects/{project}/settings/ephemeral-config?provisioner=terraform HTTP/1.1
Host: localhost:80
Harness-Account: z4
Accept: */*
{
  "job_id": 1215419998915380200,
  "status": "Porro harum vel."
}

Last updated

Was this helpful?