VirtFusion Global API
  1. Traffic
VirtFusion Global API
  • General
    • Test connection
      GET
  • Hypervisors
    • Retrieve hypervisors
      GET
    • Retrive a Hypervisor
      GET
  • Hypervisor Groups
    • Retrieve hypervisor groups
    • Retrieve a hypervisor group
    • Retrieve a hypervisor groups resources
  • Servers
    • Network
      • Firewall
        • Disable firewall
        • Enable firewall
        • Retrieve firewall
        • Apply firewall rulesets
      • Add an address to the whitelist
      • Remove an address from the whitelist
      • Add a quantity of IPv4 addresses
      • Add an array of IPv4 addresses
      • Remove an array of IPv4 addresses
    • Power
      • Boot a server
      • Shutdown a server
      • Restart a server
      • Poweroff a server
    • Traffic
      • Add a traffic block to a server
        POST
      • Remove a traffic block from a server
        DELETE
      • Retrieve a servers traffic blocks
        GET
    • Retrieve a server
      GET
    • Add, remove or modify a backup plan
      PUT
    • Build a server
      POST
    • Change a server package
      PUT
    • Create a server
      POST
    • Delete a server
      DELETE
    • Retrieve servers
      GET
    • Modify a server name
      PUT
    • Reset a server password
      POST
    • Retrieve a users servers
      GET
    • Retrieve OS templates available to a server
      GET
    • Suspend a server
      POST
    • Throttle a servers CPU
      PUT
    • Retrieve a servers traffic statistics
      GET
    • Unsuspend a server
      POST
    • Enable or disable VNC for a server
      POST
    • Change Owner
      PUT
    • Modify primary traffic allowance
      PUT
  • IP Blocks
    • Add an IPv4 range to an IP block
    • Retrieve IP blocks
    • Retrieve an IP block
  • Backups
    • Retrieve a server backups
  • DNS
    • Retrieve a DNS service
  • Media
    • Retrieve an ISO
    • Retrieve operating system templates that are available for a package
  • Packages
    • Retrieve packages
    • Retrieve a packge
  • Queue & Tasks
    • Retrieve a queue item
  • SSH Keys
    • Add an SSH key to a user account
    • Delete an SSH key from a user
    • Retrieve a users SSH keys
    • Retrieve an SSH key
  • Users
    • External Relational ID
      • Delete a user
      • Generate a set of login tokens
      • Generate a set of loging tokens using a server ID
      • Modify a user
      • Change a user passowrd
      • Retrieve a user
    • Create a user
  • Self Service
    • External Relational ID
      • Add credit to user
      • Add an hourly group profile to a user
      • Add a resource group profile to a user
      • Add a resource pack to a user
      • Retrieve hourly statistics
      • Modify user access
      • Remove hourly group profile from a user
      • Remove resource group from a user
      • Generate a report
      • Set an hourly resource pack
      • Retrieve a users usage
    • Cancel credit that was applied to a user
    • Delete all servers attached to a pack ID
    • Delete a user resource pack
    • Retrieve a user resource pack
    • Modify user resource pack
    • Retrieve currencies
    • Suspend all servers assigned to a reosurce pack
    • Unsuspend all servers assigned to a reosurce pack
  1. Traffic

Retrieve a servers traffic blocks

