curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/accounts/{id}/posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/accounts/{id}/posture"
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/cloud/accounts/{id}/posture', 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/cloud/accounts/{id}/posture"
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}An account's last posture and its benchmark rollups
What the most recent collection concluded, stored per account and read back here without calling the cloud.
outcomes has one entry per check and resource kind the check covers
for this provider: fail (with how many resources failed), pass
(every resource judged and none failed), no_resources (the evidence
was readable and there was nothing to judge), or not_assessed with a
reason: the collector does not read what the check needs, a read was
refused (see gaps), some resources lacked the attribute (unread),
or the run was partial without naming where. A gap is never reported
as a pass.
gaps names each read the collector was refused or could not finish,
by resource kind, service and region, with a classified reason (an
error code, never a provider message). inventory counts the
resources collected per kind.
benchmarks rolls the outcomes up to the CIS benchmarks for the
account’s provider: a control is failing when any mapped check
failed, passing only when every mapped check passed or had nothing
to judge and at least one passed, not_applicable when none had
anything to judge (an empty service is not a clean one), and otherwise
not_assessed — including every control no automated check covers, and
every control of a run truncated at the resource limit. This is a
configuration result, not an attestation; each benchmark carries the
disclaimer.
next_collection_at is when the scheduled sweep (every six hours) is
next due to re-collect the account. collected is false, and every
list empty, until the first collection.
Behind assets:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/accounts/{id}/posture \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/accounts/{id}/posture"
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/cloud/accounts/{id}/posture', 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/cloud/accounts/{id}/posture"
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))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Response
The account, its last posture, and the benchmark rollups for its provider.