cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
788
Views
1
Helpful
1
Replies

API Filtering

hayakawamrk1
Level 1
Level 1

Hi.

Using PI3.0, We want to work API Filtering on Attribute "dateValue" of Reports "Client Sessions".
We want get the Respons exceptet for Values of Attribute "Packets Sent" and "Packets Received" are "0".

API Resource: GET a Report
Report: Client Sessions
Customize: Client IP Address/Client MAC Address/AP name/SSID/Associated Time/DisAssociated Time/RSSI/Packets Sent/Packets Received
Target: dateValue of Packets Sent and Packets Received
Filtering: not equals "0" or greater than "0"
Example:
          <entry>
            <attributeName>lradName</attributeName>
            <dataValue>xxxx</dataValue>
            <displayName>AP Name</displayName>
          </entry>
          <entry>
            <attributeName>sessionStartTime</attributeName>
            <dataValue>Tue Mar 08 12:14:24 JST 2016</dataValue>
            <displayName>Association Time</displayName>
          </entry>
          <entry>
            <attributeName>sessionEndTime</attributeName>
            <dataValue>Tue Mar 08 12:19:20 JST 2016</dataValue>
            <displayName>Disassociation Time</displayName>
          </entry>
          <entry>
            <attributeName>packetsSent</attributeName>
            <dataValue>0</dataValue>                      ←Target
            <displayName>Packets Sent</displayName>
          </entry>
          <entry>
            <attributeName>packetsReceived</attributeName>
            <dataValue>0</dataValue>                      ←Target
            <displayName>Packets Received</displayName>
          </entry>

We have tried API requests following, Failure.
/webacs/api/v1/op/reportService/getReport?reportTitle= xx&attributeName=”packetsSent”&dataValue=ne("0")
/webacs/api/v1/op/reportService/getReport?reportTitle= xx&and.filter=true&attributeName=”packetsSent”&dataValue=ne("0")

Would you tell us for the correct URL?

1 Reply 1

Spencer Zier
Cisco Employee
Cisco Employee

Unfortunately, none of the report resources support filtering, as noted in the "Resource Information" infobox.

Have you tried looking into the Client Sessions resource instead?