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} \ --header 'CORGEA-TOKEN: <api-key>'
import requests url = "https://www.corgea.app/api/v1/scan/{scan_id}" 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}', 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}", 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}" 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}") .header("CORGEA-TOKEN", "<api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://www.corgea.app/api/v1/scan/{scan_id}") 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
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "project": "<string>", "project_id": 123, "repo": "<string>", "branch": "<string>", "status": "scanning", "engine": "<string>", "created_at": "2023-11-07T05:31:56Z", "time_taken": 123, "git_sha": "<string>", "worktree_dirty": true, "metadata": {}, "source": "api", "triggered_by": { "id": "<string>", "email": "jsmith@example.com", "name": "<string>" }, "pull_request_id": "<string>" }
{ "error": "Permission denied" }
{ "status": "error", "message": "Scan doesn't exist" }
指定したスキャンの詳細を取得します
認証用のAPIキー 無効なユーザーのAPIトークンは拒否されます。
スキャンID
スキャンの詳細を正常に取得しました
スキャンに関連付けられたプロジェクトの数値ID。
スキャンの進行状況。「scanning」と「processing」は実行中、「complete」は完了、「incomplete」は失敗を示します。
scanning
processing
complete
incomplete
スキャン所要時間(秒)。スキャン処理が完了するまではnullです
スキャンに関連付けられたコミットSHA
スキャンにコミットされていないローカルの変更が含まれていたかどうか。ワークツリーの状態情報なしで作成されたスキャンではnullです。
スキャンに関連付けられたユーザー指定のメタデータ
スキャンの開始元を示します。不明な場合はnullです。
api
cli
vscode
vs2022
intellij
github_app
gitlab
azure_devops
bitbucket
harness
scheduled
manual
demo
web_upload
other
null
スキャンを開始したユーザー。ソースコード管理の連携によるスキャンではnullとなり、プルリクエストの作成者を示すものではありません。メールアドレスはtriggered_byフィルターに使用できます。
Show child attributes
プルリクエストまたはマージリクエストの識別子。関連付けがないスキャンではnullです。
このページは役に立ちましたか?