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.
This feature is available with Artica v4.50 Service Pack 1 or Artica v4.50 HotFix 20240903-18
All write operations must be followed by an acls compilation with the command:
http://server:port/proxy/acls/compile
List available objects
GET http://1.2.3.4:9503/proxy/acls/objects
This command lists all available ACL objects with the records they hold and their associated rules.
Example:
{
"Status": true,
"Error": "",
"Objects": [
{
"ID": 1,
"GroupName": "google_sni",
"Type": "ssl_sni",
"Enabled": 1,
"Items": [{
"id": 593,
"pattern": "^accounts.google.com",
"date": "2022-01-16 20:48:09",
"uid": "Manager",
"other": "",
"gpid": 1,
"enabled": 1
} ],
"Rules": [{
"ID": 256,
"Name": "SR264085",
"PortDirection": 0,
"AclPort": 0,
"AclGroup": 0,
"AclGpid": 153,
"Enabled": 1
}
] }
The Rules section list all acls rules associated to the object.
List records inside an object
GET http://1.2.3.4:9503/proxy/acls/record/list/[OBJECT ID]
Returns a json of all records stored from an acls items.
Example: curl -k http://1.2.3.4:9503/proxy/acls/record/list/27
This feature is available on Artica v4.50 Service Pack 5 or Artica v4.50 Service Pack 4 Hotfix 20250525-12
Search for records across the entire database.
The lookup uses a keyword passed in the request path and scans the description, uid, and pattern fields.
The search pattern will be global so “*” is already included.
GET http://1.2.3.4:9503/proxy/acls/record/find/[pattern]
Examples:
curl -k http://1.2.3.4:9503/proxy/acls/record/find/.com
curl -k http://1.2.3.4:9503/proxy/acls/record/find/company.com
curl -k http://1.2.3.4:9503/proxy/acls/record/find/company.
This feature is available on Artica v4.50 Service Pack 5 or Artica v4.50 Service Pack 4 Hotfix 20250525-12
Disable Object
GET http://1.2.3.4:9503/proxy/acls/object/disable/[OBJECT ID]
Where Object id is the group id
Enable Object
GET http://1.2.3.4:9503/proxy/acls/object/enable/[OBJECT ID]
Where Object id is the group id
Delete Object
GET http://1.2.3.4:9503/proxy/acls/object/delete/[OBJECT ID]
Where Object id is the group id
Add a new record inside object.
GET http://1.2.3.4:9503/proxy/acls/record/add/[OBJECT ID]/[records]
You need first to get the Object ID, and use it to add records.
to add records just separate them with a comma
For example, need to add clubic.fr and ibm.fr inside the object ID 1 (google_sni )
GET http://1.2.3.4:9503/proxy/acls/record/add/1/clubic.fr,ibm.fr
Add a new record inside object.(advanced mode)
This path allows you to add object with extra information such as uid ( the user that push the information ), description ( a text description ) and pattern the value of the object
PUT http://1.2.3.4:9503/proxy/acls/record/add/[OBJECT ID]
Example: curl -k -X PUT https://1.2.3.4:9503/proxy/acls/record/add/27 --data-urlencode "uid=Michel santos" --data-urlencode "description=Ticket #1547" --data-urlencode "pattern=domain.tld"
This feature is available on Artica v4.50 Service Pack 5 or Artica v4.50 Service Pack 4 Hotfix 20250525-12
Disable a record inside object
GET http://1.2.3.4:9503/proxy/acls/record/disable/[ITEM ID]
Where ITEM ID is the id of the record, as returned by /proxy/acls/record/list/[OBJECT ID] or in the Items section of /proxy/acls/objects — not the object ID.
Example:
curl -k https://1.2.3.4:9503/proxy/acls/record/disable/181
Response on success:
{
"Status": true,
"Info": "",
"Error": "",
"Version": ""
}
On failure Status is false and Error carries the reason. An ID that matches no record is not an error: the call answers Status: true and changes nothing — check the result with /proxy/acls/record/list/[OBJECT ID]. As for every write, the proxy applies the change only after /proxy/acls/compile.
Enable a record inside object
GET http://1.2.3.4:9503/proxy/acls/record/enable/[ITEM ID]
Where ITEM ID is the id of the record, as returned by /proxy/acls/record/list/[OBJECT ID] or in the Items section of /proxy/acls/objects — not the object ID.
Example:
curl -k https://1.2.3.4:9503/proxy/acls/record/enable/181
Response on success:
{
"Status": true,
"Info": "",
"Error": "",
"Version": ""
}
On failure Status is false and Error carries the reason. An ID that matches no record is not an error: the call answers Status: true and changes nothing — check the result with /proxy/acls/record/list/[OBJECT ID]. As for every write, the proxy applies the change only after /proxy/acls/compile.
Known issue on earlier builds —
record/enableandrecord/disablealways failed, whatever the ITEM ID, with:{"Status": false, "Info": "near \"zdate\": syntax error", ...}The SQL statement run by the server was malformed; the record was never modified. Both endpoints were affected the same way, so both returned the same answer. This is fixed in the Artica update released after 2026-09-23. There is no API-side workaround on an affected build: update Artica, or toggle the record from the Web console (Proxy → ACLs → Objects).
Delete a record inside object
GET http://1.2.3.4:9503/proxy/acls/record/delete/[ITEM ID]
Where ITEM id is the Record ID listed in the Items section