VirtFusion Global API
  1. IP Blocks
VirtFusion Global API
  • General
    • Test connection
      GET
  • Hypervisors
    • Retrieve hypervisors
      GET
    • Retrive a Hypervisor
      GET
  • Hypervisor Groups
    • Retrieve hypervisor groups
      GET
    • Retrieve a hypervisor group
      GET
    • Retrieve a hypervisor groups resources
      GET
  • 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
      • Remove a traffic block from a server
      • Retrieve a servers traffic blocks
    • 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
      POST
    • Retrieve IP blocks
      GET
    • Retrieve an IP block
      GET
  • 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. IP Blocks

Retrieve IP blocks

Developing
GET
/connectivity/ipblocks

Request

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

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 '/connectivity/ipblocks?results'

Responses

🟢200Success
application/json
Body

Example
{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "type": 4,
            "name": "192.168.4.0/23",
            "ipv4": {
                "gateway": "192.168.4.1",
                "netmask": "255.255.254.0",
                "resolvers": {
                    "primary": "8.8.8.8",
                    "secondary": "8.8.4.4"
                },
                "total": 521,
                "usedTotal": 21,
                "freeTotal": 500
            },
            "ipv6": {
                "gateway": null,
                "resolvers": {
                    "primary": null,
                    "secondary": null
                },
                "subnet": null,
                "from": 48,
                "to": 64,
                "restricted": [],
                "total": 0,
                "generatedTotal": 0,
                "usedTotal": 0,
                "freeTotal": 0,
                "freeGenerated": 0,
                "blacklistedTotal": 0
            },
            "rdnsType": 0,
            "rdnsZoneId": null,
            "networkProfile": 0,
            "routeBlock": null,
            "dhcp": 1,
            "enabled": true,
            "created": "2024-03-12T22:40:23+00:00",
            "updated": "2024-12-06T21:53:15+00:00"
        },
        {
            "id": 2,
            "type": 6,
            "name": "PDNS TEST",
            "ipv4": {
                "gateway": null,
                "netmask": null,
                "resolvers": {
                    "primary": null,
                    "secondary": null
                },
                "total": 0,
                "usedTotal": 0,
                "freeTotal": 0
            },
            "ipv6": {
                "gateway": "2a03:3a61:a1::1",
                "resolvers": {
                    "primary": "2001:4860:4860::8888",
                    "secondary": "2001:4860:4860::8844"
                },
                "subnet": "2a03:3a61:a1::",
                "from": 48,
                "to": 64,
                "restricted": [],
                "total": 65535,
                "generatedTotal": 300,
                "usedTotal": 0,
                "freeTotal": 65535,
                "freeGenerated": 300,
                "blacklistedTotal": 0
            },
            "rdnsType": 2,
            "rdnsZoneId": 1,
            "networkProfile": 0,
            "routeBlock": null,
            "dhcp": 1,
            "enabled": true,
            "created": "2024-04-26T11:41:41+00:00",
            "updated": "2024-12-31T10:23:33+00:00"
        },
        {
            "id": 3,
            "type": 4,
            "name": "192.168.30.200-240",
            "ipv4": {
                "gateway": "192.168.30.1",
                "netmask": "255.255.255.0",
                "resolvers": {
                    "primary": "8.8.8.8",
                    "secondary": "8.8.4.4"
                },
                "total": 41,
                "usedTotal": 8,
                "freeTotal": 33
            },
            "ipv6": {
                "gateway": null,
                "resolvers": {
                    "primary": null,
                    "secondary": null
                },
                "subnet": null,
                "from": 48,
                "to": 64,
                "restricted": [],
                "total": 0,
                "generatedTotal": 0,
                "usedTotal": 0,
                "freeTotal": 0,
                "freeGenerated": 0,
                "blacklistedTotal": 0
            },
            "rdnsType": 0,
            "rdnsZoneId": null,
            "networkProfile": 0,
            "routeBlock": null,
            "dhcp": 1,
            "enabled": true,
            "created": "2024-05-14T10:43:52+00:00",
            "updated": "2024-05-14T10:44:25+00:00"
        },
        {
            "id": 4,
            "type": 4,
            "name": "10.1.1.0/24",
            "ipv4": {
                "gateway": null,
                "netmask": "255.255.255.255",
                "resolvers": {
                    "primary": "8.8.8.8",
                    "secondary": "8.8.4.4"
                },
                "total": 0,
                "usedTotal": 0,
                "freeTotal": 0
            },
            "ipv6": {
                "gateway": null,
                "resolvers": {
                    "primary": null,
                    "secondary": null
                },
                "subnet": null,
                "from": 48,
                "to": 64,
                "restricted": [],
                "total": 0,
                "generatedTotal": 0,
                "usedTotal": 0,
                "freeTotal": 0,
                "freeGenerated": 0,
                "blacklistedTotal": 0
            },
            "rdnsType": 0,
            "rdnsZoneId": null,
            "networkProfile": 0,
            "routeBlock": null,
            "dhcp": 1,
            "enabled": true,
            "created": "2024-05-16T18:11:03+00:00",
            "updated": "2024-05-17T13:22:04+00:00"
        },
        {
            "id": 5,
            "type": 6,
            "name": "V6 For BHV 1,3",
            "ipv4": {
                "gateway": null,
                "netmask": null,
                "resolvers": {
                    "primary": null,
                    "secondary": null
                },
                "total": 0,
                "usedTotal": 0,
                "freeTotal": 0
            },
            "ipv6": {
                "gateway": "2001:db8:abcd:12::1",
                "resolvers": {
                    "primary": "2001:4860:4860::8888",
                    "secondary": "2001:4860:4860::8844"
                },
                "subnet": "2001:db8:abcd:12::",
                "from": 64,
                "to": 80,
                "restricted": [],
                "total": 65535,
                "generatedTotal": 1100,
                "usedTotal": 9,
                "freeTotal": 65526,
                "freeGenerated": 1091,
                "blacklistedTotal": 0
            },
            "rdnsType": 0,
            "rdnsZoneId": null,
            "networkProfile": 0,
            "routeBlock": null,
            "dhcp": 1,
            "enabled": true,
            "created": "2024-09-19T17:23:05+00:00",
            "updated": "2024-12-06T21:23:55+00:00"
        }
    ],
    "first_page_url": "https://192.168.3.11/api/v1/connectivity/ipblocks?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "https://192.168.3.11/api/v1/connectivity/ipblocks?page=1",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "https://192.168.3.11/api/v1/connectivity/ipblocks?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "https://192.168.3.11/api/v1/connectivity/ipblocks",
    "per_page": 20,
    "prev_page_url": null,
    "to": 5,
    "total": 5
}
🟠401401
Modified at 2025-01-20 21:49:10
Previous
Add an IPv4 range to an IP block
Next
Retrieve an IP block
Built with