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/scans \ --header 'CORGEA-TOKEN: <api-key>'
import requests url = "https://www.corgea.app/api/v1/scans" 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/scans', 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/scans", 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/scans" 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/scans") .header("CORGEA-TOKEN", "<api-key>") .asString();
require 'uri' require 'net/http' url = URI("https://www.corgea.app/api/v1/scans") 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_scans": 123, "scans": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "engine": "corgea", "project": "<string>", "project_id": 123, "created_at": "2023-11-07T05:31:56Z", "repo": "<string>", "branch": "<string>", "status": "scanning", "pull_request_id": "<string>", "git_sha": "<string>", "worktree_dirty": true, "metadata": {}, "source": "api", "triggered_by": { "id": "<string>", "email": "jsmith@example.com", "name": "<string>" }, "ignore_paths": [ "<string>" ] } ] }
{ "error": "Permission denied" }
認証済みユーザーの会社に属するスキャンの一覧を取得します
認証用のAPIキー 無効なユーザーのAPIトークンは拒否されます。
プロジェクト名でスキャンを絞り込みます
リポジトリURLの部分文字列でスキャンを絞り込みます
ブランチ名の完全一致でスキャンを絞り込みます
プルリクエストまたはマージリクエストの識別子の完全一致でスキャンを絞り込みます
完全一致するコミットSHA、またはカンマ区切りで最大50件の異なるコミットSHAを指定してスキャンを絞り込みます。指定したいずれかのSHAに一致するスキャンを返します。空白と空の項目は無視されます。異なるSHAが50件を超えるとHTTP 400を返します。
このメタデータキーを含むスキャンで絞り込みます。metadata_valueと組み合わせると、キーと値の完全一致で絞り込めます。
metadata_keyの値と完全一致で照合します。単独で使用した場合は、スキャンのメタデータ全体を検索します。
スキャンを開始したユーザーで絞り込みます。メールアドレスまたは「current_user」を指定します。
スキャンタイプで絞り込みます。フルスキャンには「full」、選択したファイルのみのスキャンには「partial」を指定します。
full
partial
ページネーションのページ番号
1ページあたりの結果件数
x <= 50
スキャンを正常に取得しました
"ok"
全ページを通じてリクエスト条件に一致するスキャンの総数
Show child attributes
このページは役に立ちましたか?