import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.firewalls.list({
filterProject: "intelligent-marble-lamp",
});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "fw_VaNmodjeObE8W",
"type": "firewalls",
"attributes": {
"name": "Carroll-Purdy",
"project": {
"id": "proj_2695BdKrOevVo",
"name": "Intelligent Marble Lamp",
"slug": "intelligent-marble-lamp"
},
"rules": [
{
"from": "150.186.180.30",
"to": "115.157.70.5",
"port": "80",
"protocol": "TCP",
"default": false
}
]
}
}
]
}List firewalls
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.firewalls.list({
filterProject: "intelligent-marble-lamp",
});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "fw_VaNmodjeObE8W",
"type": "firewalls",
"attributes": {
"name": "Carroll-Purdy",
"project": {
"id": "proj_2695BdKrOevVo",
"name": "Intelligent Marble Lamp",
"slug": "intelligent-marble-lamp"
},
"rules": [
{
"from": "150.186.180.30",
"to": "115.157.70.5",
"port": "80",
"protocol": "TCP",
"default": false
}
]
}
}
]
}Number of items to return per page
x >= 1Page number to return (starts at 1)
x >= 1Was this page helpful?