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

Enable drift automation for all workspaces in a project

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

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

Org is the organisation identifier.

Example: 2hc
projectstring · min: 1 · max: 128Required

Project is the project identifier.

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

Account is the internal customer account ID.

Example: po
Body
pipeline_idstringRequired

Pipeline to run for drift detection

Example: In doloremque.
provisionerstring · enumRequired

Provisioner type to enable drift for

Example: opentofuPossible values:
run_everyinteger · int64Required

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

Example: 4657880299010328000
run_every_unitstring · enumRequired

hours or days

Example: hoursPossible values:
Responses
202

Accepted response.

application/json
job_idinteger · int64Required

Background job identifier

Example: 6753679465865557000
statusstringRequired

Outcome message

Example: Aut deleniti natus nesciunt dolorem provident iusto.
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: po
Content-Type: application/json
Accept: */*
Content-Length: 138

{
  "pipeline_id": "Earum iste ex quia nobis voluptatibus.",
  "provisioner": "awscdk",
  "run_every": 2391911801788213000,
  "run_every_unit": "seconds"
}
{
  "job_id": 7539401635443240000,
  "status": "Tempore nulla quaerat."
}

Last updated

Was this helpful?