GET
/
project
/
{projectId}
/
scan
/
{scanId}
Get a scan by ID
curl --request GET \
  --url https://app-preprod.cybedefend.com/project/{projectId}/scan/{scanId}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "state": "queued",
  "language": [
    "<string>"
  ],
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "private": true,
  "initializerUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "scanType": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "containers": [
    [
      {}
    ]
  ],
  "progress": 123,
  "step": "<string>",
  "vulnerabilityDetected": 123
}

Path Parameters

scanId
string<uuid>
required
projectId
string<uuid>
required

Response

Scan found

id
string<uuid>
required

Scan unique identifier

name
string
required

Name of the scan

state
enum<string>
required

Current scan state

Available options:
queued,
running,
completed,
failed
language
string[]
required

Array of detected or target languages

projectId
string<uuid>
required

Project unique identifier

private
boolean
required

Define if the scan is private

createAt
string<date-time>
required

Creation date of the scan

updatedAt
string<date-time>
required

Last update date of the scan

containers
object[][]
required

Array of containers used or involved in this scan

progress
number
required

Progress of the scan in percentage (0-100)

step
string
required

Current step of the scan

initializerUserId
string<uuid>

User ID who initialized the scan

scanType
string

Scan type (optional)

startTime
string<date-time>

Date and time when the scan started

endTime
string<date-time>

Date and time when the scan ended

vulnerabilityDetected
number

Number of vulnerabilities detected (optional)