AnsweredAssumed Answered

PI Web API AF Attribute Search Query

Question asked by georgiawebber on Jun 19, 2019
Latest reply on Jul 16, 2019 by rbiggins

I am trying to use the PI Web API to search for AF attributes that match a certain criteria. An example query for this search is:

 

https://pisrv/piwebapi/search/query?q=name:<attribute>&scope=af:\\<pisrv>\<db>\<element> 

 

However, rather than returning only details for <attribute>, it returns several attributes for <element> (but not all of them). An example <attribute> I'm searching for is "Current Draw", so no wildcards.

 

Is this expected behaviour for AF search queries? Is my query formed correctly?

 

The resource I've been following is: Search Queries (PI Web API Indexed Search), which seems to indicate that only details for <attribute> should be returned.

 

I am using PI Web API 2018.

Outcomes