Recent Discussions
How 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,Solved39Views0likes2CommentsCato 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, PierreSolved32Views1like2CommentsAPI 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 timeJoseph6 days agoComet19Views0likes1CommentA 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")))peter2 months agoCato Employee43Views2likes2Comments