Applications
User-created groups of already-scanned targets in one project
List applications in a project. Counts, findings, scan types, and last scan are read from each member scoreboard.
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_]*$Page number to fetch, starting from 0
0Example: 0Results per page
10Example: 10Case-insensitive application name substring
PaymentSort field
lastScanAtExample: lastScanAtPossible values: Sort direction
DESCExample: DESCPossible values: Comma-separated severities. Keeps an application whose summed occurrence count for any listed severity is greater than 0.
critical,highPattern: ^((critical|high|medium|low|info|unassigned)(,(critical|high|medium|low|info|unassigned))*)?$Comma-separated scan types. Keeps an application whose member scan types overlap this list.
SAST,SCAPattern: ^([^,]+(,[^,]+)*)?$Harness personal or service access token
Est nobis eius illum.OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/applications?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
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"artifactCount": 4,
"id": "appid1234567890abcdefgh",
"lastScanAt": 1751793300000,
"name": "Payment Platform",
"occurrenceSeverityCounts": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"repositoryCount": 12,
"scanTypes": [
"SAST",
"SCA"
],
"targetCount": 16
},
{
"artifactCount": 4,
"id": "appid1234567890abcdefgh",
"lastScanAt": 1751793300000,
"name": "Payment Platform",
"occurrenceSeverityCounts": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"repositoryCount": 12,
"scanTypes": [
"SAST",
"SCA"
],
"targetCount": 16
}
]
}Create an application and its members in one transaction. Does not start a scan.
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
Voluptatem libero.Business criticality
CriticalPossible values: Data sensitivity. Omitted means unset.
ConfidentialPossible values: Deployment environment. Omitted means unset.
ProductionPossible values: Internet exposure. Omitted means unset.
Internet ExposurePossible values: Application name. Unique among live applications in the project.
Payment PlatformScanned target ids in this project. Minimum 1, maximum 100, no duplicates.
["abcdef1234567890ghijkl","xyz987zyx654wvu321tsr9"]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/applications?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: 233
{
"businessCriticality": "Critical",
"dataSensitivity": "Confidential",
"deploymentEnvironment": "Production",
"internetExposure": "Internet Exposure",
"name": "Payment Platform",
"targetIds": [
"abcdef1234567890ghijkl",
"xyz987zyx654wvu321tsr9"
]
}{
"id": "abcdef1234567890ghijkl"
}Load one live application and its current members.
Application id
appid1234567890abcdefghPattern: ^[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
Repellendus debitis et vel velit et voluptatem.OK response.
A named group of scanned targets in one project.
Business criticality
CriticalPossible values: Unix timestamp at which the resource was created
1651578240Principal that created the application
user111111111111111111Data sensitivity. Omitted when unset.
ConfidentialPossible values: Deployment environment. Omitted when unset.
ProductionPossible values: Application id
appid1234567890abcdefghPattern: ^[a-zA-Z0-9_-]{22}$Internet exposure. Omitted when unset.
Internet ExposurePossible values: Unix timestamp at which the resource was most recently modified
1651578240Principal that last modified the application
user111111111111111111Application name
Payment PlatformBadRequest: 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/applications/{id}?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
Accept: */*
{
"businessCriticality": "Critical",
"created": 1651578240,
"createdBy": "user111111111111111111",
"dataSensitivity": "Confidential",
"deploymentEnvironment": "Production",
"id": "appid1234567890abcdefgh",
"internetExposure": "Internet Exposure",
"lastModified": 1651578240,
"lastModifiedBy": "user111111111111111111",
"name": "Payment Platform",
"targets": [
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"name": "payments-service",
"type": "repository"
},
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"name": "payments-service",
"type": "repository"
}
]
}Soft-delete an application. Member targets and their scans stay.
Application id
appid1234567890abcdefghPattern: ^[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_]*$OK response.
No content
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
DELETE /gateway/sto/api/v2/applications/{id}?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Patch name and replace members in one transaction. Risk fields are not changed by this endpoint. Does not start a scan.
Application id
appid1234567890abcdefghPattern: ^[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
Exercitationem expedita rerum explicabo.Application name. Unique among live applications in the project.
Payment PlatformScanned target ids for this application after the update. Minimum 1, maximum 100, no duplicates.
["abcdef1234567890ghijkl","xyz987zyx654wvu321tsr9"]OK response.
A named group of scanned targets in one project.
Business criticality
CriticalPossible values: Unix timestamp at which the resource was created
1651578240Principal that created the application
user111111111111111111Data sensitivity. Omitted when unset.
ConfidentialPossible values: Deployment environment. Omitted when unset.
ProductionPossible values: Application id
appid1234567890abcdefghPattern: ^[a-zA-Z0-9_-]{22}$Internet exposure. Omitted when unset.
Internet ExposurePossible values: Unix timestamp at which the resource was most recently modified
1651578240Principal that last modified the application
user111111111111111111Application name
Payment PlatformBadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
PATCH /gateway/sto/api/v2/applications/{id}?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: 91
{
"name": "Payment Platform",
"targetIds": [
"abcdef1234567890ghijkl",
"xyz987zyx654wvu321tsr9"
]
}{
"businessCriticality": "Critical",
"created": 1651578240,
"createdBy": "user111111111111111111",
"dataSensitivity": "Confidential",
"deploymentEnvironment": "Production",
"id": "appid1234567890abcdefgh",
"internetExposure": "Internet Exposure",
"lastModified": 1651578240,
"lastModifiedBy": "user111111111111111111",
"name": "Payment Platform",
"targets": [
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"name": "payments-service",
"type": "repository"
},
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"name": "payments-service",
"type": "repository"
}
]
}One application's list-row scoreboard. Target counts, scan types, and findings are unique inside this application.
Application id
appid1234567890abcdefghPattern: ^[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
Omnis aut natus deserunt praesentium quod maiores.OK response.
One applications-table row. Counts are unique inside the application.
Counted members of type container
4Application id
appid1234567890abcdefghPattern: ^[a-zA-Z0-9_-]{22}$Newest member last-scan time in milliseconds since Unix epoch. Omitted when every member has no last scan.
1751793300000Application name
Payment PlatformCounted members of type repository
12Distinct scan types that appear on this application's counted members, sorted by name. A type that was never scanned is omitted.
["SAST","SCA"]Counted members
16BadRequest: 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/applications/{id}/overview?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
Accept: */*
{
"artifactCount": 4,
"id": "appid1234567890abcdefgh",
"lastScanAt": 1751793300000,
"name": "Payment Platform",
"occurrenceSeverityCounts": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"repositoryCount": 12,
"scanTypes": [
"SAST",
"SCA"
],
"targetCount": 16
}List the scanned members of one application.
Application id
appid1234567890abcdefghPattern: ^[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_]*$Page number to fetch, starting from 0
0Example: 0Results per page
10Example: 10Case-insensitive target name substring
paymentsTarget type. repository or container. container is an artifact.
repositoryPossible values: Comma-separated severities. Keeps a member whose own occurrence count for any listed severity is greater than 0.
criticalPattern: ^((critical|high|medium|low|info|unassigned)(,(critical|high|medium|low|info|unassigned))*)?$Sort field
lastScanAtExample: lastScanAtPossible values: Sort direction. Omitted with sort=name means ASC. Otherwise omitted means DESC.
DESCPossible values: Harness personal or service access token
Sed sit aspernatur soluta et modi quas.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/applications/{id}/targets?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
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"lastExecution": {
"buildId": "222",
"executionId": "abcdef1234567890ghijkl",
"executionScanTypes": [
"Container"
],
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"pipelineId": "Security_Gate",
"pipelineName": "Security Gate",
"targetVariantId": "xyz987zyx654wvu321tsr9"
},
"lastScanAt": 1751793300000,
"name": "payments-service",
"occurrenceSeverityCounts": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"scanTypes": [
"SAST"
],
"type": "repository"
},
{
"defaultRef": "main",
"id": "abcdef1234567890ghijkl",
"lastExecution": {
"buildId": "222",
"executionId": "abcdef1234567890ghijkl",
"executionScanTypes": [
"Container"
],
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"pipelineId": "Security_Gate",
"pipelineName": "Security Gate",
"targetVariantId": "xyz987zyx654wvu321tsr9"
},
"lastScanAt": 1751793300000,
"name": "payments-service",
"occurrenceSeverityCounts": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"scanTypes": [
"SAST"
],
"type": "repository"
}
]
}Project cards. A target that belongs to several applications is counted once.
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
Modi consectetur in veniam quas magni.OK response.
The three project cards. Targets and findings are unique across applications.
Distinct counted artifacts
310Distinct counted repositories
420Distinct scan types that appear on counted targets in the project, sorted by name. A type no target has been scanned with is omitted.
["SAST","SCA"]Live applications in the project, including those with no counted members
20Distinct counted targets
1240BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
TooManyRequests: Too Many Requests response.
InternalServerError: Internal Server Error response.
GET /gateway/sto/api/v2/applications/overview?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
Accept: */*
{
"artifactCount": 310,
"occurrenceSeverityTotals": {
"critical": 75,
"high": 143,
"info": 0,
"low": 267,
"medium": 204,
"unassigned": 0
},
"repositoryCount": 420,
"scanTypes": [
"SAST",
"SCA"
],
"totalApplications": 20,
"totalTargets": 1240
}Last updated
Was this helpful?