Get Container Scan Vulnerabilities
curl --request POST \
--url https://api.codeant.ai/api/cloud/container-scanning/results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "github",
"org": "Example-Org",
"cloud": "aws",
"scan_id": "aB3xK9mP2q"
}
'import requests
url = "https://api.codeant.ai/api/cloud/container-scanning/results"
payload = {
"platform": "github",
"org": "Example-Org",
"cloud": "aws",
"scan_id": "aB3xK9mP2q"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({platform: 'github', org: 'Example-Org', cloud: 'aws', scan_id: 'aB3xK9mP2q'})
};
fetch('https://api.codeant.ai/api/cloud/container-scanning/results', 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://api.codeant.ai/api/cloud/container-scanning/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'platform' => 'github',
'org' => 'Example-Org',
'cloud' => 'aws',
'scan_id' => 'aB3xK9mP2q'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.codeant.ai/api/cloud/container-scanning/results"
payload := strings.NewReader("{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.codeant.ai/api/cloud/container-scanning/results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.codeant.ai/api/cloud/container-scanning/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}"
response = http.request(request)
puts response.read_body{
"scan_id": "<string>",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"repositories": [
{}
],
"findings": [
{
"uid": "<string>",
"image": "<string>",
"kind": "os-pkgs",
"target": "debian 12.5",
"id": "CVE-2024-12345",
"package": "libssl3",
"severity": "critical",
"installed_version": "3.0.11-1",
"fixed_version": "3.0.13-1",
"title": "openssl: denial of service via crafted certificate",
"primary_url": "https://avd.aquasec.com/nvd/cve-2024-12345",
"epss_details": {},
"public_exploit": {}
}
]
}{
"error": "<string>"
}{
"error": "scan not found"
}Get Container Scan Vulnerabilities
Returns the vulnerability findings of a container scan — the list displayed in the CodeAnt UI — including CVE id, affected package, installed/fixed versions, severity, EPSS enrichment, and public-exploit references. While the scan is still running the response carries its status without findings.
POST
/
api
/
cloud
/
container-scanning
/
results
Get Container Scan Vulnerabilities
curl --request POST \
--url https://api.codeant.ai/api/cloud/container-scanning/results \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "github",
"org": "Example-Org",
"cloud": "aws",
"scan_id": "aB3xK9mP2q"
}
'import requests
url = "https://api.codeant.ai/api/cloud/container-scanning/results"
payload = {
"platform": "github",
"org": "Example-Org",
"cloud": "aws",
"scan_id": "aB3xK9mP2q"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({platform: 'github', org: 'Example-Org', cloud: 'aws', scan_id: 'aB3xK9mP2q'})
};
fetch('https://api.codeant.ai/api/cloud/container-scanning/results', 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://api.codeant.ai/api/cloud/container-scanning/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'platform' => 'github',
'org' => 'Example-Org',
'cloud' => 'aws',
'scan_id' => 'aB3xK9mP2q'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.codeant.ai/api/cloud/container-scanning/results"
payload := strings.NewReader("{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.codeant.ai/api/cloud/container-scanning/results")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.codeant.ai/api/cloud/container-scanning/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"platform\": \"github\",\n \"org\": \"Example-Org\",\n \"cloud\": \"aws\",\n \"scan_id\": \"aB3xK9mP2q\"\n}"
response = http.request(request)
puts response.read_body{
"scan_id": "<string>",
"status": "completed",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"repositories": [
{}
],
"findings": [
{
"uid": "<string>",
"image": "<string>",
"kind": "os-pkgs",
"target": "debian 12.5",
"id": "CVE-2024-12345",
"package": "libssl3",
"severity": "critical",
"installed_version": "3.0.11-1",
"fixed_version": "3.0.13-1",
"title": "openssl: denial of service via crafted certificate",
"primary_url": "https://avd.aquasec.com/nvd/cve-2024-12345",
"epss_details": {},
"public_exploit": {}
}
]
}{
"error": "<string>"
}{
"error": "scan not found"
}Authorizations
Body
application/json