Attack bandwidth
GET
https://api.vpsbg.eu/v1/network-protection/{id}/attacks/{attack_id}/bandwidthThis endpoint returns bandwidth data which can be based per ASN or Protocol.
Request
Path Params
id
integer
required
Your IP Address identificator.
attack_id
string
required
ID of the attack.
Example:
qAEbdFBBluE9bYI
Query Params
type
string
optional
The type parameter defines how to display bandwidth data during an attack. If set to "as", each line shows bandwidth for a specific ASN. If set to "protocol", each line shows bandwidth per protocol. Both options include a total bandwidth line.
Default:
as
Example:
as
Match pattern:
^(as|protocol)$
Request samples
Responses
Bandwidth data for an attack(200)
Bandwidth data for an attack
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
array [object {2}]
required
timestamp
integer
optional
lanes
array [object {3}]
optional
Example
Type: AS
{
"data": [
{
"timestamp": 1727134990,
"lanes": [
{
"name": "112233",
"bandwidth": 0,
"pps": 0
},
{
"name": "112234",
"bandwidth": 0,
"pps": 0
},
{
"name": "112235",
"bandwidth": 0,
"pps": 0
},
{
"name": "total",
"bandwidth": 0,
"pps": 0
}
]
},
{
"timestamp": 1727135000,
"lanes": [
{
"name": "112233",
"bandwidth": 0,
"pps": 0
},
{
"name": "112234",
"bandwidth": 0,
"pps": 0
},
{
"name": "112235",
"bandwidth": 0,
"pps": 0
},
{
"name": "total",
"bandwidth": 0,
"pps": 0
}
]
}
]
}
Last modified: 2 months ago