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
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.
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
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/.comcurl -k http://1.2.3.4:9503/proxy/acls/record/find/company.comcurl -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
GET http://1.2.3.4:9503/proxy/acls/object/disable/[OBJECT ID]
Where Object id is the group id
GET http://1.2.3.4:9503/proxy/acls/object/enable/[OBJECT ID]
Where Object id is the group id
GET http://1.2.3.4:9503/proxy/acls/object/delete/[OBJECT ID]
Where Object id is the group id
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
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
GET http://1.2.3.4:9503/proxy/acls/record/disable/[ITEM ID]
Where ITEM ID is the Record ID listed in the Items section
GET http://1.2.3.4:9503/proxy/acls/record/enable/[ITEM ID]
Where ITEM id is the Record ID listed in the Items section
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