Sachin,

Currently, REST API documentation exists only for 0.4 version of Ranger. 
Documentation for later versions will be added as soon as possible. In the 
meantime, please refer to PublicAPIsv2.java for API details. If you have any 
questions on using the API, please send to this mailing list. Someone from the 
Ranger community should be able to help you quickly.

Thanks,
Madhan

From:  Sachin Janani <[email protected]>
Reply-To:  "[email protected]" <[email protected]>
Date:  Monday, December 7, 2015 at 12:42 AM
To:  "[email protected]" <[email protected]>
Subject:  RE: Ranger public  Rest APIs not working for Policies for custom 
plugin

Thanks Madhan that worked. Is there any documentation available for this new 
apis.

 

Thanks and Regards,

Sachin Janani

 

From: Madhan Neethiraj [mailto:[email protected]] On Behalf Of Madhan 
Neethiraj
Sent: Monday, December 07, 2015 2:03 PM
To: [email protected]
Subject: Re: Ranger public Rest APIs not working for Policies for custom plugin

 

Sachin,

 

REST APIs at service/public/api/policy work for Ranger-0.4 policies. To work 
with Ranger-0.5 policies (and later), please use REST APIs at 
service/public/v2/policy (PublicAPIsv2.java).

 

Hope this helps.

 

Madhan

 

From: Sachin Janani <[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Sunday, December 6, 2015 at 11:22 PM
To: "[email protected]" <[email protected]>
Subject: Ranger public Rest APIs not working for Policies for custom plugin

 

Hi,

I have created one custom plugin for a service in Ranger and I am trying to 
create a policy for that. I am able to create a policy for that plugin from the 
UI but when I try to create a policy from REST API then it is not getting 
created. Following is the REST API I am using for creating policy:

http://<ranger_host>:port/service/public/api/policy

 

but if I create a policy with the following API: http:// <ranger_host>:port 
/plugins/policies

then it’s getting created properly. Is this a bug in the APIs or am I missing 
anything?

 

 

Regards,

Sachin Janani

DISCLAIMER ========== This e-mail may contain privileged and confidential 
information which is the property of Persistent Systems Ltd. It is intended 
only for the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you are not authorized to read, retain, copy, 
print, distribute or use this message. If you have received this communication 
in error, please notify the sender and delete all copies of this message. 
Persistent Systems Ltd. does not accept any liability for virus infected mails. 

DISCLAIMER ========== This e-mail may contain privileged and confidential 
information which is the property of Persistent Systems Ltd. It is intended 
only for the use of the individual or entity to which it is addressed. If you 
are not the intended recipient, you are not authorized to read, retain, copy, 
print, distribute or use this message. If you have received this communication 
in error, please notify the sender and delete all copies of this message. 
Persistent Systems Ltd. does not accept any liability for virus infected mails. 

Reply via email to