Forum Discussion
On 12/17/2021 at 10:53 AM, Stuart Weenig said:This would need logic to handle portals with more than 1000 devices in it since the first api call only gets the first 1000 devices. The subsequent calls would also need to take into consideration rate limiting and probably introduce some throttling.
@Arjuna You might be able to use the module mentioned in this thread
/topic/1581-datasources_list-propertysource/Then you could run an inventory report and add that property to the report.
Hijacking the thread a bit...
@Stuart WeenigDo you have an example on how to access the return headers when using the SDK? I've been tinkering with it and have hit the rate limit a few times but couldn't figure out how to get the headers using the base functions. I ended up calling the subfunctions in each class that returns the tuple object instead of the actual object class, but I feel like there's a better way. For instance, instead of using add_device_group() I used add_device_group_with_http_info() then I could access the headers.
Related Content
- 7 months ago
- 8 months ago
- 5 months ago