Upload Threat Blocker traffic v2
curl --request POST \
--url https://app.aegister.com/api/v1/atb/{id}/traffic-v2 \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"date": 123,
"start_ts": 123,
"end_ts": 123,
"total_requests": 123,
"malicious_requests": 123,
"log_messages": [
{}
]
}
'import requests
url = "https://app.aegister.com/api/v1/atb/{id}/traffic-v2"
payload = {
"date": 123,
"start_ts": 123,
"end_ts": 123,
"total_requests": 123,
"malicious_requests": 123,
"log_messages": [{}]
}
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: 123,
start_ts: 123,
end_ts: 123,
total_requests: 123,
malicious_requests: 123,
log_messages: [{}]
})
};
fetch('https://app.aegister.com/api/v1/atb/{id}/traffic-v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aegister.com/api/v1/atb/{id}/traffic-v2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date' => 123,
'start_ts' => 123,
'end_ts' => 123,
'total_requests' => 123,
'malicious_requests' => 123,
'log_messages' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/atb/{id}/traffic-v2"
payload := strings.NewReader("{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aegister.com/api/v1/atb/{id}/traffic-v2")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/atb/{id}/traffic-v2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"inserted": 123
}Log di traffico
Carica il traffico Threat Blocker v2
Acquisisce le voci di log di traffico nell’indice Elasticsearch per un dispositivo Threat Blocker.
POST
/
api
/
v1
/
atb
/
{id}
/
traffic-v2
Upload Threat Blocker traffic v2
curl --request POST \
--url https://app.aegister.com/api/v1/atb/{id}/traffic-v2 \
--header 'Content-Type: application/json' \
--header 'X-Aegister-Token: <api-key>' \
--data '
{
"date": 123,
"start_ts": 123,
"end_ts": 123,
"total_requests": 123,
"malicious_requests": 123,
"log_messages": [
{}
]
}
'import requests
url = "https://app.aegister.com/api/v1/atb/{id}/traffic-v2"
payload = {
"date": 123,
"start_ts": 123,
"end_ts": 123,
"total_requests": 123,
"malicious_requests": 123,
"log_messages": [{}]
}
headers = {
"X-Aegister-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Aegister-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: 123,
start_ts: 123,
end_ts: 123,
total_requests: 123,
malicious_requests: 123,
log_messages: [{}]
})
};
fetch('https://app.aegister.com/api/v1/atb/{id}/traffic-v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.aegister.com/api/v1/atb/{id}/traffic-v2",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'date' => 123,
'start_ts' => 123,
'end_ts' => 123,
'total_requests' => 123,
'malicious_requests' => 123,
'log_messages' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Aegister-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.aegister.com/api/v1/atb/{id}/traffic-v2"
payload := strings.NewReader("{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Aegister-Token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aegister.com/api/v1/atb/{id}/traffic-v2")
.header("X-Aegister-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aegister.com/api/v1/atb/{id}/traffic-v2")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Aegister-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"date\": 123,\n \"start_ts\": 123,\n \"end_ts\": 123,\n \"total_requests\": 123,\n \"malicious_requests\": 123,\n \"log_messages\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"inserted": 123
}Autorizzazioni
ApiKeyAuthApiKeyQueryParam
Parametri del percorso
Corpo
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Timestamp of the log batch.
Start timestamp of the window.
End timestamp of the window.
Total number of requests in this window.
Number of malicious requests detected.
Array of traffic log entries with src_ip, dst_ip, action, timestamp, traffic_direction, src_port, dst_port, fw_rule, malicious, score fields.
Show child attributes
Show child attributes
⌘I

