Palo IOT - Get the Device Inventory API Endpoint

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Palo IOT - Get the Device Inventory API Endpoint

L0 Member

Hello, interested in exporting device list from iot platform.

 

I see a API endpoint for this but it doesn't have examples or document how to do filtering or page next since the it is capped to 1000 devices per request. please advise. 

 

https://pan.dev/iot/api/device-inventory/ > 

https://api.strata.paloaltonetworks.com/pub/v1/device/list

 

IoT Security 

1 REPLY 1

L2 Linker

Hi @S.Mulpuru ,

 

You can work around the 1000-device limit by automating the process using pagination. The API allows you to retrieve up to 1000 devices per request using the pagelength parameter. By starting with an offset of 0 and increasing it by 1000 with each request, you can loop through all available devices until the response returns fewer than 1000 items.

Since the API also enforces a rate limit of 60 requests per minute, try to pace your requests accordingly. You can do this by adding a short delay (e.g., 1 second) between each call or by implementing a rate-limiting mechanism that automatically waits when the limit is approached. so you can ensure your script remains compliant and avoids being throttled or blocked.

 

  • 312 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!