Developer

 View Only
  • 1.  Aruba Cop API - how to query for a null field

    Posted Dec 14, 2022 11:48 AM
    I am working with the aruba cop api and want to do the following URL query

    https://apigw-aruba-cop.cit.buffalo.edu/monitoring/v2/aps?site=Norton

    but instead of searching for a specific site I want to pull up all records where site = null

    I can not seem to figure out how to do that in the url?  I looked at all the docs and I can not find one for cop/central that list the filtering options like contains, greater than, less, than etc.   I looked at some of the other aruba doc, like clearpass says to do it this way.

    {"fieldName":{"$exists":false}}

    but I can not seem to get that format to work in the url.  anyone have any ideas?


  • 2.  RE: Aruba Cop API - how to query for a null field

    Posted Dec 15, 2022 05:16 AM
    The field filtering in ClearPass is different than for Central/CoP.

    I don't think you can filter on a null value in the Central API today. You could request all APs and then in your script filter, or contact Aruba Support to verify if it is really not possible and get this type of filtering added to the Central API.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 3.  RE: Aruba Cop API - how to query for a null field

    Posted Dec 16, 2022 09:56 AM
    To close the loop on this.   I opened up a tac case.   The official answer is you can't search on field = null in aruba-cop api.  You also can't do stuff like greater than, less than, contains, or multiples fields with an or.  So I will have to do it the hard way, pull all 10k access points and then find the ones with no site assigned.