List the network ranges swept
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/ranges \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/ranges"
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/certificates/ranges', 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/certificates/ranges"
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))
}{
"ranges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cidr": "203.0.113.0/24",
"ports": [
123
],
"protocols": {},
"last_swept_at": "2023-11-07T05:31:56Z",
"last_found": 123,
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"limit": 10,
"max_addresses": 1024,
"default_ports": [
443,
8443,
636,
993,
995,
465
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}List the network ranges swept
Blocks of addresses swept daily for TLS services (and SSH on port 22).
Each address and port is offered the same passive handshake an endpoint
check makes; what completes it becomes an endpoint with source
network. Requires assets:read.
GET
/
certificates
/
ranges
List the network ranges swept
curl --request GET \
--url https://app.trustivan.com/api/v1/certificates/ranges \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/ranges"
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/certificates/ranges', 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/certificates/ranges"
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))
}{
"ranges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cidr": "203.0.113.0/24",
"ports": [
123
],
"protocols": {},
"last_swept_at": "2023-11-07T05:31:56Z",
"last_found": 123,
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
],
"limit": 10,
"max_addresses": 1024,
"default_ports": [
443,
8443,
636,
993,
995,
465
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}