Hey Madhan !

I should take the habit to check the github, not the wiki indeed ^_^.
https://cwiki.apache.org/confluence/display/RANGER/REST+APIs+for+Service+Definition%2C+Service+and+Policy+Management#RESTAPIsforServiceDefinition,ServiceandPolicyManagement-SearchServices

I'm going to test with the parameter serviceType.

Best regards.

Lune



On Sun, Sep 11, 2016 at 11:23 PM, Madhan Neethiraj <mad...@apache.org>
wrote:

> Lune,
>
>
>
> Use ‘serviceType’ as the parameter name to filter on service-type. For
> other parameter names to use in search filter, please refer to
> SearchFilter.java - ranger-0.5
> <https://github.com/apache/incubator-ranger/blob/ranger-0.5/agents-common/src/main/java/org/apache/ranger/plugin/util/SearchFilter.java>
> or master
> <https://github.com/apache/incubator-ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/util/SearchFilter.java>
> .
>
>
>
> Hope this helps.
>
>
>
> Madhan
>
>
>
>
>
> *From: *Lune Silver <lunescar.ran...@gmail.com>
> *Reply-To: *"user@ranger.incubator.apache.org" <
> user@ranger.incubator.apache.org>
> *Date: *Sunday, September 11, 2016 at 5:39 AM
> *To: *"user@ranger.incubator.apache.org" <user@ranger.incubator.apache.org
> >
> *Subject: *Ranger REST API - Search Service - Parameter type seems not to
> work
>
>
>
> Hello everyone !
>
> I'm currently testing the Ranger REST API with Ranger 0.5 (embedded in
> HDP2.3.4.7).
>
> I'm trying to get the list of services for a specific plugin.
>
> It works fine.
>
> But when I try the type filter (hdfs, yarn etc...), it does not seem to
> take this filter into account.
>
> Here is the curl command I perform :
> ###
> curl -vvv -k -u amb_ranger_admin -X GET https://<RANGER HOST>:<RANGER
> PORT>/service/public/v2/api/service?pageSize=10&type=hdfs
> ###
>
> As a result I just have the full list of all the services, whatever their
> types are.
>
> I can clearly see in the result that each of this service have the "type"
> field indicating that they are hdfs, kafka, hbase. But the result is
> everything.
>
> Is it normal ?
>
> Best regards.
>
> Lune.
>

Reply via email to