> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corgea.app/llms.txt
> Use this file to discover all available pages before exploring further.

# SCA-Detection abrufen

> Ruft Details zu einer bestimmten Software-Composition-Analysis-Detection (SCA) einschließlich Informationen zur Erreichbarkeit der Abhängigkeit ab.

Auch unter `/api/v1/issues/sca/{issue_id}` erreichbar, dem früheren Namen dieses Endpunkts, der weiterhin mit denselben Parametern und derselben Antwort unterstützt wird.



## OpenAPI

````yaml /de/api-reference/openapi.json get /detections/sca/{issue_id}
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: >-
    API für die Interaktion mit den Scan- und
    Schwachstellenmanagement-Funktionen von Corgea
servers:
  - url: https://www.corgea.app/api/v1
    description: Produktionsserver
  - url: https://eu.corgea.app/api/v1
    description: EU-Produktionsserver
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /detections/sca/{issue_id}:
    get:
      tags:
        - Detections
        - SCA
      summary: SCA-Detection abrufen
      description: >-
        Ruft Details zu einer bestimmten Software-Composition-Analysis-Detection
        (SCA) einschließlich Informationen zur Erreichbarkeit der Abhängigkeit
        ab.


        Auch unter `/api/v1/issues/sca/{issue_id}` erreichbar, dem früheren
        Namen dieses Endpunkts, der weiterhin mit denselben Parametern und
        derselben Antwort unterstützt wird.
      operationId: getScaIssue
      parameters:
        - name: issue_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID des SCA-Issues
      responses:
        '200':
          description: SCA-Issue-Details erfolgreich abgerufen
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  issue:
                    $ref: '#/components/schemas/SCAIssueDetail'
        '404':
          description: SCA-Issue nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: SCA issue not found
components:
  schemas:
    SCAIssueDetail:
      allOf:
        - $ref: '#/components/schemas/SCAIssue'
        - type: object
          properties:
            finding_id:
              type: string
              format: uuid
              nullable: true
              description: >-
                ID des Findings, von dem dieses Issue eine Detection ist: über
                Rescans hinweg dieselbe. Null bei einem Issue, das erfasst
                wurde, bevor es Findings gab.
            status:
              type: string
              enum:
                - open
                - fixed
                - false_positive
                - accepted_risk
                - duplicate
            reachability:
              allOf:
                - $ref: '#/components/schemas/SCAReachability'
                - type: object
                  properties:
                    usages:
                      type: array
                      items:
                        $ref: '#/components/schemas/SCAIssueUsage'
    SCAIssue:
      type: object
      properties:
        finding_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            ID des Findings, von dem dieses Issue eine Detection ist: über
            Rescans hinweg dieselbe. Null bei einem Issue, das erfasst wurde,
            bevor es Findings gab.
        id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        description:
          type: string
        details:
          type: string
        severity:
          type: string
          nullable: true
          enum:
            - CRITICAL
            - HIGH
            - MEDIUM
            - LOW
          description: >-
            Vom Abhängigkeitsscanner gemeldeter Schweregrad, normalerweise in
            Großbuchstaben. Vergleichen Sie Werte ohne Berücksichtigung der
            Groß-/Kleinschreibung.
        cvss_score:
          type: number
          nullable: true
        classification:
          type: string
          nullable: true
          description: >-
            Bedrohungsklassifizierung wie malicious, unabhängig vom Schweregrad.
            null, wenn das Issue keine Klassifizierung hat.
        cve:
          type: string
          description: CVE-Kennung, sofern verfügbar
        package:
          type: object
          properties:
            name:
              type: string
            version:
              type: string
            ecosystem:
              type: string
            fix_version:
              type: string
              description: Version, die die Schwachstelle behebt
        location:
          type: object
          properties:
            path:
              type: string
              description: Pfad zur Datei mit dem anfälligen Paket
        reachability:
          $ref: '#/components/schemas/SCAReachability'
    SCAReachability:
      type: object
      properties:
        status:
          type: string
          enum:
            - not_direct_dependency
            - pending
            - vulnerable_usage_reachable
            - vulnerable_usage_unreachable
            - dead_dependency
            - not_applicable
          description: >-
            Erreichbarkeitsstatus. not_applicable wird nur beim Abrufen eines
            einzelnen Container-Issues zurückgegeben.
        description:
          type: string
    SCAIssueUsage:
      type: object
      properties:
        id:
          type: string
          format: uuid
        filename:
          type: string
        code_line:
          type: string
          nullable: true
        is_function_reachable:
          type: string
          nullable: true
          enum:
            - 'true'
            - 'false'
            - unsure
        reasoning:
          type: string
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: >-
        API-Key für die Authentifizierung API-Tokens inaktiver Benutzer werden
        abgelehnt.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.