Project

General

Profile

Actions

Bug #18506

closed

Missing documentation for POST allowedNetwords API

Added by François ARMAND about 4 years ago. Updated over 3 years ago.

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

Description

We don't have a clear documentation/example for allowed networks API:

% curl -k -X POST -H "X-API-TOKEN: ...." -H "Content-Type: application/json" 'https://.../api/latest/settings/allowed_networks/root' -d '{"allowed_networks":["192.168.0.0/24","10.0.2.15/24","192.168.56.2/24"]}' | jq

{
  "action": "modifyAllowedNetworks",
  "id": "root",
  "result": "success",
  "data": {
    "settings": [
      "192.168.0.0/24",
      "10.0.2.15/24",
      "192.168.56.2/24" 
    ]
  }
}
Actions

Also available in: Atom PDF