Forum Discussion

Phil's avatar
Phil
Comet
2 months ago

Pull network rules via API

Hi community, I am trying to pull network settings for several sites. 
To be more precise, I would like to create a list of bypass rules per site.

I tried the following query with empty results:

query entityLookup ($accountID: ID!, $type: EntityType!, $parent: EntityInput!) {
  entityLookup (accountID: $accountID, type: $type, parent: $parent) {
      items {
          entity {
              id
              name
              type
          }
          description
          helperFields
      }
  }
}
{
  "accountID": "{{accountID}}",
  "type": "localRouting",
  "parent": {
    "id": 0,
    "type": "site"
  }
}

Other "type" like lanFirewall worked. Any suggestions how to proceed and get details about bypass ruleset per site?

1 Reply

  • Hi Phil, 

    I did a check on the API reference: https://api.catonetworks.com/documentation/
    It seems that the site bypass API command is not found/available on the API reference, at the moment.

    Would you consider (1) using CMA to configure the setting, as an alternative, or (2) have a discussion with your assigned Sales Engineer for this potential feature enhancement request? ___

    Thank you and have a nice day ahead, Phil 👍