settings

Settings service handles all API endpoints related to configuration settings

delete-default-pipeline settings

Delete the association between a default pipeline and a provisioner operation

Securityx-api-key
Request
path Parameters
org
required
string
Example: Enim inventore corporis excepturi aspernatur.
project
required
string
Example: Eos deserunt a aut enim omnis deserunt.
header Parameters
Harness-Account
required
string
Example: Sed aspernatur ut.
Request Body schema: application/json
required
operation
required
string

The default pipeline is associated with this operation

Enum: "plan" "apply" "destroy" "drift"
provisioner
required
string

The default pipeline is associated with this provisioner

Enum: "terraform" "opentofu"
workspace
string
Default: ""

The default pipeline is associated with this workspace if specified

Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

delete/iacm/api/orgs/{org}/projects/{project}/settings/default-pipelines
Request samples
application/json
{
  • "operation": "plan",
  • "provisioner": "opentofu",
  • "workspace": "plan"
}

list-default-pipelines settings

List all associations between provisioner operations and default pipelines

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: kni
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: ob2
query Parameters
workspace
string
Default: ""

Workspace identifier

Example: workspace=workspace123
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: wb2
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/settings/default-pipelines
Request samples
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

upsert-default-pipeline settings

Associate a default pipeline with a provisioner operation

Securityx-api-key
Request
path Parameters
org
required
string
Example: Sed qui quam.
project
required
string
Example: Ipsa itaque fuga.
header Parameters
Harness-Account
required
string
Example: Reiciendis et ut ex aliquam pariatur.
Request Body schema: application/json
required
operation
required
string

The default pipeline is associated with this operation

Enum: "plan" "apply" "destroy" "drift"
pipeline
required
string

The default pipeline associated with the provisioner operation

provisioner
required
string

The default pipeline is associated with this provisioner

Enum: "terraform" "opentofu"
updated
required
integer <int64>

Time the default pipeline was last updated

workspace
string
Default: ""

The default pipeline is associated with this workspace if specified

Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

put/iacm/api/orgs/{org}/projects/{project}/settings/default-pipelines
Request samples
application/json
{
  • "operation": "plan",
  • "pipeline": "testpipeline",
  • "provisioner": "opentofu",
  • "updated": 1636669297674,
  • "workspace": "plan"
}

check-push-data settings

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

Securityx-api-key
Request
path Parameters
org
required
string [ 1 .. 128 ] characters

Org is the organisation identifier.

Example: g1
project
required
string [ 1 .. 128 ] characters

Project is the project identifier.

Example: i
header Parameters
Harness-Account
required
string [ 1 .. 128 ] characters

Account is the internal customer account ID.

Example: o
Responses
200

OK response.

400

BadRequestError: Bad Request response.

401

UnauthorizedError: Unauthorized response.

403

ForbiddenError: Forbidden response.

404

NotFoundError: Not Found response.

408

TimeoutError: Request Timeout response.

409

ConflictError: Conflict response.

423

LockedError: Locked response.

499

ContextCancelledError: response.

500

InternalServerError: Internal Server Error response.

502

BadGatewayError: Bad Gateway response.

get/iacm/api/orgs/{org}/projects/{project}/settings/disabled
Request samples
Response samples
application/json
{
  • "disabled": false
}