API Discussions
Discussions and questions regarding the Cato Networks APIBest Practices
Find Cato Network API best practices, tips, and tricks
Recent Content
API for LDAP Sync
Hi, Team. We have checked the KB and API documents and there are only two ways to sync LDAP users which is through Daily Sync feature and 'Sync Now' button. We have asked to Cato Support that if there is a way to automatically sync in defined minutes or hours. (ex. set 5 minutes to automatically sync LDAP users) The response was we have to RFE for that feature. Then I asked them if there is API for LDAP Sync and they lead me to here. So, currently, is there any API query for LDAP Sync we can use?18Views0likes3CommentsLooking for Socket Interface Wan Role and Precedence
Hello devs! I am trying to fetch interface data for our application. In doing so, I realized that I cannot locate the interface wan role # and the precedence # from CATO API. I did some digging and found 'naturalOrder' - is this the WAN precedence? Also, directly from the Socket Web GUI (proxy) - I could see `wan_outlet_id` which looks like it could be the wan role, however this is not exposed in InterfaceSnapshot. ps: Do varioius Socket/vSocket platforms have different values/limits for WAN Role and Precedence? I currently see 3 WAN Roles, and 3 Precedences in our deployments.Solved62Views1like6CommentsCloning Firewall rules
Ever notice how Cato defaults are not Cato best practices. I have a preferred layout for Internet Firewall and WAN Firewall rules. I have them in multiple sections for business rules and best practice rules. I am wanting to created a pristine template that I can apply to a new tenant that sets up all of my preferences. I am pretty fluent with Postman and python. Any bread crumbs or ideas on how to back up the Internet Rules from one tenant and push them in to a net new tenant? Any ideas are greatly appreciated. Thanks, Brian44Views1like5CommentsDoes the Cato API support batch submissions?
I'm looking to add over 200 DHCP reservations to one of our sites. Does the API support batch submissions in the following format or do I need to include the 'accountId" and 'siteId' lines for each host? [ { "accountId": "123456", "siteId": "78910", "input": { "name": "Host1", "ip": "192.168.1.10", "macAddress": "00:1A:2B:3C:4D:5E" } }, { "input": { "name": "Host2", "ip": "192.168.1.11", "macAddress": "00:1A:2B:3C:4D:5F" } } ]12Views1like2CommentsHow do you make an API request that lists IP address of LAN and WAN interfaces ?
I need to retrieve several pieces of information using API requests : - full list of IP ranges for LAN interfaces (type : Native, VLAN, Routed) [screenshot] - IP addresses of the WAN interfaces (socket IP) In the "entityLookUp" request, I can only find the site's native IP address (VLAN, Routed?) and in the "accountSnapshot" request, there is no internal address. Thank for your timeSolved27Views1like2CommentsHow To Get All users Regardless Of Current Connection Status
I am trying to retrieve a list of all users including their last connected datetime, which doesnt seem to be included in the results for entity lookup. I do get this field from accountSnapshot, but that only returns a list of users that are currently connected, I need all of them. I am trying to retrieve all user ids via entity lookup and then pass them to the accountSnapshot since you can get non connected users by specifying their ids. Anyonehave any suggestions on how to adjust my query? I am working in C#/DotnetSolved33Views0likes2CommentsAPI Request to get all SDP users
Hi everyone, I'm trying to get all users within my Cato platform. Like in Access > Users when you select SDP Users Activity. I cannot find any direct way to do it, maybe i'm missing something ? I tried with AccountSnapshot but here you can only find connected users, it is also stated that if I want users that are offline I need to specify the ID, is it the only way to do it ? Thanks, BillySolved139Views0likes6CommentsHow can I isolate traffic between two specific sites using the Cato API?
Hello Catoers, I'm trying to get an overview of data transferred between sites via the Cato tunnel. I considered using the accountMetrics query to analyze bytesUpstream and bytesDownstream, but that only provides aggregate data without specifying the destination. Would using eventsFeed - filtering by source and destination - be a better approach? Or is there another query that directly correlates traffic between specific sites? Thanks for your guidance.28Views1like2CommentsExample: Agentic AI with Cato
Cato's XDR already meets the criteria for being Agentic AI, and the additional features in the pipeline will continue to drive automation. But our XDR also has read/write APIs, allowing customers to add on their own LLM-powered agents. This notebook walks you through an example of an XDR Triage Agent which combines the Cato API with an LLM. Customers who don't want to use an LLM can still gain insights into how to use the xdr.stories query and xdr.analystFeedback mutation to programmatically manage XDR stories. https://github.com/catonetworks/data-analytics/blob/main/notebooks/Agentic%20AI%20-%20XDR%20Stories.ipynb20Views0likes0Comments