- Products
- Learn
- Local User Groups
- Partners
- More
Check Point Jump-Start Online Training
Now Available on CheckMates for Beginners!
Why do Hackers Love IoT Devices so Much?
Join our TechTalk on Aug 17, at 5PM CET | 11AM EST
Welcome to Maestro Masters!
Talk to Masters, Engage with Masters, Be a Maestro Master!
ZTNA Buyer’s Guide
Zero Trust essentials for your most valuable assets
The SMB Cyber Master
Boost your knowledge on Quantum Spark SMB gateways!
As YOU DESERVE THE BEST SECURITY
Upgrade to our latest GA Jumbo
CheckFlix!
All Videos In One Space
Hello all,
I try to make python script using cpapi SDK.
When i try to run a where-used command i have an error
Should i use wrong parameters in client.api_query ?
Thanls for your help
In fact the "where-used" command does not have a limit parameter (https://sc1.checkpoint.com/documents/latest/APIs/?#web/where-used~v1.8%20), and with the SDK function api_query a limit parameters is automatically added. That's why it failed
But the SDK function api_call nothing is added so i have no issue with that
@chkp-royl you familiar with this?
Limit has a default value of 50 with the Python API (https://github.com/CheckPointSW/cp_mgmt_api_python_sdk/blob/b2d0a232b8e6689485799f97a25b475a2fd15d55...) but you can override it as part of your payload by setting limit=[value]. Can you share a copy of the HTTP request?
In fact the "where-used" command does not have a limit parameter (https://sc1.checkpoint.com/documents/latest/APIs/?#web/where-used~v1.8%20), and with the SDK function api_query a limit parameters is automatically added. That's why it failed
But the SDK function api_call nothing is added so i have no issue with that
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY