Update firewall policy by network ID
  • 23 Jul 2025
  • 1 Minute to read
  • Contributors

    Update firewall policy by network ID


      Article summary

      Put
      /v2.2/networks/{networkId}/policy

      Required permissions: ["network:update"].

      Security
      HTTP
      Type bearer
      Path parameters
      networkId
      stringRequired
      Min length1
      Pattern^[a-zA-Z0-9]+$
      Body parameters
      Expand All
      object
      enabled
      boolean Required

      whether the policy is enabled.

      allowed
      boolean Required

      whether the policy is accept or drop.

      id
      ExampleZwAeo5wqiF
      policyRules
      Array of object (FirewallPolicyRule) Required

      an array of policy rules.

      object
      id
      name
      string Required

      Policy rule ID.

      Min length5
      Max length50
      enabled
      boolean Required

      wether the rule is enabled.

      allowed
      boolean Required

      wether the rule is enabled.

      sources
      object (SourcesAndDestinations) Required
      OneOf
      UsersAndGroups
      object (UsersAndGroups)
      users
      Array of string (AlphanumericWithSpace)

      List of IDs of users.

      Min items1
      Max items5
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      groups
      Array of string (AlphanumericWithSpace)

      List of IDs of groups.

      Min items1
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      Addresses
      object (Addresses)
      addresses
      Array of string (AlphanumericWithSpace) Required

      List of IDs of address objects.

      Min items1
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      destinations
      object (SourcesAndDestinations) Required
      OneOf
      UsersAndGroups
      object (UsersAndGroups)
      users
      Array of string (AlphanumericWithSpace)

      List of IDs of users.

      Min items1
      Max items5
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      groups
      Array of string (AlphanumericWithSpace)

      List of IDs of groups.

      Min items1
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      Addresses
      object (Addresses)
      addresses
      Array of string (AlphanumericWithSpace) Required

      List of IDs of address objects.

      Min items1
      string

      Any alphanumeric value with space

      Min length1
      Pattern^[a-zA-Z0-9 ]+$
      services
      Array of string

      List of services objects IDs.

      Min items1
      string
      Pattern^[a-zA-Z0-9_- ]+$
      trace
      boolean

      whether the policy is traced.

      Responses
      202

      Request accepted

      object
      statusUrl
      string
      samplingTime
      integer
      400

      Bad request

      401

      Unauthorized

      403

      Forbidden

      404

      Network not found


      Was this article helpful?