Check an endpoint now
curl --request POST \
--url https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check', 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/endpoints/{id}/check"
req, _ := http.NewRequest("POST", 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))
}{
"endpoint": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"protocol": "",
"source": "manual",
"source_ref": "<string>",
"problems": [
"<string>"
],
"legacy_tls": true,
"cipher_grade": "",
"cipher_suites": [
{
"version": "TLS 1.2",
"suites": [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
],
"incomplete": true
}
],
"ssh_host_keys": [
{
"type": "ssh-ed25519",
"bits": 123,
"sha256": "SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s"
}
],
"caa_found": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"certificate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Check an endpoint now
Runs the endpoint’s check immediately. Requires scans:create.
POST
/
certificates
/
endpoints
/
{id}
/
check
Check an endpoint now
curl --request POST \
--url https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/certificates/endpoints/{id}/check', 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/endpoints/{id}/check"
req, _ := http.NewRequest("POST", 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))
}{
"endpoint": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"host": "<string>",
"port": 123,
"protocol": "",
"source": "manual",
"source_ref": "<string>",
"problems": [
"<string>"
],
"legacy_tls": true,
"cipher_grade": "",
"cipher_suites": [
{
"version": "TLS 1.2",
"suites": [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
],
"incomplete": true
}
],
"ssh_host_keys": [
{
"type": "ssh-ed25519",
"bits": 123,
"sha256": "SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s"
}
],
"caa_found": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"asset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"certificate_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}