curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/accounts"
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', 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"
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"
}The organization's connected cloud accounts
Includes accounts in every status. degraded is the one worth reading:
an account collecting three of its nine regions looks green on any
dashboard that knows only active and failed, and a clean posture
report from a partial collection is not a clean account.
No credential is returned. An account carries a REFERENCE to a credential the credential service holds, encrypted, and neither the secret nor its identifier is on this surface.
asset_id is the account’s node in the estate graph, present once a
collection has recorded one. It is what a client filters findings by
(GET /findings?asset_id=…) and walks to list what the account
contains.
credential_scheme is how the account authenticates. collecting says
a collection is running, since collection_started_at; a client that
started one polls here until it goes false. scan_function_code says
collection scans the account’s Lambda packages for credentials
(PUT /cloud/accounts/{id}/function-code-scan).
Behind assets:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/accounts"
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', 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"
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"
}Authorizations
Response
The connected accounts with their collection status.