Maximo

 View Only
  • 1.  Accessing IBM maximo data programmatically

    Posted Mon September 18, 2023 12:19 PM

    I have a trial version of IBM maximo, I want to know if I can make API calls to this trial version and get specific data ( Eg. work orders). I have not been able to find maximo host id and port on IBM maximo suite application. I'm sorry if this sounds stupid, however please understand that I'm completely new to Maximo. Thanks in advance



    ------------------------------
    pranav kakade
    ------------------------------


  • 2.  RE: Accessing IBM maximo data programmatically

    Posted Tue September 19, 2023 01:48 AM

    Looks like it is disabled on that trial. It would be surprise, if that would we allowed.



    ------------------------------
    Juris Flugins
    ------------------------------



  • 3.  RE: Accessing IBM maximo data programmatically

    IBM Champion
    Posted Tue September 19, 2023 02:40 AM
    Edited by Jan-Willem Steur Tue September 19, 2023 02:41 AM

    Hi Pranav,  the default approach in IBM Maximo Application Suite is to create an API Key for the user. Since it is a trial version I assume that the Maximo Demo database is installed and by default the user Wilson is used. As from MAS8 version 9 it is possible to create your own API keys in a new Graphite application. The API key in combination with the IBM MAS URL should be enough to call the different object structures (OSLC) (port number is not required, since I assume this is an SSL trusted DNS). In your case with this URL and API key you should be able to call the mxapiworkorder OS to retrieve data. If you are not able to create an API key (search for API Key in the search bar (upper lefft corner), then this feature might be disabled in the trial version (which I think will be the case)



    ------------------------------
    Jan-Willem Steur
    Jan-Willem
    ------------------------------



  • 4.  RE: Accessing IBM maximo data programmatically

    IBM Champion
    Posted Tue September 19, 2023 11:01 AM

    Hi Pranav,

    The documentation for the Maximo API can be found here:

    https://developer.ibm.com/apis/catalog/maximo--maximo-manage-rest-api/Introduction

    I have written and extension for VS Code that interacts with the Maximo APIs and the source is available on GitHub here:

    https://github.com/sharptree/vscode-autoscript-deploy

    Specifically the Maximo client in NodeJS is here:

    https://github.com/sharptree/vscode-autoscript-deploy/blob/main/src/maximo/maximo-client.js

    This implements BASIC / MAXAUTH / Form Authentication (Maximo 7.6) and OIDC (username / password) and API authentication for MAS8, so you can see how all of those work.

    Note that when using an API key that the standard rest url changes to use the "api" context path.

    Hope that is helpful and if you have any specific questions please feel free to reach out.

    Regards,

    Jason



    ------------------------------
    Jason VenHuizen
    https://sharptree.io
    https://opqo.io
    ------------------------------