Settings
Settings service handles all API endpoints related to configuration settings
List all associations between provisioner operations and default pipelines
Org is the organisation identifier.
6ibProject is the project identifier.
oarWorkspace identifier
""Example: workspace123Account is the internal customer account ID.
tOK response.
Ducimus perferendis repellat pariatur cupiditate.The default pipeline is associated with this operation
planPossible values: Odio perspiciatis aspernatur tempora tenetur quas suscipit.The default pipeline associated with the provisioner operation
testpipelineOmnis dolores quasi repudiandae voluptas.The default pipeline is associated with this provisioner
opentofuPossible values: Time the default pipeline was last updated
1636669297674The default pipeline is associated with this workspace if specified
""Example: planBadRequestError: 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}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: t
Accept: */*
[
{
"account": "Voluptates doloribus.",
"operation": "plan",
"org": "Exercitationem esse necessitatibus dolore.",
"pipeline": "testpipeline",
"project": "Est non placeat sunt rerum dicta delectus.",
"provisioner": "opentofu",
"updated": 1636669297674,
"workspace": "plan"
},
{
"account": "Voluptates doloribus.",
"operation": "plan",
"org": "Exercitationem esse necessitatibus dolore.",
"pipeline": "testpipeline",
"project": "Est non placeat sunt rerum dicta delectus.",
"provisioner": "opentofu",
"updated": 1636669297674,
"workspace": "plan"
}
]Associate a default pipeline with a provisioner operation
Minus occaecati.Optio quidem provident.Officiis rerum voluptatum earum vero aut.The default pipeline is associated with this operation
planPossible values: The default pipeline associated with the provisioner operation
testpipelineThe default pipeline is associated with this provisioner
opentofuPossible values: Time the default pipeline was last updated
1636669297674The default pipeline is associated with this workspace if specified
""Example: planOK 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.
PUT /api/orgs/{org}/projects/{project}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: Officiis rerum voluptatum earum vero aut.
Content-Type: application/json
Accept: */*
Content-Length: 114
{
"operation": "plan",
"pipeline": "testpipeline",
"provisioner": "opentofu",
"updated": 1636669297674,
"workspace": "plan"
}No content
Delete the association between a default pipeline and a provisioner operation
Quidem fuga.Illo quidem animi laudantium id.Dicta laudantium amet.The default pipeline is associated with this operation
planPossible values: The default pipeline is associated with this provisioner
opentofuPossible values: The default pipeline is associated with this workspace if specified
""Example: planOK 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}/settings/default-pipelines HTTP/1.1
Host: localhost:80
Harness-Account: Dicta laudantium amet.
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"operation": "plan",
"provisioner": "opentofu",
"workspace": "plan"
}No content
Check if the plan/state should be sent to the server
Org is the organisation identifier.
vdProject is the project identifier.
cuAccount is the internal customer account ID.
uiOK response.
Indicates if the data is allowed to be pushed
trueBadRequestError: 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}/settings/disabled HTTP/1.1
Host: localhost:80
Harness-Account: ui
Accept: */*
{
"disabled": true
}Returns whether drift automation is currently enabled at the project level for the given provisioner, along with its pipeline_id and schedule.
Org is the organisation identifier.
agProject is the project identifier.
rdProvisioner type to query drift status for
terraformPossible values: Account is the internal customer account ID.
9OK response.
Whether project-level drift automation is currently enabled for this provisioner
truePipeline configured to run for drift detection
Itaque nulla officiis ullam id quibusdam qui.Provisioner this configuration applies to
Et minima sit a blanditiis.Repeat interval; set when drift is enabled
1438936088597131000hours or days
minutesPossible 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}/settings/drift-config?provisioner=terraform HTTP/1.1
Host: localhost:80
Harness-Account: 9
Accept: */*
{
"enabled": true,
"pipeline_id": "Consequatur non.",
"provisioner": "Qui dignissimos molestiae repudiandae nihil voluptatem.",
"run_every": 6716946200765848000,
"run_every_unit": "days"
}Enqueues a background job that creates drift triggers for every workspace in the project.
Org is the organisation identifier.
uf1Project is the project identifier.
fwAccount is the internal customer account ID.
h3hPipeline to run for drift detection
Excepturi dolore aspernatur.Provisioner type to enable drift for
terragruntPossible values: Run drift detection every N hours or N days (see run_every_unit)
4606819830551244300hours or days
minutesPossible values: Accepted response.
Background job identifier
3403919615542570500Outcome message
Non eos magnam.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}/settings/drift-config HTTP/1.1
Host: localhost:80
Harness-Account: h3h
Content-Type: application/json
Accept: */*
Content-Length: 115
{
"pipeline_id": "Temporibus sed.",
"provisioner": "terraform",
"run_every": 5293256734117459000,
"run_every_unit": "days"
}{
"job_id": 3478933247816263000,
"status": "Commodi qui explicabo."
}Enqueues a background job that removes drift triggers for every workspace in the project.
Org is the organisation identifier.
4ytProject is the project identifier.
6dProvisioner type to disable drift for
opentofuPossible values: Account is the internal customer account ID.
fkAccepted response.
Background job identifier
6083607506107725000Outcome message
Officia aperiam qui.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}/settings/drift-config?provisioner=opentofu HTTP/1.1
Host: localhost:80
Harness-Account: fk
Accept: */*
{
"job_id": 3184801884629001700,
"status": "Eligendi perspiciatis dolorum quas."
}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.
Org is the organisation identifier.
5dProject is the project identifier.
sProvisioner type to query ephemeral status for
terragruntPossible values: Account is the internal customer account ID.
lkiOK response.
Configured delete delay unit (hours or days)
secondsPossible values: Configured delete delay value (when delete_workspace is true)
5870461623206694000Configured delete date (YYYY-MM-DD) when schedule uses a specific date
Deserunt quis iure est.Whether workspace records will be deleted after destroy
trueConfigured destroy date (YYYY-MM-DD) when schedule uses a specific date
Occaecati nobis facere facilis id modi labore.Whether project-level ephemeral automation is currently enabled for this provisioner
falsePipeline configured for destroying infrastructure
Pariatur nulla quis voluptatum qui animi consequuntur.Provisioner this configuration applies to
Maiores aut eum dolor.Configured destroy delay unit (hours or days)
secondsPossible values: Configured destroy delay value (when schedule uses delay)
6998077204656872000BadRequestError: 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}/settings/ephemeral-config?provisioner=terragrunt HTTP/1.1
Host: localhost:80
Harness-Account: lki
Accept: */*
{
"delete_delay_unit": "hours",
"delete_delay_value": 2141295230789673500,
"delete_on_date": "Porro error veritatis eum.",
"delete_workspace": false,
"destroy_on_date": "Adipisci veniam et enim voluptate ea.",
"enabled": true,
"pipeline_id": "Voluptas et voluptas neque.",
"provisioner": "Itaque excepturi voluptate suscipit neque aliquid.",
"ttl_unit": "minutes",
"ttl_value": 9206609801502489000
}Enqueues a background job that configures ephemeral destroy/delete schedules for every workspace in the project.
Org is the organisation identifier.
2ayProject is the project identifier.
l2Account is the internal customer account ID.
ngUnit for delete delay
hoursPossible values: Delete workspace after N hours or days from now
2328084587795391000Specific date to delete workspace (ISO 8601 format, e.g. 2026-09-02)
Voluptatem vel saepe.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
2774248095573095400Specific date to destroy infrastructure (ISO 8601 format, e.g. 2026-08-24)
Consequatur vel qui non.Pipeline to run for destroying infrastructure
At a amet vel quae sunt dolores.Provisioner type to enable ephemeral for
opentofuPossible values: Accepted response.
Background job identifier
6393190925054838000Outcome message
Illo voluptatem laborum sit.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}/settings/ephemeral-config HTTP/1.1
Host: localhost:80
Harness-Account: ng
Content-Type: application/json
Accept: */*
Content-Length: 358
{
"delete_delay_unit": "hours",
"delete_delay_value": 7986686849923762000,
"delete_on_date": "Quaerat reprehenderit sint necessitatibus rem.",
"delete_workspace": false,
"destroy_delay_unit": "days",
"destroy_delay_value": 4658167729060533000,
"destroy_on_date": "Qui reprehenderit vitae est ut animi dolor.",
"pipeline_id": "Qui rerum assumenda.",
"provisioner": "terraform"
}{
"job_id": 168189450200981500,
"status": "Voluptatem velit impedit reiciendis similique."
}Enqueues a background job that removes ephemeral schedules for every workspace in the project.
Org is the organisation identifier.
cProject is the project identifier.
gsProvisioner type to disable ephemeral for
opentofuPossible values: Account is the internal customer account ID.
wlAccepted response.
Background job identifier
8347177171536358000Outcome message
Enim cupiditate.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}/settings/ephemeral-config?provisioner=opentofu HTTP/1.1
Host: localhost:80
Harness-Account: wl
Accept: */*
{
"job_id": 4362619443617738000,
"status": "Non aliquid facere voluptatem amet eaque aut."
}Last updated
Was this helpful?