Firewall rules
Get a firewall rule
Get a firewall rule belonging to the project. Required permission: firewall-rule.read.
GET
/
v1
/
projects
/
{id}
/
firewall-rules
/
{ruleId}
Get a firewall rule
curl --request GET \
--url https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "66666666-6666-4666-8666-666666666666",
"name": "Block traffic outside Brazil",
"enabled": true,
"mode": "advanced",
"weight": 10,
"expression": [
[
{
"field": "ip.geoip.country",
"operator": "not_in",
"value": [
"BR"
]
}
]
],
"action": {
"type": "block",
"statusCode": 403
},
"projectId": "11111111-1111-4111-8111-111111111111",
"createdAt": "2026-10-26T12:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"errors": {}
}{
"error": "<string>",
"message": "<string>"
}⌘I
Get a firewall rule
curl --request GET \
--url https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trackup.me/v1/projects/{id}/firewall-rules/{ruleId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "66666666-6666-4666-8666-666666666666",
"name": "Block traffic outside Brazil",
"enabled": true,
"mode": "advanced",
"weight": 10,
"expression": [
[
{
"field": "ip.geoip.country",
"operator": "not_in",
"value": [
"BR"
]
}
]
],
"action": {
"type": "block",
"statusCode": 403
},
"projectId": "11111111-1111-4111-8111-111111111111",
"createdAt": "2026-10-26T12:00:00.000Z"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"errors": {}
}{
"error": "<string>",
"message": "<string>"
}