# Global Proxy recursion depth

# Set Max Global recursion depth

# URI

PUT /admin-api/global/1/proxy_recursion

# JSON body

  • max_depth

    type: integer

    required: yes

    description: the max proxy recursion depth, exceeding this will be reported an error and a response of '502 Bad Gateway'

  • enable

    type: boolean

    required: yes

    description: whether to enable the rule

# Request example

# Shell

curl \
  -X POST \
  -H "API-Token: 1df87165-3593-4eca-a910-9ac20005e6ec" \
  http://admin-site/admin-api/global/1/proxy_recursion \
  -d '{
    "enable": true,
    "max_depth": 10
  }'

# Response example

Status: 200 OK
{"status":0}

# Get Max Global recursion depth

# URI

GET /admin-api/global/1/proxy_recursion

# Request example

# Shell

curl \
  -H "API-Token: 1df87165-3593-4eca-a910-9ac20005e6ec" \
  http://admin-site/admin-api/global/1/proxy_recursion \

# Response example

Status: 200 OK
{"status":0, {"enable": true, "max_depth": 10}}