Update firewall policy by network ID
  • 22 Nov 2023
  • 1 Minute to read
  • Contributors

    Update firewall policy by network ID


      Article summary

      Put
      /v2/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 allow or deny.

      id
      string Required

      Any alphanumeric value w/o space

      Min length1
      Pattern^[a-zA-Z0-9]+$
      policyRules
      Array of object (FirewallPolicyRule) Required

      an array of policy rules.

      object
      id
      string

      Any alphanumeric value w/o space

      Min length1
      Pattern^[a-zA-Z0-9]+$
      name
      string Required

      Policy rule ID.

      Max length50
      Min length5
      enabled
      boolean Required

      wether the rule is enabled.

      allowed
      boolean Required

      wether the rule is enabled.

      sources
      object (SourcesAndDestinations)Required
      destinations
      object (SourcesAndDestinations)Required
      services
      Array of string

      List of services objects IDs.

      string
      Pattern^[a-zA-Z0-9_- ]+$
      Responses
      202

      Request accepted

      object
      statusUrl
      string
      samplingTime
      integer
      400

      Bad request

      401

      Unauthorized

      403

      Forbidden

      404

      Network not found


      Was this article helpful?