- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ranger Policies using API
- Labels:
-
Apache Ranger
Created 12-21-2016 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone guide me link on how to create policies in Ranger using API?
Created 12-21-2016 06:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the link.
Created 07-05-2021 05:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 12-21-2016 06:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 12-21-2016 07:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 08-17-2017 06:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
