from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.firewalls.list(filter_project="intelligent-marble-lamp", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"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
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.firewalls.list(filter_project="intelligent-marble-lamp", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"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?