Support Questions

Find answers, ask questions, and share your expertise

Create multiple ranger polices with same json file

avatar
New Contributor

Team,

 

Currently using rest api with curl operation for create/update/delete ranger policies from single policy.json file. I want make it more dynamically in which we can able to create/update/delete multiple policies with same policy.json file.

 

Command:

curl -ik -u ${RANGER_USERNAME}:${RANGER_PASSWORD} -d @policy.json -H Content-type:application/json -X POST ${HOSTNAME}/service/public/api/policy

 

Is there any way to achieve it, please let me know.

 

Any help will be much appreciated. Thanks in advance

 

3 REPLIES 3

avatar
Community Manager

@jia12, Welcome to our community! To help you get the best possible answer, I have tagged our Ranger experts @vamsi_redd @Atahar @Kartik_Agarwal who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution 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:

avatar
New Contributor

Any update on above query.

avatar
New Contributor

any help on this would be highly appreciated.