curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/providers \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/providers"
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/providers', 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/providers"
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 cloud providers this deployment can collect
What THIS deployment can collect, which is not the same as what
TRUSTIVAN’s vocabulary defines. A picker built from the vocabulary would
offer a provider that can be connected and never read, the
declared-but-unreachable pattern that made cloud_account a scan
target no engine could scan.
A deployment with no collector for a provider returns an empty list
rather than naming it, and POST /cloud/accounts answers 501 for one.
Each provider carries its coverage: the resource kinds its collector
reads (collected) and those it does not, each with the reason
(not_collected). An empty result for a kind that is not collected
means it was never looked at, not that there is none.
AWS also carries role_assumption: whether this deployment can assume
a role in a customer’s account. A role is assumed with the deployment’s
own AWS identity, so available is false, with a reason, where it
has none, and a role connection is then refused. When it is true,
principal is what the role’s trust policy must name.
Behind assets:read.
curl --request GET \
--url https://app.trustivan.com/api/v1/cloud/providers \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/cloud/providers"
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/providers', 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/providers"
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 providers with a working collector, sorted, each with what it does and does not collect.