VPSBG's dev hub
HomePricingKnowledge BaseContact us
HomePricingKnowledge BaseContact us
  1. Network Protection
  • 👋 Hello
  • API Introduction
    • API Introduction
    • How to generate API key?
  • API Reference
    • User
      • 2FA
        • Get 2FA secret key
        • Enable 2FA
        • Disable 2FA
      • Update user
      • Get account information
    • Balance
      • Get Balance
      • Deposit funds
      • List balance transactions
    • Affiliate
      • Get affiliate information
      • List conversions
      • List payouts
      • Activate affiliate program
      • Update referral code
    • Invoices
      • List invoices
      • Download an invoice
      • Download invoices
    • Support
      • Tickets
        • List tickets
        • List departments
        • List related services
        • Get a ticket
        • Create new ticket
        • Reply to ticket
        • Mark ticket as resolved
        • Download attachment
      • List plans
      • Purchase support plan
      • Renew support plan
      • Cancel support plan
      • Undo cancel request
    • SSH Keys
      • Get an SSH Key
      • Update SSH Key
      • Delete SSH Key
      • List SSH keys
      • Add SSH Key
    • Servers
      • Scale
        • List plans
        • Calculate scale cost
        • Scale a server
      • Addons
        • List available addons
        • Scale addons
        • Calculate scale cost
        • Purchase new addons
        • Cancel addon
        • Undo cancel request
      • Rescue
        • Enable rescue mode
        • Disable rescue mode
      • List plans
      • List servers
      • Server status
      • Get a server
      • Server metrics
      • Bandwidth
      • Deploy new server
      • Start a server
      • Restart a server
      • Stop a server
      • Power off
      • Cancel server
      • Undo cancel request
      • Change password
      • Update hostname
      • Update SSH Keys
      • Modify ISOs
      • Restore
      • Renew server
      • Reinstall Server
      • Change Primary IP
      • Calculate renew amount
    • Plans
      • Plan addon
      • Plan promo-codes
    • Snapshots
      • List snapshots
      • Delete snapshot
    • Backups
      • List backups
      • Delete backup
    • Server Images
      • List server images
    • Floating IPs
      • List Floating IPs
      • Plans
      • Purchase Floating IPs
      • Attach Floating IP
      • Detach Floating IP
      • Cancel Floating IP
      • Delete Floating IP Cancellation
    • IP Addresses
      • Update IP address
    • Network Protection
      • Geo filter
        • Get current geo filter
        • Set geo filter
        • Update geo filter
        • Delete geo filter
      • Whitelist
        • Get status and list of IPs
        • Whitelist IP addresses
        • Update IP addresses list
        • Delete all rules
      • Blacklist
        • Get status and list of IPs
        • Blacklist IP addresses
        • Update IP addresses list
        • Delete all rules
      • General information
        GET
      • Bandwidth
        GET
      • List blocked IPs
        GET
      • List attacks
        GET
      • Get an attack
        GET
      • Attack bandwidth
        GET
    • Orders
      • List orders
      • Get an order
      • Delete order
      • Pay orders
      • Update order
      • Change renewal period
    • ISOs
      • Get an ISO
      • Delete an ISO
      • List ISOs
      • Add ISO
  1. Network Protection

Get an attack

GET
https://api.vpsbg.eu/v1/network-protection/{id}/attacks/{attack_id}
This endpoint return more information about a single attack.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
Your IP Address identificator.
attack_id
string 
required
The ID of the attack.
Example:
Ws8PeaCFn4bZ4Rf
Header Params
Accept
string 
required
Default:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.vpsbg.eu/v1/network-protection//attacks/Ws8PeaCFn4bZ4Rf' \
--header 'Accept;'

Responses

