Recent Discussions
API 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, BillySolvedBilly6 months agoComet146Views0likes6CommentsA simple example in Python
import json import ssl import urllib.parse import urllib.request headers = { "x-api-key": MY_API_KEY, "Content-Type": "application/json" } body = { "operationName": "accountSnapshot", "variables": {"accountID":MY_ACCOUNT_ID}, "query": ''' query accountSnapshot($accountID:ID!) { accountSnapshot(accountID:$accountID) { id } }''' } request = urllib.request.Request(url='https://api.catonetworks.com/api/v1/graphql2', data=json.dumps(body).encode("ascii"), headers=headers) response = urllib.request.urlopen(request, context=ssl._create_unverified_context()) print(json.loads(response.read().decode("utf-8","replace")))peter8 months agoCato Employee133Views2likes2CommentsCloning 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, BrianBrianT3 months agoComet100Views1like5CommentseventsFeed.py - Enough?
Hi all, We've started to try and integrate Cato with our Qradar platform. We are ingesting logs using the eventsFeed.py script. This is working well, but I'm curious if I'm "missing" anything or need to integrate more events. For example, could I add the "auditfeed.py" to the existing "eventsFeed.py" as I don't believe they pull the same events?SolvedDavidG6 months agoMeteor99Views0likes2CommentsAPI 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?HyunSim2 months agoComet97Views0likes5CommentsCato API with Gradio
Hello, During the "AMA about Cato API" webinar, you presented a demo of API usages with Gradio. Will you eventually share the code examples that you used to make these dashboards ? I would like to reproduce something similar (hit rules, detected applications by rules..) Regards, PierreSolved89Views1like2CommentsHow 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 timeSolvedMaelJ3 months agoMeteor85Views1like2CommentsLooking 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.SolvedJessieBryan3 months agoMeteor83Views1like6CommentsHow to get the result of mutation
Hello team, We are currently considering using the Cato API to automate configuration for our customers. We would like to create sites, administrators, policies, etc. with the mutation commands, and then retrieve and display the applied settings with the query command. Based on the schema and actual behavior, we have confirmed that this is possible with firewall policies and administrators. However, I am not able to get more information than ID and name in the site settings. Is there any way to get these detailed configuration information? If not, is there any plan to implement this in the near future? thankyou,SolvedDCL_SysAdmin7 months agoMeteor81Views0likes2Comments