API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  IBM API Connect v10 Analytics REST API strange error

    Posted Fri August 04, 2023 06:44 AM

    Hi,

    We are trying to get some analytics event data out of the APIC v 10 to do some customized analysis. All we need is just a few fields and not the entire event record object. The documentation seem to support the filtering of the fields and states that we can pass a query parameter 'fields' and pass a comma separated list of the fields that we want included in the result set. However, when we try to call the API with the fields query parameter, it gives an error saying:

    {
        "status"400,
        "message": [
            "The request contains an unknown query parameter 'fields' with the value 'plan_name'."
        ]
    }
    The api documentation can be found here. Any help in this regard will be highly appreciated.


    ------------------------------
    Irfan Rashid
    ------------------------------


  • 2.  RE: IBM API Connect v10 Analytics REST API strange error
    Best Answer

    Posted Mon August 07, 2023 01:59 AM

    Hiya

    what are exact version of apic are you using? For future reference it helps to include that in every post here. ("V10" includes every release in the last 3 years - about 20 in total- so not hugely useful to narrow things down)

    The fields parameter was added in 10.0.5.3, what version are you using?

    Cheers

    Chris



    ------------------------------
    Chris Dudley
    ------------------------------



  • 3.  RE: IBM API Connect v10 Analytics REST API strange error

    Posted Mon August 07, 2023 02:10 AM
      |   view attached

    Hi Chris,

    Thanks for answering. I am running an older version 10.0.5.1 so this explains the lack of fields parameter support. Attached the screenshot as well mentioning the version number.



    ------------------------------
    Irfan Rashid
    ------------------------------



  • 4.  RE: IBM API Connect v10 Analytics REST API strange error

    Posted Mon August 07, 2023 02:48 AM

    Hiya Irfan

    Yes that explains it.

    Its well worth upgrading to 10.0.5.4 (latest) as there are quite a few new analytics features in the more recent fixpacks (performance tuning, scroll api for mass data export, new dashboards and ability to save and share queries)

    Cheers

    Chris



    ------------------------------
    Chris Dudley
    ------------------------------