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

# Blocking Rules prüfen

> Prüft, ob Issues eines Scans gegen Blocking Rules verstoßen



## OpenAPI

````yaml /de/api-reference/openapi.json get /scan/{scan_id}/check_blocking_rules
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:
  /scan/{scan_id}/check_blocking_rules:
    get:
      tags:
        - Scans
        - Policies
      summary: Blocking Rules prüfen
      description: Prüft, ob Issues eines Scans gegen Blocking Rules verstoßen
      operationId: checkBlockingRules
      parameters:
        - name: scan_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: ID des Scans
        - 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
      responses:
        '200':
          description: Prüfung der Blocking Rules abgeschlossen
          content:
            application/json:
              schema:
                type: object
                properties:
                  block:
                    type: boolean
                    description: Gibt an, ob der Scan durch Regeln blockiert wird
                  blocking_issues:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        triggered_by_rules:
                          type: array
                          items:
                            type: string
                  stats:
                    type: object
                    properties:
                      total_issues:
                        type: integer
                      blocked_issues:
                        type: integer
                  page:
                    type: integer
                  total_pages:
                    type: integer
        '403':
          description: Zugriff verweigert
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Permission denied
        '404':
          description: Scan nicht gefunden
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: SAST scan not found
components:
  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

````