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/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/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
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