List Container Runtime Insights grouped by image
curl -X GET "https://api.rad.security/accounts/example_string/container_runtime_insights/by_image?cluster_ids=example_string&namespaces=John%20Doe&pod_names=John%20Doe&container_names=John%20Doe&running_only=true&include_states=example_string&exclude_states=example_string&q=example_string&page=25&page_size=25&sort=example_string" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://api.rad.security/accounts/example_string/container_runtime_insights/by_image?cluster_ids=example_string&namespaces=John%20Doe&pod_names=John%20Doe&container_names=John%20Doe&running_only=true&include_states=example_string&exclude_states=example_string&q=example_string&page=25&page_size=25&sort=example_string"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.rad.security/accounts/example_string/container_runtime_insights/by_image?cluster_ids=example_string&namespaces=John%20Doe&pod_names=John%20Doe&container_names=John%20Doe&running_only=true&include_states=example_string&exclude_states=example_string&q=example_string&page=25&page_size=25&sort=example_string", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.rad.security/accounts/example_string/container_runtime_insights/by_image?cluster_ids=example_string&namespaces=John%20Doe&pod_names=John%20Doe&container_names=John%20Doe&running_only=true&include_states=example_string&exclude_states=example_string&q=example_string&page=25&page_size=25&sort=example_string", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.rad.security/accounts/example_string/container_runtime_insights/by_image?cluster_ids=example_string&namespaces=John%20Doe&pod_names=John%20Doe&container_names=John%20Doe&running_only=true&include_states=example_string&exclude_states=example_string&q=example_string&page=25&page_size=25&sort=example_string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"entries": [
{
"accountID": "example_string",
"containerImageDigest": "example_string",
"containerImageNames": [
"John Doe"
],
"containersCount": 10,
"maxCreatedAt": "example_string",
"states": [
"example_string"
]
}
],
"page": 25,
"page_count": 25,
"page_size": 25,
"total_count": 10
}
{
"code": "example_string",
"request_id": "example_string",
"status": 42,
"validation_details": [
{
"code": "example_string",
"field": "example_string",
"message": "example_string",
"param": "example_string"
}
]
}
/accounts/{account_id}/container_runtime_insights/by_imageTarget server for requests. Edit to use your own host.
Bearer token - just enter the token, "Bearer" prefix will be added automatically
Account id
Cluster ids
Kubernetes namespace
Kubernetes Pod name
Container name
Only return insights for Running containers
Comma-separated insight states to include. One of: no_data, capturing_baseline, baseline_captured, drift_detected
Comma-separated insight states to exclude. Takes priority over include_states. One of: no_data, capturing_baseline, baseline_captured, drift_detected
Query string to filter insights
Page number starting from 1
Page size. Default: 50
Sort by field. Default: created_at:desc
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Authentication token required.
Path Parameters
Account id
Query Parameters
Cluster ids
Kubernetes namespace
Kubernetes Pod name
Container name
Only return insights for Running containers
Comma-separated insight states to include. One of: no_data, capturing_baseline, baseline_captured, drift_detected
Comma-separated insight states to exclude. Takes priority over include_states. One of: no_data, capturing_baseline, baseline_captured, drift_detected
Query string to filter insights
Page number starting from 1
Page size. Default: 50
Sort by field. Default: created_at:desc