---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://sourcecraft.dev/portal/docs/en/sec-api-ref/Scan-Rest-Api/v1scansscanUuid-get.md
  - https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Scan-Rest-Api/v1scansscanUuid-get.md
  - href: https://sourcecraft.dev/portal/docs/ru/sec-api-ref/Scan-Rest-Api/v1scansscanUuid-get.md
    type: text/markdown
    title: Markdown version
  - href: https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21725674
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt?revision=r21725674

<div class="openapi">

# Get Scan By Uuid

<!-- markdownlint-disable-file -->

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://appsec.sourcecraft.tech/v1/scans/{scanUuid}
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_scanUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Scan UUID to retrieve

_Pattern:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `01890f3e-7b5c-7cc2-bc6f-3f5d8c9a1e4a`
{.table-cell}
||
|#{.json-schema-properties}

### Query parameters

#|
|| **Name** | **Description** ||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**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:_{.json-schema-reset .json-schema-assertion} `\S`

_Example:_{.json-schema-reset .json-schema-example} `0199140f-4343-7c06-a7e3-b835c305b629`
{.table-cell}
||
|#{.json-schema-properties}

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "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"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_commitHash_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_commitId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_commitUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_expectedReportCount_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_gitReferenceId_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_gitReferenceName_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string &#124; null

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_gitReferenceUuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string &#124; null

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_gitRepo_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_isLatest_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean
{.table-cell}
||
||

_origin_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [ScanOrigin](#entity-ScanOrigin)

_Enum:_{.json-schema-reset .json-schema-value} `UNKNOWN`, `CUSTOM`, `BUILT_IN`, `UNRECOGNIZED`
{.table-cell}
||
||

_receivedReportCount_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_status_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [ScanStatus](#entity-ScanStatus)

_Enum:_{.json-schema-reset .json-schema-value} `INITIATED`, `FINISHED`, `FAILED`
{.table-cell}
||
||

_timeFinished_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_timeStarted_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_uuid_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_closedDelta_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_criticalCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_defectGroupsCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_foundDefectGroups_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_highCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_lowCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_mediumCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_newDelta_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_openDefectGroups_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_rulesCount_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
||

_totalDefectGroups_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer &#124; null
{.table-cell}
||
||

_totalFindings_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### ScanStatus {#entity-ScanStatus}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `INITIATED`, `FINISHED`, `FAILED`

</div>

<div class="openapi-entity">

### ScanOrigin {#entity-ScanOrigin}

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `UNKNOWN`, `CUSTOM`, `BUILT_IN`, `UNRECOGNIZED`

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.