Authorizations
Query Parameters
Number of items to return per page
Required range:
x >= 1
Page number to return (starts at 1)
Required range:
x >= 1
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.firewalls.list(filter_project="lightweight-silk-table", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next()
{
"data": [
{
"id": "fw_w5AEmq7XDBkWX",
"type": "firewalls",
"attributes": {
"name": "Greenfelder-Brekke",
"project": {
"id": "proj_x1ZJrdx5qg4LV",
"name": "Incredible Bronze Car",
"slug": "incredible-bronze-car"
},
"rules": [
{
"from": "92.95.228.250",
"to": "43.35.45.108",
"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="lightweight-silk-table", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next()
{
"data": [
{
"id": "fw_w5AEmq7XDBkWX",
"type": "firewalls",
"attributes": {
"name": "Greenfelder-Brekke",
"project": {
"id": "proj_x1ZJrdx5qg4LV",
"name": "Incredible Bronze Car",
"slug": "incredible-bronze-car"
},
"rules": [
{
"from": "92.95.228.250",
"to": "43.35.45.108",
"port": "80",
"protocol": "TCP",
"default": false
}
]
}
}
]
}
Number of items to return per page
x >= 1
Page number to return (starts at 1)
x >= 1
Was this page helpful?