Cloud Pak for Data

 View Only
Expand all | Collapse all

Using curl to access the InfoSphere Information Analyzer HTTP API

  • 1.  Using curl to access the InfoSphere Information Analyzer HTTP API

    Posted Thu March 17, 2022 05:37 PM
    I'd eventually  like to use the the HTTP API of InfoSphere Information Analyzer to do things like kick off Data Quality Analysis jobs, but for starters I'm trying to call the simple list projects function.

    I see the documentation of using the IAAdmin command to do so, but since it's a REST API it shouldn't be limited to that tool.
    Can anyone provide an example of using curl to list projects (or something else simple)?

    So far I've tried:
    curl -k --basic -v -u myuser:mypw https://theip:theport/ibm/iis/ia/api/projects

    but I get a 401 unauthorized response.

    ------------------------------
    Steve Prior
    ------------------------------

    #CloudPakforDataGroup


  • 2.  RE: Using curl to access the InfoSphere Information Analyzer HTTP API

    Posted Wed March 23, 2022 01:38 PM
    Just to document the answer here because it doesn't seem to be anywhere in the IBM docs.  When you use the IIS REST API you don't use the regular password for the user, you use the APIKey for that user instead.  So once I generated the APIKey the curl command above works as is.

    This question stumped a lot of people.

    ------------------------------
    Steve Prior
    ------------------------------