Daniel,

I try similar query below, it works for me.

http://xxxxxxx:xxx/eagle-service/rest/list?query=AlertDefinitionService[@dataSource="userProfile";
and @site="sandbox"]{*}&pageSize=100

And your given query just shown empty result instead of parse error in my
local.

Can you post more detail/stack?

Ralph


On Sat, Dec 19, 2015 at 8:45 AM, Daniel Zhou <daniel.z...@dataguise.com>
wrote:

> Thanks, now it works.
>
> By the way, is there something wrong with the Get Policy API Example?
> I followed the tutorial and set the URL as:
>
>
> http://centos.da2:9099/eagle-service/rest/list?query=AlertDefinitionService[@dataSource="hdfsAuditLog";
> AND @site="Demo"]{*}&pageSize=100
>
> and  the response is an exception saying:
> "exception": "eagle.query.parser.EagleQueryParseException: can not
> successfully parse the query:@dataSource = "hdfsAuditLog" AND @site =
> "Demo"
>
> Regards,
> Daniel
>
> -----Original Message-----
> From: Zhang, Edward (GDI Hadoop) [mailto:yonzh...@ebay.com]
> Sent: Friday, December 18, 2015 3:47 PM
> To: dev@eagle.incubator.apache.org
> Subject: Re: What is the API of "Mark Sensitivity Data"?
>
> Marking sensitivity data is nothing but invoking the following API (HTTP
> POST)
> http://localhost:9099/eagle-service/rest/entities?serviceName=FileSensitivi
> tyService
> [
>  {
>   "tags":{
>     "site" : "sandbox",
>      "filedir" : "testFilePath"
>   },
>   "sensitivityType": "EMAIL"
>  },
>  {
>   "tags":{
>     "site" : "sandbox",
>     "filedir" : "testFilePath2"
>   },
>   "sensitivityType": "SSN"
>  }
> ]
>
>
>
>
> On 12/18/15, 15:27, "Daniel Zhou" <daniel.z...@dataguise.com> wrote:
>
> >Hi,
> >
> >I didn't find the API about marking sensitivity data in the online
> >tutorial, can someone tell me where to find it?
> >
> >Thanks,
> >Daniel
>
>

Reply via email to