> ## 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.

# IaC-Issues abrufen

> Ruft Infrastructure-as-Code-Security-Issues (IaC) aus dem neuesten passenden verarbeiteten Scan ab.



## OpenAPI

````yaml /de/api-reference/openapi.json get /issues/iac
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
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issues/iac:
    get:
      tags:
        - Issues
        - IaC
      summary: IaC-Issues abrufen
      description: >-
        Ruft Infrastructure-as-Code-Security-Issues (IaC) aus dem neuesten
        passenden verarbeiteten Scan ab.
      operationId: listIacIssues
      parameters:
        - name: project
          in: query
          required: false
          schema:
            type: string
          description: Nach Projektname filtern
        - name: repo
          in: query
          required: false
          schema:
            type: string
          description: Nach Repository-URL filtern
        - name: branch
          in: query
          required: false
          schema:
            type: string
          description: Nach Branch-Name filtern
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: Seitennummer für die Paginierung
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 50
          description: Anzahl der Ergebnisse pro Seite
        - name: severity
          in: query
          required: false
          schema:
            type: string
          description: >-
            Nach Schweregraden filtern (kommagetrennt). Gültige Werte: CRITICAL,
            HIGH, MEDIUM, LOW
          example: CRITICAL,HIGH
        - name: provider
          in: query
          required: false
          schema:
            type: string
          description: Nach Cloud- oder Plattform-Provider filtern
          example: aws
        - name: service
          in: query
          required: false
          schema:
            type: string
          description: Nach betroffenem Service filtern
          example: s3
        - name: iac_type
          in: query
          required: false
          schema:
            type: string
          description: Nach IaC-Format filtern
          example: terraform
        - name: rule_id
          in: query
          required: false
          schema:
            type: string
          description: Nach Regelkennung filtern
          example: AVD-AWS-0001
        - name: avd_id
          in: query
          required: false
          schema:
            type: string
          description: Nach AVD-Kennung filtern
          example: AVD-AWS-0001
        - name: path
          in: query
          required: false
          schema:
            type: string
          description: Nach Dateipfad filtern (Teilübereinstimmung)
          example: infra/main.tf
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Titel, Beschreibung, Meldung, Regel-ID und AVD-ID durchsuchen
          example: encryption
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            enum:
              - created_at
              - '-created_at'
              - severity
              - '-severity'
              - provider
              - '-provider'
              - service
              - '-service'
              - path
              - '-path'
          description: >-
            Ergebnisse nach Feld sortieren (für absteigende Reihenfolge ein '-'
            voranstellen)
          example: '-severity'
      responses:
        '200':
          description: IaC-Issues erfolgreich abgerufen oder kein Projekt gefunden
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        example: ok
                      page:
                        type: integer
                      total_pages:
                        type: integer
                      total_issues:
                        type: integer
                      issues:
                        type: array
                        items:
                          $ref: '#/components/schemas/IaCIssue'
                  - type: object
                    properties:
                      status:
                        type: string
                        example: no_project_found
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
components:
  schemas:
    IaCIssue:
      type: object
      properties:
        id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        title:
          type: string
        description:
          type: string
        message:
          type: string
        resolution:
          type: string
        severity:
          type: string
          nullable: true
          enum:
            - CRITICAL
            - HIGH
            - MEDIUM
            - LOW
        rule_id:
          type: string
        avd_id:
          type: string
        primary_url:
          type: string
        references:
          type: array
          items: {}
        provider:
          type: string
        service:
          type: string
        iac_type:
          type: string
        location:
          type: object
          properties:
            path:
              type: string
            raw_path:
              type: string
            start_line:
              type: integer
              nullable: true
            end_line:
              type: integer
              nullable: true
        scan:
          type: object
          properties:
            id:
              type: string
              format: uuid
              nullable: true
            branch:
              type: string
              nullable: true
            project:
              type: string
              nullable: true
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: API-Key für die Authentifizierung
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2-Access-Token (JWT) im Authorization-Header

````