It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Application Firewall

Configuring a JSON Policy

  • Last updated on

A JSON policy is associated with a JSON profile to validate the requests based on the policy settings. 

Add a JSON Policy

  1. Go to the WEBSITES > JSON Security page.
  2. In the JSON Policies section, click Add JSON Policy.
  3. In the Add JSON Policy window, specify values for the following:
    1. Policy Name – Enter a name to identify this JSON policy.
    2. Max Keys –  Specify the maximum allowable keys in the JSON request.
      1. Minimum –  0
      2. Maximum –  16384
    3. Max Key Length –  Specify the maximum allowable length for JSON key names.
      1. Minimum   0
      2. Maximum – 1024
    4. Max Value Length –  Specify the maximum allowable length for JSON value. This is applicable only for the datatype "String".
      1. Minimum –  0
      2. Maximum –  8192
    5. Click Show Advanced Options to configure advanced settings.
    6. Max Number Value –  Specify the maximum allowable value for the JSON datatype "Number".
      1. Minimum   1
      2. Maximum – 9999999999999999999

     

    Providing '0' as the Max Number Value will be considered as an infinite value.

     

    1. Max Object Depth – Specify the maximum allowable depth for nested JSON structure.
      1. Minimum – 0
      2. Maximum – 64
    2. Max Array Elements – Specify the maximum allowable number of elements in an array.
      1. Minimum – 0
      2. Maximum – 8192
    3. Max Siblings – Specify the maximum allowable number of elements in a single JSON object.
      1. Minimum – 0
      2. Maximum – 2048
    4. Click Save.

The created JSON policies are displayed in the JSON Policies section. If an existing policy is modified, the changes will be applied to the JSON profile that the edited JSON policy is associated with.