Enable drift automation for all workspaces in a project
Enqueues a background job that creates drift triggers for every workspace in the project.
Org is the organisation identifier.
2hcProject is the project identifier.
gqrAccount is the internal customer account ID.
poPipeline to run for drift detection
In doloremque.Provisioner type to enable drift for
opentofuPossible values: Run drift detection every N hours or N days (see run_every_unit)
4657880299010328000hours or days
hoursPossible values: Accepted response.
Background job identifier
6753679465865557000Outcome message
Aut deleniti natus nesciunt dolorem provident iusto.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: 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?