ASN-less IP Renting
  • ❓What is this?
  • 📶Web Router
    • 🌐What is the Web Router?
    • ↔️Forwarding Traffic
    • 🆕Creating New Rule
  • 🖥️Using our REST/HTTPS API
Powered by GitBook
On this page
  • Authentication
  • Get all Forwarding Rules for specific IPv4
  • Delete specific Forwarding Rule for IPv4
  • Create new Forwarding Rule for Specific IPv4

Was this helpful?

Using our REST/HTTPS API

We've created an API, that your business can utilize to introduce dynamic IP Routing, and much more.

Authentication

All requests utilize a key parameter, which will contain your API Key.

Gain unrestricted access - Absolutely free.

Get in touch with your account-manager in order to get your network authorized to access our REST API, without being restricted by our Firewall Rules etc.

Get all Forwarding Rules for specific IPv4

You must be using the API Key assigned to the relevant business managing said IPv4 address on our system.

Endpoint: vpnaas.org/api/ip/rules

Request Method: GET

Parameter
Value
Required

key

API Key

Yes

ip

IPv4 Address

Yes

Example Request & Response:

>curl "https://vpnaas.org/api/ip/rules?key=&ip="
[
  {
    "id": 4579,      # this is the Rule ID!      
    "businessId": 1,         
    "ipId": 9999,            
    "ruleId": 2,     # don't worry about the ruleId parameter.        
    "label": "Test Rule",    
    "arguments": "targetHost=1.1.1.1",
    "enabled": true,
    "date": "2024-07-08 08:47:53.862"
  }
]

Delete specific Forwarding Rule for IPv4

You must be using the API Key assigned to the relevant business managing said IPv4 address on our system.

Endpoint: vpnaas.org/api/ip/rules

Request Method: DELETE

Parameter
Value
Required

key

API Key

Yes

ip

IPv4 Address

Yes

id

the ID parameter for your specified rule.

Yes

Example Request & Response:

>curl -XDELETE "https://vpnaas.org/api/ip/rules?key=test&ip=202.181.177.177&id=4581"
1

All of our REST APIs will return relevant HTTP Error Codes if any errors are present with your request, otherwise you will be given a JSON or 1 response.

Create new Forwarding Rule for Specific IPv4

PreviousCreating New Rule

Last updated 10 months ago

Was this helpful?

🖥️