Manage Proxy ACLs using the Web API Service
Through the API service, you can list, enable or disable main rules (ACLs).
Back to Web API Service Main section | Back to the Proxy Acls Main section
This feature is available starting with Web API service 2.2.22 in Artica v4.40 Hotfix 20230907-18 or Artica v4.40 Service Pack 1
- Web API and Acls objects:
Acls objects are a kind of group that can be associated with ACL rules.
They define how the rule will detect elements and are used to store records related to their typology.
Get the list of all ACLs rules:
http://server:port/proxy/acls
Return a json with the acls as main key, not the id attribute that indicates the rule number
{
"status": true,
"info": "List of Proxy ACLs",
"traces": "",
"acls": [
{
"id": 6,
"name": "Newly Registered Domains",
"active": 0,
"order": 0
}, {
"id": 10,
"name": "block ibm",
"active": 1,
"order": 1
} ],
}
Disable a rule
Disable the rule by giving the ID number of the ACL rule
http://server:port/proxy/acls/[ID]/disable
Enable a rule
Enable the rule by giving the ID number of the ACL rule
http://server:port/proxy/acls/[ID]/enable
Compile rules
http://server:port/proxy/acls/compile
Return a json whith status True or False and compilation logs inside the Traces attribute