Developing
GET
/servers/{serverId}/traffic/blocks

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "month": 0,
    "amount": 0
}

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 '/servers/69/traffic/blocks' \
--header 'Content-Type: application/json' \
--data-raw '{
    "month": 0,
    "amount": 0
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "assigned": [
            {
                "id": 2,
                "current": false,
                "month": 2,
                "traffic": 100,
                "start": "2025-02-20 00:00:00",
                "end": "2025-03-19 23:59:59",
                "added": "2025-01-20T15:08:15.000000Z"
            }
        ],
        "available": {
            "total": 25,
            "current": {
                "month": 1,
                "start": "2025-01-20 00:00:00",
                "end": "2025-02-19 23:59:59"
            },
            "months": {
                "1": {
                    "month": 1,
                    "start": "2025-01-20 00:00:00",
                    "end": "2025-02-19 23:59:59"
                },
                "2": {
                    "month": 2,
                    "start": "2025-02-20 00:00:00",
                    "end": "2025-03-19 23:59:59"
                },
                "3": {
                    "month": 3,
                    "start": "2025-03-20 00:00:00",
                    "end": "2025-04-19 23:59:59"
                },
                "4": {
                    "month": 4,
                    "start": "2025-04-20 00:00:00",
                    "end": "2025-05-19 23:59:59"
                },
                "5": {
                    "month": 5,
                    "start": "2025-05-20 00:00:00",
                    "end": "2025-06-19 23:59:59"
                },
                "6": {
                    "month": 6,
                    "start": "2025-06-20 00:00:00",
                    "end": "2025-07-19 23:59:59"
                },
                "7": {
                    "month": 7,
                    "start": "2025-07-20 00:00:00",
                    "end": "2025-08-19 23:59:59"
                },
                "8": {
                    "month": 8,
                    "start": "2025-08-20 00:00:00",
                    "end": "2025-09-19 23:59:59"
                },
                "9": {
                    "month": 9,
                    "start": "2025-09-20 00:00:00",
                    "end": "2025-10-19 23:59:59"
                },
                "10": {
                    "month": 10,
                    "start": "2025-10-20 00:00:00",
                    "end": "2025-11-19 23:59:59"
                },
                "11": {
                    "month": 11,
                    "start": "2025-11-20 00:00:00",
                    "end": "2025-12-19 23:59:59"
                },
                "12": {
                    "month": 12,
                    "start": "2025-12-20 00:00:00",
                    "end": "2026-01-19 23:59:59"
                },
                "13": {
                    "month": 13,
                    "start": "2026-01-20 00:00:00",
                    "end": "2026-02-19 23:59:59"
                },
                "14": {
                    "month": 14,
                    "start": "2026-02-20 00:00:00",
                    "end": "2026-03-19 23:59:59"
                },
                "15": {
                    "month": 15,
                    "start": "2026-03-20 00:00:00",
                    "end": "2026-04-19 23:59:59"
                },
                "16": {
                    "month": 16,
                    "start": "2026-04-20 00:00:00",
                    "end": "2026-05-19 23:59:59"
                },
                "17": {
                    "month": 17,
                    "start": "2026-05-20 00:00:00",
                    "end": "2026-06-19 23:59:59"
                },
                "18": {
                    "month": 18,
                    "start": "2026-06-20 00:00:00",
                    "end": "2026-07-19 23:59:59"
                },
                "19": {
                    "month": 19,
                    "start": "2026-07-20 00:00:00",
                    "end": "2026-08-19 23:59:59"
                },
                "20": {
                    "month": 20,
                    "start": "2026-08-20 00:00:00",
                    "end": "2026-09-19 23:59:59"
                },
                "21": {
                    "month": 21,
                    "start": "2026-09-20 00:00:00",
                    "end": "2026-10-19 23:59:59"
                },
                "22": {
                    "month": 22,
                    "start": "2026-10-20 00:00:00",
                    "end": "2026-11-19 23:59:59"
                },
                "23": {
                    "month": 23,
                    "start": "2026-11-20 00:00:00",
                    "end": "2026-12-19 23:59:59"
                },
                "24": {
                    "month": 24,
                    "start": "2026-12-20 00:00:00",
                    "end": "2027-01-19 23:59:59"
                },
                "25": {
                    "month": 25,
                    "start": "2027-01-20 00:00:00",
                    "end": "2027-02-19 23:59:59"
                }
            }
        }
    }
}
🟠401401
Modified at 2025-01-20 21:49:10
Previous
Remove a traffic block from a server
Next
Retrieve a server
Built with