Artifacts
Read APIs for the Artifacts page.
List artifacts for a project.
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: 4Number of results per page
30Example: 50Sort field
lastScanAtExample: severityPossible values: Sort direction
DESCExample: DESCPossible values: Case-insensitive name substring
ng-managerComma-separated target types. Empty means container.
containerPattern: ^((container|instance|configuration)(,(container|instance|configuration))*)?$Comma-separated artifact sources. Use Unknown for null/empty artifact_source.
harness,docker_hub,UnknownPattern: ^([^,]+(,[^,]+)*)?$Comma-separated scan types
CONTAINER,SCAPattern: ^([^,]+(,[^,]+)*)?$Comma-separated scanner names
aqua-trivy,snykPattern: ^([^,]+(,[^,]+)*)?$Comma-separated severities with a non-zero occurrence count
critical,highPattern: ^((critical|high|medium|low|info|unassigned)(,(critical|high|medium|low|info|unassigned))*)?$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/artifacts?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"executionId": "abcdef1234567890ghijkl",
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"id": "abcdef1234567890ghijkl",
"isBaseline": true,
"isDigest": false,
"issueSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"lastScanAt": 1751793300000,
"name": "harness/ng-manager",
"occurrenceSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"pipelineId": "Security_Gate",
"scanType": {
"Nam id id natus.": [
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
}
]
},
"source": "harness",
"targetVariantId": "abcdef1234567890ghijkl",
"type": "container",
"url": "us-east1-docker.pkg.dev/harness/ng-manager",
"version": "v2.4.1"
},
{
"executionId": "abcdef1234567890ghijkl",
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"id": "abcdef1234567890ghijkl",
"isBaseline": true,
"isDigest": false,
"issueSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"lastScanAt": 1751793300000,
"name": "harness/ng-manager",
"occurrenceSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"pipelineId": "Security_Gate",
"scanType": {
"Nam id id natus.": [
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
}
]
},
"source": "harness",
"targetVariantId": "abcdef1234567890ghijkl",
"type": "container",
"url": "us-east1-docker.pkg.dev/harness/ng-manager",
"version": "v2.4.1"
},
{
"executionId": "abcdef1234567890ghijkl",
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"id": "abcdef1234567890ghijkl",
"isBaseline": true,
"isDigest": false,
"issueSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"lastScanAt": 1751793300000,
"name": "harness/ng-manager",
"occurrenceSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"pipelineId": "Security_Gate",
"scanType": {
"Nam id id natus.": [
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
}
]
},
"source": "harness",
"targetVariantId": "abcdef1234567890ghijkl",
"type": "container",
"url": "us-east1-docker.pkg.dev/harness/ng-manager",
"version": "v2.4.1"
},
{
"executionId": "abcdef1234567890ghijkl",
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"id": "abcdef1234567890ghijkl",
"isBaseline": true,
"isDigest": false,
"issueSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"lastScanAt": 1751793300000,
"name": "harness/ng-manager",
"occurrenceSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"pipelineId": "Security_Gate",
"scanType": {
"Nam id id natus.": [
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
},
{
"id": "trivy",
"prettyName": "Trivy"
}
]
},
"source": "harness",
"targetVariantId": "abcdef1234567890ghijkl",
"type": "container",
"url": "us-east1-docker.pkg.dev/harness/ng-manager",
"version": "v2.4.1"
}
]
}Paginated unique digest strings for an artifact target. When variantId is omitted, unique digests come from the target's executions newest-first up to pageSize. When set, the same unique list is scoped to that version. Empty fingerprints fall back to the variant/tag name. Used as the scan-history digest filter dropdown.
Artifact target id
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_]*$Optional target variant id for version/tag scope
xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$Case-insensitive substring match on effective digest (fingerprint or variant-name fallback)
sha256:c381Page number to fetch (starting from 0)
0Example: 4Results per page
15Example: 50OK response.
Distinct effective digests: fingerprints, plus variant/tag name when a succeeded scan has an empty fingerprint
["sha256:c3810867466a","v4.11.3"]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/artifacts/{id}/digests?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
"sha256:c3810867466a",
"v4.11.3"
]
}Artifact detail overview for the selected version (target variant): identity, latest-execution tiles, and per-digest severity matrix.
Artifact target id
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_]*$Optional version scope; when omitted, uses the tracked version
xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$OK response.
Artifact detail overview for one version (target variant).
Baseline variant id when set
abcdef1234567890ghijklPattern: ^([a-zA-Z0-9_-]{22}|)$All distinct content digests for this version across succeeded scans, newest scanned first. Not capped; digestFindingsMatrix is a separate 5-row widget.
["sha256:c38108674664dnekvnke","sha256:aa11bb22cc33"]CI execution identifier. With pipelineId and the request org/project, FE can construct a Harness execution URL when executionUrl is empty.
abcdef1234567890ghijklCI/CD platform of the last execution (harness, jenkins, github_actions, gitlab_ci, ...). Distinct from artifact/repo registry source. Omitted when unknown.
harnessDeep link from scan metadata (non-Harness). For Harness, often empty; FE constructs from pipelineId, executionId, and the request org/project.
https://jenkins.example.com/job/42True when cached ShiftLeft package counts exist for the scoped execution
falseExample: falseWhether the scoped version is the baseline
trueArtifact name
harness/payments-apiHarness pipeline identifier (not the pretty pipelineName). Used with executionId to construct a Harness execution URL when executionUrl is empty.
Security_GateRegistry URL for the scoped version's latest execution. Omitted when unknown.
app.harness.io/ng/module/har/harness/payments-apiShiftLeft/Qwiet package count (oss + container) for the scoped execution. 0 when unavailable.
135Latest execution start time in milliseconds since Unix epoch
1751793300000Artifact source for the scoped version's latest execution. Omitted when unknown. Values are snake_case: docker_hub, harness, aws_ecr, google, azure, github, jfrog_artifactory, docker_v2, local_image, local_archive.
harnessArtifact target id
abcdef1234567890ghijklTarget type
containerPossible values: Scoped version id
xyz987zyx654wvu321tsr9Pattern: ^[a-zA-Z0-9_-]{22}$Version or tag name
v4.11.3Number of scanned versions for this artifact
3BadRequest: 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/artifacts/{id}/overview?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"baselineVariantId": "abcdef1234567890ghijkl",
"deployments": {
"nonProd": 10,
"prod": 8,
"total": 18
},
"digestFindingsMatrix": {
"columnTotals": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"grandTotal": 120,
"rows": [
{
"digest": "sha256:c38108674664dnekvnke",
"label": "sha256:c38108674664dnekvnke",
"severityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"total": 32
},
{
"digest": "sha256:c38108674664dnekvnke",
"label": "sha256:c38108674664dnekvnke",
"severityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"total": 32
}
]
},
"digests": [
"sha256:c38108674664dnekvnke",
"sha256:aa11bb22cc33"
],
"executionId": "abcdef1234567890ghijkl",
"executionSource": "harness",
"executionUrl": "https://jenkins.example.com/job/42",
"hasShiftLeftScan": false,
"isBaseline": true,
"name": "harness/payments-api",
"occurrenceSeverityCounts": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"pipelineId": "Security_Gate",
"registryUrl": "app.harness.io/ng/module/har/harness/payments-api",
"sbomCount": 135,
"scannedAt": 1751793300000,
"source": "harness",
"targetId": "abcdef1234567890ghijkl",
"type": "container",
"variantId": "xyz987zyx654wvu321tsr9",
"variantName": "v4.11.3",
"versionsCount": 3
}List scanned versions for an artifact, newest first. Optional search matches version name or exact variant id.
Artifact target id
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_]*$Case-insensitive version name substring, or exact variant id
v4.11Page number to fetch (starting from 0)
0Example: 4Results per page
10Example: 50OK 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/artifacts/{id}/variants?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"pagination": {
"link": "",
"page": 4,
"pageSize": 20,
"totalItems": 230,
"totalPages": 12
},
"results": [
{
"created": 1651578240,
"hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"parameters": {
"branch": "main"
},
"targetId": "abcdef1234567890ghijkl"
},
{
"created": 1651578240,
"hash": "deadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
"id": "abcdef1234567890ghijkl",
"lastModified": 1651578240,
"parameters": {
"branch": "main"
},
"targetId": "abcdef1234567890ghijkl"
}
]
}Aggregate widgets for the Artifacts page.
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.
Aggregate widgets for the Artifacts page.
Artifacts with a baseline set
22Exploit Risk tile: critical-severity slice of fixAvailable. JSON key is exploitRisk (UI label: Exploit Risk).
5Sum of scanner-fix-available findings across severities (upgrade/fixed version or scanner remediation steps). Excludes Harness AI remediations.
13Change in remediated issues since UTC midnight
40Change in remediated occurrences since UTC midnight
100Total artifacts
12BadRequest: 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/artifacts/overview?accountId=abcdef1234567890ghijkl&orgId=example_org&projectId=example_project HTTP/1.1
Host: app.harness.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"baselineSet": 22,
"deployments": {
"nonProd": 10,
"prod": 8,
"total": 18
},
"exploitRisk": 5,
"fixAvailable": 13,
"issueRemediations": 40,
"issueSeverityDeltas": {
"critical": -2,
"high": 1,
"info": 0,
"low": -5,
"medium": 0,
"unassigned": 0
},
"issueSeverityTotals": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"occurrenceRemediations": 100,
"occurrenceSeverityDeltas": {
"critical": -2,
"high": 1,
"info": 0,
"low": -5,
"medium": 0,
"unassigned": 0
},
"occurrenceSeverityTotals": {
"critical": 3,
"high": 4,
"info": 1,
"low": 2,
"medium": 5,
"unassigned": 0
},
"sourceBreakdown": [
{
"count": 7,
"source": "harness"
},
{
"count": 7,
"source": "harness"
},
{
"count": 7,
"source": "harness"
},
{
"count": 7,
"source": "harness"
}
],
"totalArtifacts": 12
}Last updated
Was this helpful?