SR
Joining the Conversation
27 days agoCreating NAT Rules
Hi,
I’m trying to figure out if it’s possible to create or update NAT Policy Rules for a site using the Cato GraphQL API.
I’m using the siteUpdate mutation to modify the natPolicyRules field (adding DNAT rules), but I keep getting a "permission denied" (Code104) error even though my API key should have the right permissions.
Just to clarify, the rules I want to create are in:
Network → Sites → [Selected Site] → Routing → NAT
Before I go any further, can someone confirm :
- Is it actually possible to create/modify NAT rules via the GraphQL API ?
- Is siteUpdate the right mutation for this ?
I have about 300 DNAT rules to create, so doing it manually in the UI would be pretty painful.
Thanks !