Overrides
Access and modify Overrides for Security Issues
List a collection of Overrides
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Page number to fetch (starting from 0)
0Example: 4Number of results per page
30Example: 50Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness personal or service access token
Sunt eos.OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/overrides?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"approverId": "user111111111111111111",
"created": 1651578240,
"id": "abcdef1234567890ghijkl",
"isDeleted": true,
"issueId": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"link": "https://example.com/ABC-1234",
"occurrences": [
42,
666
],
"orgId": "example_org",
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"pipelineId": "example_pipeline",
"projectId": "example_project",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"scanId": "abcdef1234567890ghijkl",
"scope": "PROJECT",
"search": "CWE-123,5",
"status": "Approved",
"targetId": "abcdef1234567890ghijkl"
},
{
"approverId": "user111111111111111111",
"created": 1651578240,
"id": "abcdef1234567890ghijkl",
"isDeleted": true,
"issueId": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"link": "https://example.com/ABC-1234",
"occurrences": [
42,
666
],
"orgId": "example_org",
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"pipelineId": "example_pipeline",
"projectId": "example_project",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"scanId": "abcdef1234567890ghijkl",
"scope": "PROJECT",
"search": "CWE-123,5",
"status": "Approved",
"targetId": "abcdef1234567890ghijkl"
}
]
}Create a new Override
Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness personal or service access token
Et quod non quae dolores.The ID of the Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Link to a related ticket
https://example.com/ABC-1234Array of occurrence Ids
[42,666]Name of the field that is being overridden
severityValue of the field that is being overridden
LowStates if the user wants to override future occurrences of the issue
trueExample: falseHarness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$Text describing why this override is necessary
Waiting on upstream bug fixUser ID of the user who requested this Exemption
user111111111111111111ID of the Harness Scan to determine all the occurrences for the scan-issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Search parameter to find filtered occurrences of the issue
CWE-123,5Associated Target ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$OK response.
Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
POST /gateway/sto/api/v2/overrides?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 390
{
"issueId": "abcdef1234567890ghijkl",
"link": "https://example.com/ABC-1234",
"occurrences": [
42,
666
],
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"overrideFutureOccurrences": false,
"pipelineId": "example_pipeline",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"scanId": "abcdef1234567890ghijkl",
"search": "CWE-123,5",
"targetId": "abcdef1234567890ghijkl"
}{
"id": "abcdef1234567890ghijkl"
}Find Override by ID
The ID of the Override to retrieve
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Execution ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness personal or service access token
Eos et.OK response.
Information about an Override
User ID of the user who approved this Exemption
user111111111111111111Unix timestamp at which the resource was created
1651578240Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$States if the override is deleted
falseExample: trueThe ID of the Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Unix timestamp at which the resource was most recently modified
1651578240Link to a related ticket
https://example.com/ABC-1234Array of occurrence Ids
[42,666]Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Name of the field that is being overridden
severityValue of the field that is being overridden
LowHarness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Text describing why this override is necessary
Waiting on upstream bug fixUser ID of the user who requested this Exemption
user111111111111111111ID of the Harness Scan to determine all the occurrences for the scan-issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$States the scope for the override
PROJECTPossible values: Search parameter to find filtered occurrences of the issue
CWE-123,5Approval status of Override
PendingExample: RejectedPossible values: Associated Target ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/overrides/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"approverId": "user111111111111111111",
"created": 1651578240,
"id": "abcdef1234567890ghijkl",
"isDeleted": true,
"issueId": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"link": "https://example.com/ABC-1234",
"occurrences": [
42,
666
],
"orgId": "example_org",
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"pipelineId": "example_pipeline",
"projectId": "example_project",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"scanId": "abcdef1234567890ghijkl",
"scope": "PROJECT",
"search": "CWE-123,5",
"status": "Approved",
"targetId": "abcdef1234567890ghijkl"
}Update an existing Override
The ID of the Override to update
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Account ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness personal or service access token
Dignissimos iusto reiciendis et expedita corporis sit.Link to a related ticket
https://example.com/ABC-1234Name of the field that is being overridden
severityValue of the field that is being overridden
LowHarness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$Text describing why this override is necessary
Waiting on upstream bug fixUser ID of the user who requested this Exemption
user111111111111111111Associated Target ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$OK response.
Information about an Override
User ID of the user who approved this Exemption
user111111111111111111Unix timestamp at which the resource was created
1651578240Resource identifier
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$States if the override is deleted
falseExample: trueThe ID of the Security Issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$Unix timestamp at which the resource was most recently modified
1651578240Link to a related ticket
https://example.com/ABC-1234Array of occurrence Ids
[42,666]Harness Organization ID
example_orgPattern: ^[A-Za-z_][A-Za-z0-9_]*$Name of the field that is being overridden
severityValue of the field that is being overridden
LowHarness Pipeline ID
example_pipelinePattern: ^[A-Za-z_][A-Za-z0-9_]*$Harness Project ID
example_projectPattern: ^[A-Za-z_][A-Za-z0-9_]*$Text describing why this override is necessary
Waiting on upstream bug fixUser ID of the user who requested this Exemption
user111111111111111111ID of the Harness Scan to determine all the occurrences for the scan-issue
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$States the scope for the override
PROJECTPossible values: Search parameter to find filtered occurrences of the issue
CWE-123,5Approval status of Override
PendingExample: RejectedPossible values: Associated Target ID
abcdef1234567890ghijklPattern: ^[a-zA-Z0-9_-]{22}$BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
PUT /gateway/sto/api/v2/overrides/{id}?accountId=abcdef1234567890ghijkl HTTP/1.1
Host: app.harness.io
X-Api-Key: YOUR_API_KEY
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 243
{
"link": "https://example.com/ABC-1234",
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"pipelineId": "example_pipeline",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"targetId": "abcdef1234567890ghijkl"
}{
"approverId": "user111111111111111111",
"created": 1651578240,
"id": "abcdef1234567890ghijkl",
"isDeleted": true,
"issueId": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"link": "https://example.com/ABC-1234",
"occurrences": [
42,
666
],
"orgId": "example_org",
"overrideFieldName": "severity",
"overrideFieldValue": "Low",
"pipelineId": "example_pipeline",
"projectId": "example_project",
"reason": "Waiting on upstream bug fix",
"requesterId": "user111111111111111111",
"scanId": "abcdef1234567890ghijkl",
"scope": "PROJECT",
"search": "CWE-123,5",
"status": "Approved",
"targetId": "abcdef1234567890ghijkl"
}Last updated
Was this helpful?