Read the tenant's scanner selection
curl --request GET \
--url https://app.trustivan.com/api/v1/settings/scanners \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/scanners"
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/settings/scanners', 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/settings/scanners"
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"
}Read the tenant's scanner selection
Returns the stored settings AND the deployment defaults for every target kind this deployment can scan. Both, because a client that had only the stored settings could not render what a scan would actually run for an unconfigured kind without hardcoding the backend’s defaults, which is how a dashboard comes to display a scanner set the backend stopped using.
available lists every scanner this deployment’s engines can run.
Only these can be selected; static analysis (sast) is absent from a
deployment running the published image, which carries no analyser.
GET
/
settings
/
scanners
Read the tenant's scanner selection
curl --request GET \
--url https://app.trustivan.com/api/v1/settings/scanners \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/settings/scanners"
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/settings/scanners', 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/settings/scanners"
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 tenant's settings, the deployment defaults and the available scanners.
The response is of type object.