Project

General

Profile

Actions

Bug #23269

open

API response from /settings/allowed_networks is not consistent with other settings

Added by Elaad FURREEDAN 9 months ago. Updated 24 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
API
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

Inconsistency from API response for settings/{settingId} :
Parameters action and id are not handled the same way according to settingId
It seems like allowed_network is the only exception

  • settings/allowed_networks
    {
        "action": "getAllAllowedNetworks",
        "result": "success",
        "data": {
            "allowed_networks": [
                {
                    "id": "root",
                    "allowed_networks": [
                        "10.0.2.15/32",
                        "192.168.22.0/24",
                        "192.168.22.2/32" 
                    ]
                }
            ]
        }
    }
    
  • settings/global_policy_mode
    {
        "action": "getSetting",
        "id": "global_policy_mode",
        "result": "success",
        "data": {
            "settings": {
                "global_policy_mode": "enforce" 
            }
        }
    } 
    
Actions

Also available in: Atom PDF