Created 12-21-2016 06:54 AM
Can anyone guide me link on how to create policies in Ranger using API?
Created 12-21-2016 06:57 AM
Can you check the link which guides you on how to create policies using api -
Let me know if that helps.
Created 12-21-2016 06:57 AM
Can you check the link which guides you on how to create policies using api -
Let me know if that helps.
Created 12-21-2016 06:56 PM
Thanks for the link.
Created 07-05-2021 05:02 AM
Hi,
I have a requirement like, i need to create hive policy with two groups .one group with "ALL" permissions to some "x" user and 2nd group with "select" permission to "y" user.
i have created policy through REST APi with one group but with "all" permissions but how to mention 2nd group with "select" permission in same create policy command.
Thanks in advance!
Srini Podili
Created 07-05-2021 09:52 AM
Hi @srinivasp, I see that you posted similar concerns in multiple posts. I recommend you create a start a new thread and provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question.
Regards,
Vidya Sargur,Created 12-21-2016 06:58 AM
The following link has the details:
https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Policy+Management
.
Example:
curl -u $RangerAdmin:$Password -X GET http://$RANGERHOST:6080/service/public/api/policy/
Above will list the policies then you can navigate to the desired policy make changes/post/delete
Created 12-21-2016 11:48 AM
@Jay SenSharma It's worth pointing out that unless you're using Ranger 0.4 or below, that API is obsolete. You should be using the v2 API linked to by @mvaradkar:
Created 12-21-2016 11:58 AM
Created 12-21-2016 07:02 AM
Created 08-17-2017 06:13 PM
Hi,
what's the maximum number of policies retrieved via curl -iv -u admin:admin -H "Content-type:application/json" -X GET http://xxxx:6080/service/public/api/policy
i get max 200 rules for hive i know for sure thee are more rules..how to get that using ranger api