List Firewalls
curl --request GET \
--url https://api.tenbytecloud.com/v1/network/firewalls \
--header 'apikey: <api-key>'import requests
url = "https://api.tenbytecloud.com/v1/network/firewalls"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.tenbytecloud.com/v1/network/firewalls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tenbytecloud.com/v1/network/firewalls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.tenbytecloud.com/v1/network/firewalls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://api.tenbytecloud.com/v1/network/firewalls")
.header("apikey", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.tenbytecloud.com/v1/network/firewalls");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tenbytecloud.com/v1/network/firewalls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}[
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Web Server Firewall",
"description": "Firewall for web server instances",
"billing_account_id": 123,
"rules": [
{
"uuid": "7b3ec3c8-9c7e-4bcb-a1b9-2c8ad37a82c9",
"protocol": "tcp",
"direction": "inbound",
"port_start": 80,
"port_end": 80,
"endpoint_spec_type": "ip_prefixes",
"endpoint_spec": [
"10.22.33.0/24",
"10.12.34.5"
]
}
],
"resources_assigned": [],
"created_at": "2025-05-15 10:30:45"
}
]Firewall
List Firewalls
Retrieves a list of firewalls for the current user. Location-specific endpoint.
GET
/
network
/
firewalls
List Firewalls
curl --request GET \
--url https://api.tenbytecloud.com/v1/network/firewalls \
--header 'apikey: <api-key>'import requests
url = "https://api.tenbytecloud.com/v1/network/firewalls"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://api.tenbytecloud.com/v1/network/firewalls', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.tenbytecloud.com/v1/network/firewalls"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.tenbytecloud.com/v1/network/firewalls")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://api.tenbytecloud.com/v1/network/firewalls")
.header("apikey", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.tenbytecloud.com/v1/network/firewalls");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("apikey", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tenbytecloud.com/v1/network/firewalls",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}[
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"name": "Web Server Firewall",
"description": "Firewall for web server instances",
"billing_account_id": 123,
"rules": [
{
"uuid": "7b3ec3c8-9c7e-4bcb-a1b9-2c8ad37a82c9",
"protocol": "tcp",
"direction": "inbound",
"port_start": 80,
"port_end": 80,
"endpoint_spec_type": "ip_prefixes",
"endpoint_spec": [
"10.22.33.0/24",
"10.12.34.5"
]
}
],
"resources_assigned": [],
"created_at": "2025-05-15 10:30:45"
}
]Authorizations
Response
200 - application/json
List of Firewall objects
⌘I