Maximo Open Forum

 View Only
  • 1.  REST API Invocation in a SNO Cluster

    Posted 24 days ago

    I can invoke our SNO Cluster Maximo Manage with this URL

     https://demo.manage.demo.apps.sno-cluster.{DNS}/maximo/oslc/graphite/manage-shell/index.html

    Is the public rest API in manage also being served using this system property mxe.oslc.restwebappurl if so are customers supposed to put something there because it was localhost when I looked, so I changed that to https://demo.manage.demo.apps.sno-cluster{DNS}/maximo

    A working REST API invoked through POSTMAN in a Maximo 7.6 system looks like this for me

    https://maximoserver.DNS:443/maxrest/oslc/os/mxasset?oslc.select=siteid,assetnum&oslc.where=assetnum=12710&lean=1&apikey={***********}

    I can hit this URL in SNO

    https://demo.manage.demo.apps.sno-cluster.{DNS}/maximo/api/os/mxasset?oslc.select=siteid,assetnum&oslc.where=assetnum=12710&lean=1&apikey={****} this gives me a 400 Bad request with 

    reasonCode": "BMXAA0024E",
            "message": "BMXAA0024E - The action READ is not allowed on object ASSET. Verify the business rules for the object and define the appropriate action for the object.",
            "statusCode": "400"
    I went to google and other IBM sites and obviously maxadmin group can hit the MXASSET object structure 

    When I installed maximo I selected demo and demo as workspace and the app parameters so I am guessing the demo twice in my publicURL comes from there

    the maximo/api I derived just by looking at the Liberty pod as I saw many lines of a CRON using that notation

    I still cannot get the REST API working in SNO as I am using the apikey for maxadmin to get an Asset record .Can someone who had done this look and give me the correct URL that you all use in Manage 


    #Integrations
    #MaximoApplicationSuite

    ------------------------------
    Appu nair
    APPECM
    ------------------------------


  • 2.  RE: REST API Invocation in a SNO Cluster

    Posted 24 days ago
    Edited by Appu nair 23 days ago

    Maximo Open Forum

    Moremaximo remove preview
    Maximo Open Forum
    Hi All,Did any one used the legacy Rest API in MAS 9 to query the data using context /mxrest/rest/os ?. We are using MAS9 with SAML authentication enabled have
    View this on Moremaximo >

    @steven Shull has a reply, but I am not very sure how to do what is being mentioned there Maximo Open Forum

    Moremaximo remove preview
    Maximo Open Forum
    Hi All,Did any one used the legacy Rest API in MAS 9 to query the data using context /mxrest/rest/os ?. We are using MAS9 with SAML authentication enabled have
    View this on Moremaximo >

      .I kind of tried doing it but it doesn't look like it



    ------------------------------
    Appu nair
    APPECM
    ------------------------------



  • 3.  RE: REST API Invocation in a SNO Cluster

    Posted 23 days ago
    Edited by Appu nair 23 days ago

    OK I got one working, so  will continue based on that

    https://{{app}}.manage.{{workspace}}.apps.sno-cluster.{{DNS}}/maximo/api/os/mxapipo?apikey={{apikey from integration menu for a user like maxadmin}}

    So old MXPO might be mxapipo

    MXASSET might be mxapiasset

    Anyway I can invoke things wth mxapi for the time being

    EDIT: I don't know if I can attribute it to caching, but after I made the change to MXASSET 

    https://{{app}}.manage.{{workspace}}.apps.sno-cluster.{{DNS}}/maximo/api/os/MXASSET?apikey={{apikey from integration menu for a user like maxadmin}}&oslc.select=siteid,assetnum&oslc.where=assetnum=12710&lean=1

    The following call worked 

    So, for posterity, if MXASSET does not work.

    1. First, find the  Object Structure MXASSET and ensure you use the API key for user maxadmin.
    2. Go to Manage and under Security Groups and in my case maxadmin user is in maxadmin group so bring that on your screen.
    3. Go to the tab that says Object Structures and filter it for the OS you want for example  MXASSET
    4. Verify you see Green and Grant Access for the operation my case, I just need Read
    5. If you are able to change it then look in the left and say "Save Group"
    6. Re-attempt the query using Postman if it works, you are golden.
    7. IF not, bring up the OS this time in Integration and OS my example is MXASSET
    8. On the left is "Configure Object Structure Security" and in that popup screen, look for a toggle that is called "Use Object Structure for Authorization Name?" Our old Alt +F8 is MAXINTOBJECT.USEOSSECURITY.I think this is what Steven Shull was saying. There is also Add/Modify Signature options and I have toggles on in READ and al the other options.
    9. I don't think there is a save anywhere, but just toggling it on and off. In my case, my postman keeps erroring, so I figure I could try deleting the pod or restarting my VM. I restarted my VM, and my postman behaved.



    ------------------------------
    Appu nair
    APPECM
    ------------------------------