curl --request GET \
--url https://app.trustivan.com/api/v1/assets/{id}/runtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/assets/{id}/runtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/assets/{id}/runtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/assets/{id}/runtime"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"role": "image",
"truncated": true,
"placements": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "kubernetes",
"location": "<string>",
"location_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workload": "<string>",
"workload_name": "<string>",
"image": "<string>",
"internet_exposed": true,
"exposure_known": true,
"privileged": true,
"host_network": true,
"last_seen_at": "2023-11-07T05:31:56Z",
"digest_differs": true,
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"workload_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"container": "<string>",
"digest": "<string>",
"exposure": "<string>",
"image_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image_name": "<string>",
"match": "digest"
}
],
"detections": {
"days": 123,
"events": 123,
"repeats": 123,
"by_severity": {},
"rules": [
{
"rule": "<string>",
"severity": "<string>",
"events": 123
}
],
"last_seen_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Where an image runs, or what a workload runs
Code to cloud, from the running-image index. For a container image:
every running container matched to it, by digest (the running build is
the scanned one, including a platform manifest of a scanned multi-arch
index) or by tag only, which is weaker evidence; digest_differs
marks a tag match whose running digest is not the scanned one. For a
Kubernetes workload or cloud resource: the images it runs, each with
its matched image’s open findings by severity. For a cluster or cloud
account: everything running there. At most 200 placements;
truncated says when there were more.
detections summarises the runtime sensor’s events of the last 7
days that ran this image, happened in this workload or in this
cluster: counts by severity, repeats, the last time and the top five
rules. An image’s findings are read with it (“observed suspicious
runtime behaviour”), and their risk explanation’s running factor
names critical and high detections (no points).
curl --request GET \
--url https://app.trustivan.com/api/v1/assets/{id}/runtime \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/assets/{id}/runtime"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/assets/{id}/runtime', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/assets/{id}/runtime"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"role": "image",
"truncated": true,
"placements": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "kubernetes",
"location": "<string>",
"location_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workload": "<string>",
"workload_name": "<string>",
"image": "<string>",
"internet_exposed": true,
"exposure_known": true,
"privileged": true,
"host_network": true,
"last_seen_at": "2023-11-07T05:31:56Z",
"digest_differs": true,
"critical": 123,
"high": 123,
"medium": 123,
"low": 123,
"workload_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"namespace": "<string>",
"container": "<string>",
"digest": "<string>",
"exposure": "<string>",
"image_asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"image_name": "<string>",
"match": "digest"
}
],
"detections": {
"days": 123,
"events": 123,
"repeats": 123,
"by_severity": {},
"rules": [
{
"rule": "<string>",
"severity": "<string>",
"events": 123
}
],
"last_seen_at": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The asset's placements.