{
"opencollection": "1.0.0",
"info": {
"name": "Cloud Application Security Account Management Traffic Statistics and Logs API",
"version": "1.0"
},
"request": {
"auth": {
"type": "apikey",
"key": "x-API-Key",
"value": "{{x-API-Key}}",
"placement": "header"
}
},
"items": [
{
"info": {
"name": "Traffic Statistics and Logs",
"type": "folder"
},
"items": [
{
"info": {
"name": "Get Infrastructure Protection Statistics",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://my.imperva.com/api/v1/infra/stats",
"params": [
{
"name": "account_id",
"value": "10",
"type": "query",
"description": "Numeric identifier of the account to operate on.
If not specified, operation will be performed on the account identified by the authentication parameters."
},
{
"name": "ip_prefix",
"value": "1.1.1.0/24",
"type": "query",
"description": "Specific Protected IP or IP range. For example, 1.1.1.0/24."
},
{
"name": "traffic",
"value": "Blocked",
"type": "query",
"description": "Specific traffic. One of: Total, Passed, Blocked."
},
{
"name": "traffic_type",
"value": "TCP",
"type": "query",
"description": "A comma separated list of specific traffic types. Any of: UDP, TCP, DNS, DNS_RESPONSE, ICMP, SYN, FRAG, LARGE_SYN, NTP, NETFLOW, SSDP, GENERAL. Cannot be used together with the pop parameter."
},
{
"name": "pop",
"value": "tko",
"type": "query",
"description": "A comma separated list of specific PoP names. For example: iad, tko. Cannot be used together with the traffic_type parameter. For the list of PoP codes and locations, see Imperva Data Centers (PoPs)."
},
{
"name": "start",
"value": "1610356734",
"type": "query",
"description": "The start date in milliseconds, since 1970.
Some operations require the user to specify a time range. This is done via the time_range parameter, which accepts the following values: