dataplaneapi icon indicating copy to clipboard operation
dataplaneapi copied to clipboard

api: missing a simple way to add / delete entry to the acl

Open f1-outsourcing opened this issue 2 years ago • 3 comments

I get the feeling that, I maybe missed something in the api reference guide. Is it really like this that you can not add or delete an ip to an acl?

f1-outsourcing avatar Feb 26 '22 09:02 f1-outsourcing

Hi, what ACLs are we talking about here? We currently have two resources: /services/haproxy/configuration/acls - which represent acl line in the configuration file and /services/haproxy/runtime/acls - which represent acls in the RuntimeAPI (stats socket) or the acl files.

If we are talking about the runtime ACLs, then you can use /services/haproxy/runtime/acl_file_entries for managing entries in acl files.

mjuraga avatar Mar 07 '22 08:03 mjuraga

Afaik from the docs, it is not possible to do one simple put/push request to update an existing acl by adding an ip.

f1-outsourcing avatar Mar 09 '22 11:03 f1-outsourcing

Are we talking about dataplaneapi or haproxy here?

mjuraga avatar Sep 15 '22 10:09 mjuraga