Search the estate's software inventory
curl --request GET \
--url https://app.trustivan.com/api/v1/components \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/components"
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/components', 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/components"
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"
}Search the estate's software inventory
The query a CVE announcement produces: “where do we have this package?”. Identity is the Package URL, which is the vocabulary a scan, an SBOM export and an SBOM import all already speak.
GET
/
components
Search the estate's software inventory
curl --request GET \
--url https://app.trustivan.com/api/v1/components \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/components"
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/components', 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/components"
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
Query Parameters
A Package URL, with or without a version.
With one (pkg:npm/lodash@4.17.21) this matches that exact
release: the advisory's question, "who is on the vulnerable
version?".
Without one (pkg:npm/lodash) it matches every installation of the
package whatever its version: the question asked before an upgrade
is planned. Requiring a version would make the second unanswerable,
and ignoring one would make the first return every version in the
estate.
Response
Matching components.
The response is of type object.