Skip to main content
GET
/
firewalls
/
{firewall_id}
Typescript (SDK)
import { Latitudesh } from "latitudesh-typescript-sdk";

const latitudesh = new Latitudesh({
  bearer: process.env["LATITUDESH_BEARER"] ?? "",
});

async function run() {
  const result = await latitudesh.firewalls.get({
    firewallId: "fw_xkjQwdENqYNVP",
  });

  console.log(result);
}

run();
{
  "data": {
    "id": "fw_xkjQwdENqYNVP",
    "type": "firewalls",
    "attributes": {
      "name": "Batz Inc",
      "project": {
        "id": "proj_Av9BVDavORm1W",
        "name": "Heavy Duty Paper Hat",
        "slug": "heavy-duty-paper-hat"
      },
      "rules": [
        {
          "from": "217.160.173.14",
          "to": "99.87.69.88",
          "port": "80",
          "protocol": "TCP",
          "default": false
        },
        {
          "from": "79.209.217.107",
          "to": "224.13.187.5",
          "port": "80",
          "protocol": "TCP",
          "default": false
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

firewall_id
string
required

The Firewall ID

Response

200 - application/vnd.api+json

Success

data
object
meta
object