DX Unified Infrastructure Management

 View Only
  • 1.  Why when I try to access the Web Services REST API do I get a 404 response?

    Posted May 09, 2018 10:05 AM

    If I open a browser and go to http://UMP_IP/rest/version-info I get a response like this:

     

    <version_info>
    <value>
    Nimsoft RESTful web services interface: version: 9.0.0-SNAPSHOT, build_number: 478
    </value>
    </version_info>
    If I go to http://UMP_IP/rest/ I get this:

    HTTP Status 404 - Not Found


    type Status report

    message Not Found

    description The requested resource is not available.


    Apache Tomcat/7.0.81

     

     

    Why is that? When I am trying to run the maintenancemode.py script aginst the web services API I get a result of the 404 as well and the script fails. If anyone has any ideas why this would happen or how to fix?



  • 2.  Re: Why when I try to access the Web Services REST API do I get a 404 response?
    Best Answer

    Broadcom Employee
    Posted May 09, 2018 10:28 AM

    Try this instead…

    http://ump_ip/rest/application.wadl

    That should get you started.



  • 3.  Re: Why when I try to access the Web Services REST API do I get a 404 response?

    Posted May 09, 2018 11:26 AM

    Ok that does seems to work alot better. Now when I use that in my maintenancemode.py script I get this error:

     

    DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): tstnimump01
    DEBUG:urllib3.connectionpool:http://tstnimump01:80 "POST /rest/maintenance_mode/Domain/Development/tstnimbus01/add_schedule HTTP/1.1" 404 967
    DEBUG:root:The status code from the create mm schedule call was 404

     

    But when I go to just the URL you gave me I do not get the 404 anymore. Any ideas?



  • 4.  Re: Why when I try to access the Web Services REST API do I get a 404 response?

    Broadcom Employee
    Posted May 09, 2018 11:34 AM

    Remove the "application.wadl” from your post, the wadl was just to show you the Rest interface.



  • 5.  Re: Why when I try to access the Web Services REST API do I get a 404 response?

    Posted May 09, 2018 12:39 PM

    Right I did not mean to include it. I removed it.



  • 6.  Re: Why when I try to access the Web Services REST API do I get a 404 response?

    Broadcom Employee


  • 7.  Re: Why when I try to access the Web Services REST API do I get a 404 response?

    Posted May 11, 2018 11:04 AM

    Thanks this allowed me to locate my issue, Thanks for the help.