Get Scan By Uuid

Request

GET

https://appsec.sourcecraft.tech/v1/scans/{scanUuid}

Path parameters

Name

Description

scanUuid

Type: string

Scan UUID to retrieve

Pattern: \S

Example: 01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a

Query parameters

Name

Description

gitRepo

Type: string

Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid).

Pattern: \S

Example: 0199140f-4343-7c06-a7e3-b835c305b629

Responses

200 OK

OK

Body

application/json
{
  "uuid": "example",
  "status": "INITIATED",
  "gitRepo": "example",
  "commitHash": "example",
  "commitId": 0,
  "commitUuid": "example",
  "timeStarted": 0,
  "timeFinished": 0,
  "gitReferenceId": 0,
  "gitReferenceUuid": "example",
  "gitReferenceName": "example",
  "isLatest": true,
  "totalFindings": 0,
  "criticalCount": 0,
  "highCount": 0,
  "mediumCount": 0,
  "lowCount": 0,
  "defectGroupsCount": 0,
  "rulesCount": 0,
  "newDelta": 0,
  "closedDelta": 0,
  "totalDefectGroups": 0,
  "foundDefectGroups": 0,
  "openDefectGroups": 0,
  "expectedReportCount": 0,
  "receivedReportCount": 0,
  "origin": "UNKNOWN"
}

Name

Description

commitHash

Type: string

Example: example

commitId

Type: integer

commitUuid

Type: string

Example: example

expectedReportCount

Type: integer

gitReferenceId

Type: integer | null

gitReferenceName

Type: string | null

Example: example

gitReferenceUuid

Type: string | null

Example: example

gitRepo

Type: string

Example: example

isLatest

Type: boolean

origin

Type: ScanOrigin

Enum: UNKNOWN, CUSTOM, BUILT_IN, UNRECOGNIZED

receivedReportCount

Type: integer

status

Type: ScanStatus

Enum: INITIATED, FINISHED, FAILED

timeFinished

Type: integer | null

timeStarted

Type: integer | null

uuid

Type: string

Example: example

closedDelta

Type: integer | null

criticalCount

Type: integer

defectGroupsCount

Type: integer

foundDefectGroups

Type: integer | null

highCount

Type: integer

lowCount

Type: integer

mediumCount

Type: integer

newDelta

Type: integer | null

openDefectGroups

Type: integer | null

rulesCount

Type: integer

totalDefectGroups

Type: integer | null

totalFindings

Type: integer

ScanStatus

Type: string

Enum: INITIATED, FINISHED, FAILED

ScanOrigin

Type: string

Enum: UNKNOWN, CUSTOM, BUILT_IN, UNRECOGNIZED