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: Example: |
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: Example: |
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: |
|
commitId |
Type: integer |
|
commitUuid |
Type: string Example: |
|
expectedReportCount |
Type: integer |
|
gitReferenceId |
Type: integer | null |
|
gitReferenceName |
Type: string | null Example: |
|
gitReferenceUuid |
Type: string | null Example: |
|
gitRepo |
Type: string Example: |
|
isLatest |
Type: boolean |
|
origin |
Type: ScanOrigin Enum: |
|
receivedReportCount |
Type: integer |
|
status |
Type: ScanStatus Enum: |
|
timeFinished |
Type: integer | null |
|
timeStarted |
Type: integer | null |
|
uuid |
Type: string 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