🟢200Attack information
application/json
Body
id
string 
required
ongoing
boolean 
required
started_at
string 
required
ended_at
string 
required
detector
string 
required
severity
string 
required
reason
string 
required
description
string 
required
peak_bandwidth
number 
required
Bandwidth rate in Mbps.
peak_pps
integer 
required
initial_bandwidth
number 
required
Bandwidth rate in Mbps.
initial_pps
integer 
required
top_protocols
array [object {6}] 
required
name
string 
required
number
integer 
required
peak_bandwidth
number 
required
Bandwidth rate in Mbps.
peak_pps
integer 
required
total_bandwidth
number 
required
Total bandwidth in MBs.
total_pps
integer 
required
top_source_asns
array [object {7}] 
required
asn
integer 
required
name
string 
required
country
string 
required
peak_bandwidth
number 
required
Bandwidth rate in Mbps.
peak_pps
integer 
required
total_bandwidth
number 
required
Total bandwidth in MBs.
total_pps
integer 
required
top_source_ips
array [object {6}] 
required
ip
string 
required
country
string 
required
peak_bandwidth
number 
required
Bandwidth rate in Mbps.
peak_pps
integer 
required
total_bandwidth
number 
required
Total bandwidth in MBs.
total_pps
integer 
required
top_ports
object 
required
tcp
object 
required
udp
object 
required
Example
{
    "id": "qAEbdFBBluE9bYI",
    "ongoing": false,
    "started_at": "2024-09-23T23:53:15.000Z",
    "ended_at": "2024-09-24T00:10:30.000Z",
    "detector": "BPS_LIMIT",
    "severity": "middle",
    "reason": "BPS threshold 50.000M is exceeded (1.214G)",
    "description": "UDP ANY:123 to ANY:[0-65535]",
    "peak_bandwidth": 23197.292503,
    "peak_pps": 3142007,
    "initial_bandwidth": 1303.609805,
    "initial_pps": 333925,
    "top_protocols": [
        {
            "name": "UDP",
            "number": 17,
            "peak_bandwidth": 23189.467506,
            "peak_pps": 3133817,
            "total_bandwidth": 508192.7870976925,
            "total_pps": 585964930
        },
        {
            "name": "ICMP",
            "number": 1,
            "peak_bandwidth": 35.441862,
            "peak_pps": 37674,
            "total_bandwidth": 387.12491393089294,
            "total_pps": 3718260
        },
        {
            "name": "TCP",
            "number": 6,
            "peak_bandwidth": 92.930048,
            "peak_pps": 8192,
            "total_bandwidth": 346.7187428474426,
            "total_pps": 384970
        }
    ],
    "top_source_asns": [
        {
            "asn": 112233,
            "name": "Example ASN",
            "country": "US",
            "peak_bandwidth": 693.633024,
            "peak_pps": 176945,
            "total_bandwidth": 12959.156248569489,
            "total_pps": 27688560
        },
        {
            "asn": 115533,
            "name": "Example ASN",
            "country": "XX",
            "peak_bandwidth": 805.594712,
            "peak_pps": 78624,
            "total_bandwidth": 12542.874765396118,
            "total_pps": 9991800
        },
        {
            "asn": 118899,
            "name": "Example ASN",
            "country": "XX",
            "peak_bandwidth": 710.344685,
            "peak_pps": 65520,
            "total_bandwidth": 9580.390356779099,
            "total_pps": 7993440
        }
    ],
    "top_source_ips": [
        {
            "ip": "10.10.10.10",
            "country": "XX",
            "peak_bandwidth": 333.971456,
            "peak_pps": 85196,
            "total_bandwidth": 7150.9375,
            "total_pps": 15302540
        },
        {
            "ip": "10.10.10.10",
            "country": "XX",
            "peak_bandwidth": 333.971456,
            "peak_pps": 85196,
            "total_bandwidth": 7150.9375,
            "total_pps": 15302540
        }
    ],
    "top_ports": {
        "tcp": {
            "source": [
                {
                    "port": 0,
                    "name": "Fragmented",
                    "peak_bandwidth": 35.441862,
                    "peak_pps": 37674,
                    "total_bandwidth": 387.12491393089294,
                    "total_pps": 3718260
                },
                {
                    "port": 45316,
                    "name": "Unassigned",
                    "peak_bandwidth": 92.930048,
                    "peak_pps": 8192,
                    "total_bandwidth": 332.3437476158142,
                    "total_pps": 245740
                },
                {
                    "port": 13021,
                    "name": "Unassigned",
                    "peak_bandwidth": 4.430233,
                    "peak_pps": 1638,
                    "total_bandwidth": 5.281249284744263,
                    "total_pps": 16380
                },
                {
                    "port": 42958,
                    "name": "Unassigned",
                    "peak_bandwidth": 1.939865,
                    "peak_pps": 3276,
                    "total_bandwidth": 2.3124992847442627,
                    "total_pps": 32760
                },
                {
                    "port": 5512,
                    "name": "Unassigned",
                    "peak_bandwidth": 1.808793,
                    "peak_pps": 1638,
                    "total_bandwidth": 2.1562492847442627,
                    "total_pps": 16380
                },
                {
                    "port": 29989,
                    "name": "Unassigned",
                    "peak_bandwidth": 1.677721,
                    "peak_pps": 3276,
                    "total_bandwidth": 1.9999992847442627,
                    "total_pps": 32760
                },
                {
                    "port": 47984,
                    "name": "Unassigned",
                    "peak_bandwidth": 0.917504,
                    "peak_pps": 1638,
                    "total_bandwidth": 1.09375,
                    "total_pps": 16380
                },
                {
                    "port": 48290,
                    "name": "Unassigned",
                    "peak_bandwidth": 0.83886,
                    "peak_pps": 1638,
                    "total_bandwidth": 0.9999990463256836,
                    "total_pps": 16380
                },
                {
                    "port": 40491,
                    "name": "Unassigned",
                    "peak_bandwidth": 0.445644,
                    "peak_pps": 819,
                    "total_bandwidth": 0.5312490463256836,
                    "total_pps": 8190
                }
            ],
            "destination": [
                {
                    "port": 0,
                    "name": "Fragmented",
                    "peak_bandwidth": 35.441862,
                    "peak_pps": 37674,
                    "total_bandwidth": 387.12491393089294,
                    "total_pps": 3718260
                },
                {
                    "port": 443,
                    "name": "http protocol over TLS/SSL",
                    "peak_bandwidth": 92.930048,
                    "peak_pps": 8192,
                    "total_bandwidth": 346.7187428474426,
                    "total_pps": 384970
                }
            ]
        },
        "udp": {
            "source": [
                {
                    "port": 53,
                    "name": "Domain Name Server",
                    "peak_bandwidth": 7863.743086,
                    "peak_pps": 681408,
                    "total_bandwidth": 163682.16766238213,
                    "total_pps": 120876220
                },
                {
                    "port": 123,
                    "name": "Network Time Protocol",
                    "peak_bandwidth": 5970.01501,
                    "peak_pps": 1526939,
                    "total_bandwidth": 135808.62453579903,
                    "total_pps": 291591750
                },
                {
                    "port": 46,
                    "name": "MPM [default send]",
                    "peak_bandwidth": 422.418832,
                    "peak_pps": 36036,
                    "total_bandwidth": 7032.5154531002045,
                    "total_pps": 4963140
                },
                {
                    "port": 0,
                    "name": "Fragmented",
                    "peak_bandwidth": 285.068485,
                    "peak_pps": 26208,
                    "total_bandwidth": 4161.453020572662,
                    "total_pps": 3177720
                },
                {
                    "port": 256,
                    "name": "RAP",
                    "peak_bandwidth": 150.33958,
                    "peak_pps": 16380,
                    "total_bandwidth": 2350.2968072891235,
                    "total_pps": 1998360
                },
                {
                    "port": 49164,
                    "name": "Unassigned",
                    "peak_bandwidth": 165.517718,
                    "peak_pps": 14742,
                    "total_bandwidth": 1747.0780801773071,
                    "total_pps": 1343160
                },
                {
                    "port": 48,
                    "name": "Digital Audit Daemon",
                    "peak_bandwidth": 138.910103,
                    "peak_pps": 11466,
                    "total_bandwidth": 1380.0937175750732,
                    "total_pps": 1048320
                },
                {
                    "port": 57431,
                    "name": "Unassigned",
                    "peak_bandwidth": 139.644106,
                    "peak_pps": 11466,
                    "total_bandwidth": 1377.656215429306,
                    "total_pps": 966420
                },
                {
                    "port": 3072,
                    "name": "ContinuStor Monitor Port",
                    "peak_bandwidth": 112.105879,
                    "peak_pps": 9828,
                    "total_bandwidth": 1232.2812187671661,
                    "total_pps": 900900
                },
                {
                    "port": 6,
                    "name": "Unassigned",
                    "peak_bandwidth": 118.751229,
                    "peak_pps": 9828,
                    "total_bandwidth": 1171.343721151352,
                    "total_pps": 819000
                }
            ],
            "destination": [
                {
                    "port": 53,
                    "name": "Domain Name Server",
                    "peak_bandwidth": 13831.63473,
                    "peak_pps": 2205071,
                    "total_bandwidth": 299532.4796962738,
                    "total_pps": 412435210
                },
                {
                    "port": 1,
                    "name": "TCP Port Service Multiplexer",
                    "peak_bandwidth": 518.101389,
                    "peak_pps": 44226,
                    "total_bandwidth": 9910.015383958817,
                    "total_pps": 7059780
                },
                {
                    "port": 21600,
                    "name": "Unassigned",
                    "peak_bandwidth": 190.998114,
                    "peak_pps": 16380,
                    "total_bandwidth": 1984.1874539852142,
                    "total_pps": 1506960
                },
                {
                    "port": 0,
                    "name": "Fragmented",
                    "peak_bandwidth": 110.939338,
                    "peak_pps": 9828,
                    "total_bandwidth": 1749.8124611377716,
                    "total_pps": 1425060
                },
                {
                    "port": 1793,
                    "name": "rsc-robot",
                    "peak_bandwidth": 156.919395,
                    "peak_pps": 13104,
                    "total_bandwidth": 1689.4374573230743,
                    "total_pps": 1228500
                },
                {
                    "port": 33954,
                    "name": "Unassigned",
                    "peak_bandwidth": 139.644106,
                    "peak_pps": 11466,
                    "total_bandwidth": 1377.656215429306,
                    "total_pps": 966420
                },
                {
                    "port": 256,
                    "name": "RAP",
                    "peak_bandwidth": 111.883057,
                    "peak_pps": 13104,
                    "total_bandwidth": 1373.0468428134918,
                    "total_pps": 1162980
                },
                {
                    "port": 84,
                    "name": "Common Trace Facility",
                    "peak_bandwidth": 114.753533,
                    "peak_pps": 9828,
                    "total_bandwidth": 1099.3280947208405,
                    "total_pps": 933660
                },
                {
                    "port": 27648,
                    "name": "Unassigned",
                    "peak_bandwidth": 105.381885,
                    "peak_pps": 9828,
                    "total_bandwidth": 1083.218721151352,
                    "total_pps": 900900
                },
                {
                    "port": 46,
                    "name": "MPM [default send]",
                    "peak_bandwidth": 99.640932,
                    "peak_pps": 8190,
                    "total_bandwidth": 998.859349489212,
                    "total_pps": 786240
                }
            ]
        }
    }
}
🟠401Unauthorized
🟠422Validation error (specified in the response)
🔴500Server Error
Modified at 2025-06-20 08:57:05
Previous
List attacks
Next
Attack bandwidth
Built with