Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca \ --header 'CORGEA-TOKEN: <api-key>'
import requests url = "https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca" headers = {"CORGEA-TOKEN": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {'CORGEA-TOKEN': '<api-key>'}}; fetch('https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
<?php $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => "https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "CORGEA-TOKEN: <api-key>" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("CORGEA-TOKEN", "<api-key>") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
HttpResponse<String> response = Unirest.get("https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca") .header("CORGEA-TOKEN", "<api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://www.corgea.app/api/v1/scan/{scan_id}/detections/sca") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["CORGEA-TOKEN"] = '<api-key>' response = http.request(request) puts response.read_body
{ "status": "ok", "page": 123, "total_pages": 123, "total_issues": 123, "issues": [ { "status": "open", "finding_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created_at": "2023-11-07T05:31:56Z", "description": "<string>", "details": "<string>", "severity": "CRITICAL", "cvss_score": 123, "classification": "<string>", "cve": "<string>", "package": { "name": "<string>", "version": "<string>", "ecosystem": "<string>", "fix_version": "<string>" }, "location": { "path": "<string>" }, "reachability": { "status": "not_direct_dependency", "description": "<string>" } } ] }
{ "error": "Permission denied" }
{ "status": "error", "message": "Scan not found" }
指定したスキャンのSCA検出を取得します
以前の名前である/api/v1/scan/{scan_id}/issues/scaでも引き続き利用でき、パラメーターとレスポンスは同じです。
/api/v1/scan/{scan_id}/issues/sca
認証用のAPIキー 無効なユーザーのAPIトークンは拒否されます。
スキャンID
ページネーションのページ番号
1ページあたりの結果件数
x <= 50
重大度で絞り込みます(カンマ区切り)。有効な値: CRITICAL、HIGH、MEDIUM、LOW
パッケージ名で絞り込みます(部分一致)
パッケージエコシステムで絞り込みます(大文字と小文字を区別しません)
CVE識別子で絞り込みます(部分一致)
ファイルパスで絞り込みます(部分一致)
修正の有無で絞り込みます(true/false)
依存関係の到達可能性ステータスでSCA問題を絞り込みます
not_direct_dependency
pending
vulnerable_usage_reachable
vulnerable_usage_unreachable
dead_dependency
各SCA問題に依存関係の到達可能性ステータスと説明を含めます。
フィールドで結果を並べ替えます(降順の場合は先頭に「-」を付けます)
created_at
-created_at
severity
-severity
package
-package
ecosystem
-ecosystem
トリアージのステータスで絞り込みます(カンマ区切り)。有効な値: open、fixed、false_positive、accepted_risk、duplicate
パッケージ名の完全一致で絞り込みます。packageとは異なり、値を含むだけのパッケージには一致しません(lodashはlodash.mergeに一致しません)。そのため、パッケージグループの詳細を確認する場合に使用できます。
パッケージ名、CVE識別子、概要、詳細、パス、分類を対象にフリーテキストで検索します
SCA問題を正常に取得しました
"ok"
Show child attributes
このページは役に立ちましたか?