Recent Discussions
For Beta queries
When I query for revisions in InternetFirewallPolicyQueries, I get the error "Operation Failed: received non-200 OK status code [500]. Is there any solution? I have confirmed that the AccountID is correct, but this query is still in Beta version, so I think it might not be able to execute yet.22Views0likes2CommentsAPI 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, BillySolvedBilly2 months agoComet62Views0likes5CommentsIs "CORS Preflight Request" supported?
Hello team, Is the CORS preflight request is supported in cato api server? When I query from browser by javascript, the preflight request was blocked by CORS policy. ーーーーー Access to XMLHttpRequest at 'https://api.catonetworks.com/api/v1/graphql2' from origin 'http://localhost:4000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. ーーーーー What I want to know is if this is normal behavior or a problem with my program. Thank you,Solved31Views0likes2CommentseventsFeed.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?SolvedDavidG2 months agoMeteor32Views0likes2CommentsHow 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,Solved58Views0likes2CommentsCato 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, PierreSolved49Views1like2CommentsAPI get statut Topology
Hello Cato team, I am looking for a solution to monitor certain statuses on your API. The objective is to obtain the status and counter "Connected," "Degraded," or "Disconnected" present in the topology. I am looking for the URL request that can provide this. For better understanding of the reason for this request, I use a ticketing tool that can make API requests. I use this to check the API statuses, and based on the results, open ITSM tickets. Thank for you timeJoseph2 months agoComet41Views0likes1CommentA 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")))peter3 months agoCato Employee62Views2likes2Comments