ACL Plugin Consumer Association

523 views
Skip to first unread message

jred...@luc.id

unread,
Oct 9, 2015, 12:48:36 PM10/9/15
to KONG
The documentation for the ACL Plugin shows:

$ curl -X POST http://kong:8001/consumers/{consumer}/acls \ --data "group=group1"

to associate a consumer to a group.  However, I don't see anything about dissociating or removing a consumer from a group.  I've tried several different things including changing the HTTP verb to DELETE but nothing has worked so far.  Does anyone know what the correct endpoint and verb is to dissociate a consumer from a group for the ACL plugin?

Thanks!

Ahmad Nassri

unread,
Oct 11, 2015, 12:08:49 PM10/11/15
to jred...@luc.id, KONG
you have to call the final endpoint of the individual ACL entry: "/consumers/:username_or_id/acls/:id" as defined in https://github.com/Mashape/kong/blob/master/kong/plugins/acl/api.lua#L23


and yes, the documentation is lacking and we will update with details of all endpoints for each plugin: https://github.com/Mashape/getkong.org/issues/144



Ahmad Nassri | Head of Engineering @ Mashape. | +1 (647) 700-7703 | mashape.com

--
You received this message because you are subscribed to the Google Groups "KONG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+...@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at http://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/9dc05941-b8e7-410b-9bc1-d5b657b9132b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eugene....@gmail.com

unread,
Nov 14, 2016, 2:39:55 PM11/14/16
to Kong, jred...@luc.id, ah...@mashape.com
Hi,

Is there a way to search all consumers that are associated to an acl group?

After API is deleted, the acl remains and needs to be cleaned up manually on by one.  Is there any way to automated it or at least search for all consumers that have the acl?


Thank you in advance.

yves scotto

unread,
Dec 15, 2016, 8:09:40 AM12/15/16
to Kong, jred...@luc.id
Hello Ahmad

Thank you for your response regarding how to remove a consumer from an ACL
Like Eugene, I wonder how it's possible to have the list of consumers of an ACL

I tried GET api/{id}/plugins/{id} 
We retreive the ACL name but how going deeper?

Thank you
Best regards
Yves
Reply all
Reply to author
Forward
0 new messages