integration

Create Integration

Securityx-api-key
Request
path Parameters
org
required
string

Harness organization ID

project
required
string

Harness project ID

header Parameters
Harness-Account
required
string

Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

Request Body schema: application/json
connector_id
string
type
any (IntegrationType)
Enum: "GITHUB" "HARNESS"
Responses
200

Example response

400

Bad Request

401

Unauthorized

403

Not Acceptable

500

Internal Server Error

post/gateway/ssca-manager/v1/orgs/{org}/projects/{project}/integration
Request samples
application/json
{
  • "connector_id": "string",
  • "type": "GITHUB"
}
Response samples
application/json
{
  • "connector_id": "string",
  • "type": "GITHUB",
  • "status": "ACTIVE",
  • "last_scan_at": 0,
  • "org": "string",
  • "id": "string"
}

Configure repos in your integration

Securityx-api-key
Request
path Parameters
org
required
string

Harness organization ID

project
required
string

Harness project ID

integration
required
string

A unique identifier for the integration created using the Create Integration API. This ID is returned in the response of the Create Integration API and must be provided as a path parameter when fetching integration details or repositories.

header Parameters
Harness-Account
required
string

Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

Request Body schema: application/json
include_all_repos
boolean
Default: false
Array of objects (RepoDetailsDTO)
Responses
200

Example response

400

Bad Request

401

Unauthorized

500

Internal Server Error

post/gateway/ssca-manager/v1/orgs/{org}/projects/{project}/integration/{integration-id}/repos
Request samples
application/json
{
  • "include_all_repos": false,
  • "repositories": [
    ]
}
Response samples
application/json
{
  • "all_repos_configured": true,
  • "missing_repos": {
    }
}

Delete Integration

Securityx-api-key
Request
path Parameters
org
required
string

Harness organization ID

project
required
string

Harness project ID

integration
required
string

Integration ID

header Parameters
Harness-Account
required
string

Identifier field of the account the resource is scoped to. This is required for Authorization methods other than the x-api-key header. If you are using the x-api-key header, this can be skipped.

Responses
200

OK

400

Bad Request

401

Unauthorized

500

Internal Server Error

delete/gateway/ssca-manager/v1/orgs/{org}/projects/{project}/integration/{integration-id}
Request samples