Vodia PBX API (version 58.0 and above)

This page includes all the API parameters of the IP Access Control's Settings.

IP Access Control Settings

GET IP Access Control's Settings

GET

1) Info of IP Access Control's page from the Admin > Settings > Security > Access

rest/system/access

Success (200 OK)

Example Request:

curl -u username:password GET -D - http://192.168.1.194:8080/rest/system/access
"[ { id: 166, adr: "0.0.0.0", mask: 32, type: "true", reason: "", comment: "" }, { id: 167, adr: "12.34.0.0", mask: 16, type: "false", reason: "", comment: "" } ]"
Response Code Description
Success 200 OK
Invalid ID supplied 400 Only authenticated Admins can access the data
Permission Denied 403 Forbidden
Not Found 404 The id of the User was not found or there are errors in the URL.

UPDATE IPv4 / IPv6 Address' Entries

post
/rest/system/access

Example Request:

curl -u username:password -D - http://localhost:8080/rest/system/access -X POST -d "{ 'ip':'2001:DB8:1111:2222::55', 'netmask':'64', 'type':'true', 'comment':'IPv6 Enabled' }"

UPDATE IP Access Control page's settings

post
/rest/system/config

Example Request:

curl -u username:password -D - http://localhost:8080/rest/system/config -X POST -d "{ 'blacklist_attempts':'5', 'blacklist_period':'2000', 'blacklist_expires':'600' }"

Response for the Update request:

Response Code Description
Success 200 OK
Invalid ID supplied 400 Only authenticated a Admins can access the data
Permission Denied 403 Forbidden
Not Found 404 The id of the User was not found or there are errors in the URL.