---
title: "POST /codesecurity/scan/get"
method: POST
path: "/codesecurity/scan/get"
---

# POST /codesecurity/scan/get

`POST /codesecurity/scan/get`

Retrieves information about a specific code security scan.

## Request body

- object
  - `resource` object, required — Identifies a specific resource in a code repository that will be scanned.
    - `projectId` string — The unique identifier of the project in the code repository.
  - `scanId` string, required — The unique identifier of the scan to retrieve.

## Response `200`

Success

- GetCodeSecurityScanResponse
  - `scanId` string — The unique identifier of the scan.
  - `resource` object — The resource identifier for the code repository that was scanned.
    - `projectId` string — The unique identifier of the project in the code repository.
  - `accountId` string — The Amazon Web Services account ID associated with the scan.
  - `status` 'IN_PROGRESS' | 'SUCCESSFUL' | 'FAILED' | 'SKIPPED' — The current status of the scan.
  - `statusReason` string — The reason for the current status of the scan.
  - `createdAt` string, date-time — The timestamp when the scan was created.
  - `updatedAt` string, date-time — The timestamp when the scan was last updated.
  - `lastCommitId` string — The identifier of the last commit that was scanned. This is only returned if the scan was successful or skipped.

## Other responses

- `480` — ConflictException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ThrottlingException
- `484` — ResourceNotFoundException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
