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

# セキュリティ問題のグループを一覧表示

> セキュリティ問題をグループにまとめ、グループごとの件数とともに取得します。すべての問題をダウンロードしなくても、クライアントで概要を表示できます。GET /issuesと同じフィルターを使用できます。グループの詳細を確認するには、同じフィルターにcweまたはfile_path_exactを加えてGET /issuesを呼び出します。



## OpenAPI

````yaml /ja/api-reference/openapi.json get /issues/groups
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: Corgeaのスキャン機能および脆弱性管理機能を操作するためのAPI
servers:
  - url: https://www.corgea.app/api/v1
    description: 本番サーバー
  - url: https://eu.corgea.app/api/v1
    description: EU本番サーバー
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /issues/groups:
    get:
      tags:
        - 問題
      summary: セキュリティ問題のグループを一覧表示
      description: >-
        セキュリティ問題をグループにまとめ、グループごとの件数とともに取得します。すべての問題をダウンロードしなくても、クライアントで概要を表示できます。GET
        /issuesと同じフィルターを使用できます。グループの詳細を確認するには、同じフィルターにcweまたはfile_path_exactを加えてGET
        /issuesを呼び出します。
      operationId: listSecurityIssueGroups
      parameters:
        - name: group_by
          in: query
          required: false
          schema:
            type: string
            enum:
              - cwe
              - file_path
            default: cwe
          description: 問題のグループ化の方法です。cweはCWE分類ごとに、file_pathは各問題が検出されたファイルごとにグループ化します。
          example: file_path
        - name: breakdown
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: 各グループに緊急度別とステータス別の件数を含めます
        - name: project
          in: query
          required: false
          schema:
            type: string
          description: プロジェクト名で問題を絞り込みます
        - name: repo
          in: query
          required: false
          schema:
            type: string
          description: リポジトリURLで問題を絞り込みます
        - name: branch
          in: query
          required: false
          schema:
            type: string
          description: ブランチ名で問題を絞り込みます
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: ページネーションのページ番号
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 20
            maximum: 100
          description: 1ページあたりのグループ数
      responses:
        '200':
          description: 問題のグループを正常に取得したか、プロジェクトが見つかりません
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        example: ok
                      page:
                        type: integer
                      total_pages:
                        type: integer
                      total_groups:
                        type: integer
                      groups:
                        type: array
                        items:
                          oneOf:
                            - $ref: '#/components/schemas/IssueCweGroup'
                            - $ref: '#/components/schemas/IssueFileGroup'
                  - type: object
                    properties:
                      status:
                        type: string
                        example: no_project_found
        '400':
          description: group_byの値が無効です
components:
  schemas:
    IssueCweGroup:
      type: object
      description: CWE分類が同じ問題のグループです。group_byがcweの場合に返されます。
      properties:
        cwe:
          type: object
          properties:
            id:
              type: string
              example: CWE-89
            name:
              type: string
            description:
              type: string
        issue_count:
          type: integer
          example: 42
        breakdown:
          $ref: '#/components/schemas/IssueGroupBreakdown'
    IssueFileGroup:
      type: object
      description: ファイルパスが同じ問題のグループです。group_byがfile_pathの場合に返されます。
      properties:
        file:
          type: object
          properties:
            path:
              type: string
              example: src/api/auth.py
            name:
              type: string
              example: auth.py
        issue_count:
          type: integer
          example: 7
        breakdown:
          $ref: '#/components/schemas/IssueGroupBreakdown'
    IssueGroupBreakdown:
      type: object
      description: グループ内の件数の内訳です。breakdownがtrueの場合のみ含まれます。
      properties:
        by_urgency:
          type: object
          additionalProperties:
            type: integer
          example:
            CR: 5
            HI: 10
            ME: 20
            LO: 7
        by_status:
          type: object
          additionalProperties:
            type: integer
          example:
            open: 30
            fixed: 5
            false_positive: 2
            accepted_risk: 1
            fix_in_progress: 3
            duplicate: 1
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: 認証用のAPIキー 無効なユーザーのAPIトークンは拒否されます。
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````

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