# Scans

Access and modify Security Test Scans

## Scans#ListScans

 - [GET /sto/api/v2/scans](https://apidocs.harness.io/scans/scans_listscans.md): List a collection of Security Test Scans

## Scans#CreateScan

 - [POST /sto/api/v2/scans](https://apidocs.harness.io/scans/scans_createscan.md): Create a new Security Test Scan

## Scans#DeleteScan

 - [DELETE /sto/api/v2/scans/{id}](https://apidocs.harness.io/scans/scans_deletescan.md): Delete an existing Security Test Scan

## Scans#FindScanById

 - [GET /sto/api/v2/scans/{id}](https://apidocs.harness.io/scans/scans_findscanbyid.md): Find Security Test Scan by ID

## Scans#UpdateScan

 - [PUT /sto/api/v2/scans/{id}](https://apidocs.harness.io/scans/scans_updatescan.md): Update an existing Security Test Scan

## Scans#ScanIssue

 - [GET /sto/api/v2/scans/{id}/issue/{issueId}](https://apidocs.harness.io/scans/scans_scanissue.md): Returns a scan specific issue

## Scans#ScanIssueOccurrences

 - [GET /sto/api/v2/scans/{id}/issue/{issueId}/occurrences](https://apidocs.harness.io/scans/scans_scanissueoccurrences.md): Returns occurrences for a scan specific issue

## Scans#ScanIssues

 - [GET /sto/api/v2/scans/{id}/issues](https://apidocs.harness.io/scans/scans_scanissues.md): List Issues by Scan ID

## Scans#ScanIssueCounts

 - [GET /sto/api/v2/scans/{id}/issues/counts](https://apidocs.harness.io/scans/scans_scanissuecounts.md): Returns counts of active Security Issues for a Security Test Scan

## Get Latest Scans

 - [GET /sto/api/v2/scans/latest](https://apidocs.harness.io/scans/scans_latestscan.md): Get the most recent successful scan for each product/subproduct of a target variant. A single product can emit multiple subproducts (e.g. SnykCode vs snykContainer), each of which is a distinct scan stream, so the result is an array with the latest succeeded scan per (product, subproduct). The optional productId and subproduct query params narrow the result to a single product and/or subproduct. Used by scanners needing previous scan context and by UIs to show latest scan status.

