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

# Elenca i risultati della scansione del codice

> Elenca i risultati della scansione del codice a livello Enterprise

<div id="permissions">
  ## Autorizzazioni
</div>

Richiede un utente di servizio con l'autorizzazione `ViewAccountCodeScans` a livello di Enterprise.


## OpenAPI

````yaml it/v3-openapi.yaml GET /v3/enterprise/code-scans/findings
openapi: 3.1.0
info:
  description: API Devin v3 con autenticazione utente di servizio e RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3/enterprise/code-scans/findings:
    get:
      tags:
        - code-scans
      summary: Elenca i finding delle scansioni del codice
      description: >-
        Elenca i finding della scansione del codice per l'account Enterprise.


        I finding vengono restituiti dal più recente al meno recente.
        Facoltativamente, filtra per ``org_ids``,

        ``scan_id``, ``repo_name``, ``severity`` e ``status`` (``severity`` e

        ``status`` accettano valori multipli); i risultati sono paginati con un

        cursore opaco (``after`` / ``first``).
      operationId: handle_list_code_scan_findings_v3_enterprise_code_scans_findings_get
      parameters:
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
        - description: Filtra i finding presenti in queste organizzazioni.
          in: query
          name: org_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Filtra i finding presenti in queste organizzazioni.
            title: Org Ids
        - description: Filtra i finding prodotti da questa scansione.
          in: query
          name: scan_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filtra i finding prodotti da questa scansione.
            title: Scan Id
        - description: Filtra i finding segnalati in questo repository.
          in: query
          name: repo_name
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filtra i finding segnalati in questo repository.
            title: Repo Name
        - description: >-
            Filtra i finding con uno di questi livelli di gravità (critical,
            high, medium, low).
          in: query
          name: severity
          required: false
          schema:
            anyOf:
              - items:
                  enum:
                    - critical
                    - high
                    - medium
                    - low
                  type: string
                type: array
              - type: 'null'
            description: >-
              Filtra i finding con uno di questi livelli di gravità (critical,
              high, medium, low).
            title: Severity
        - description: >-
            Filtra i finding con uno di questi stati (open, dismissed,
            resolved).
          in: query
          name: status
          required: false
          schema:
            anyOf:
              - items:
                  enum:
                    - open
                    - dismissed
                    - resolved
                  type: string
                type: array
              - type: 'null'
            description: >-
              Filtra i finding con uno di questi stati (open, dismissed,
              resolved).
            title: Status
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PaginatedResponse_CodeScanFindingResponse_
          description: Risposta con esito positivo
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Errore di convalida
components:
  schemas:
    PaginatedResponse_CodeScanFindingResponse_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursore per recuperare la pagina successiva, oppure None se questa è
            l'ultima pagina.
          title: End Cursor
        has_next_page:
          default: false
          description: Indica se dopo questa pagina sono disponibili altri elementi.
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/CodeScanFindingResponse'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Conteggio totale facoltativo (può essere omesso per motivi di
            prestazioni).
          title: Total
      required:
        - items
      title: PaginatedResponse[CodeScanFindingResponse]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CodeScanFindingResponse:
      description: Un singolo finding della scansione del codice.
      properties:
        category:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Categoria (nome della regola) in cui è stato classificato il
            finding, se presente.
          title: Category
        code_owners:
          description: Code owner associati al codice interessato.
          items:
            type: string
          title: Code Owners
          type: array
        created_at:
          description: Data e ora di creazione del finding (secondi Unix).
          title: Created At
          type: integer
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Descrizione dettagliata della vulnerabilità, se presente.
          title: Description
        finding_id:
          description: Identificatore univoco del finding.
          title: Finding Id
          type: string
        note:
          anyOf:
            - type: string
            - type: 'null'
          description: Nota aggiuntiva allegata al finding, se presente.
          title: Note
        orchestrator_session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Sessione dell'orchestratore che ha eseguito la scansione che ha
            prodotto il finding (la sessione Devin della scansione), se
            presente.
          title: Orchestrator Session Id
        pr_url:
          anyOf:
            - type: string
            - type: 'null'
          description: URL della PR di remediation aperta per questo finding, se presente.
          title: Pr Url
        recommendation:
          anyOf:
            - type: string
            - type: 'null'
          description: Remediation suggerita per il finding, se presente.
          title: Recommendation
        reference_snippets:
          description: Frammenti di codice citati dal finding come prove di supporto.
          items:
            $ref: '#/components/schemas/CodeScanReferenceSnippetResponse'
          title: Reference Snippets
          type: array
        repo_name:
          description: Repository in cui è stato segnalato il finding.
          title: Repo Name
          type: string
        scan_id:
          description: Identificatore della scansione che ha prodotto il finding.
          title: Scan Id
          type: string
        session_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Sessione che ha corretto il finding (e ha aperto la PR), se
            presente.
          title: Session Id
        severity:
          description: 'Gravità del finding: critical, high, medium o low.'
          enum:
            - critical
            - high
            - medium
            - low
          title: Severity
          type: string
        status:
          description: 'Stato del finding: open, dismissed o resolved.'
          enum:
            - open
            - dismissed
            - resolved
          title: Status
          type: string
        title:
          anyOf:
            - type: string
            - type: 'null'
          description: Titolo del finding, se presente.
          title: Title
      required:
        - finding_id
        - title
        - description
        - recommendation
        - note
        - code_owners
        - reference_snippets
        - severity
        - category
        - repo_name
        - pr_url
        - scan_id
        - session_id
        - orchestrator_session_id
        - status
        - created_at
      title: CodeScanFindingResponse
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    CodeScanReferenceSnippetResponse:
      description: Un frammento di codice citato da un finding come prova a supporto.
      properties:
        code:
          anyOf:
            - type: string
            - type: 'null'
          description: Il codice sorgente di riferimento, se acquisito.
          title: Code
        commentary:
          description: >-
            Spiegazione del motivo per cui questo frammento è pertinente al
            finding.
          title: Commentary
          type: string
        end_line:
          description: Ultima riga dell'intervallo di riferimento.
          title: End Line
          type: integer
        file_path:
          description: Percorso del file di riferimento.
          title: File Path
          type: string
        start_line:
          description: Prima riga dell'intervallo di riferimento.
          title: Start Line
          type: integer
      required:
        - file_path
        - start_line
        - end_line
        - commentary
      title: CodeScanReferenceSnippetResponse
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Credenziale dell''utente del servizio (prefisso: cog_)'
      scheme: bearer
      type: http

````