Question
how can show logs in blocks with filter by api
hello guys
i have problem with this api request
start = 0 limit=1 all_policies=[] while true: url = f"{base_url}/api/v2/cmdb/firewall/policy?vdom={vdom}&start={start}&rows={limit}" response = requests.get(url, headers=headers, verify=False) if response.status_code == 200: policies = response.json().get("results", []) all_policies.append(policies) if not policies: break # No more policies to fetch start+=limit​
when i print all_policies in every loop, the first log show every request, that means the start in the URL does not work correctly
how can i take logs block by block?
the first request get log number 1 to 1000
the second request get log number 1001 to 2000
and so on
