Forum Discussion

tperrysov_18165's avatar
tperrysov_18165
Icon for Nimbostratus rankNimbostratus
Jan 06, 2015

404 Errors for REST Services - BigIP Virtual Edition

I just installed the demo version of the the BIG-IP Virtual Edition. After going through the setup I get a 404 Error when trying to access the REST API as admin, or as a user I created. Is there something I need to enable to get the rest services working? I have tried many examples all with the same results. Any help is appreciated.

 

curl -k -u admin:admin -X GET https://10.10.44.2/mgmt/tm -v

 

  • Hostname was NOT found in DNS cache
  • Trying 10.10.44.2...
  • Connected to 10.10.44.2 (10.10.44.2) port 443 (0)
  • TLS 1.0 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
  • Server certificate: localhost.localdomain
  • Server auth using Basic with user 'admin'

GET /mgmt/tm HTTP/1.1 Authorization: Basic YWRtaW46Vm13YXJlUzB2 User-Agent: curl/7.37.1 Host: 10.10.44.2 Accept: /

 

< HTTP/1.1 404 Not Found < Date: Tue, 06 Jan 2015 17:31:12 GMT * Server Apache is not blacklisted < Server: Apache < X-Frame-Options: SAMEORIGIN < Transfer-Encoding: chunked < Content-Type: text/plain; charset=ISO-8859-1 < * Connection 0 to host 10.10.44.2 left intact

 

5 Replies

  • John_Gruber_432's avatar
    John_Gruber_432
    Historic F5 Account

    Please confirm this is TMOS 11.5 or higher. iControl REST was GAed in 11.5. It was EAed in 11.4, but required you to enable the service manually. If you are using 11.4, please see the 11.4 iControl REST User's Guide on how to enable the service. Personally... upgrade to 11.5+. We learned enough in the EA phase to change some things. Might as well learn what's current.

    When you connect to iControl REST, the Server response header will not show as Apache, but as:

    Server: com.f5.rest.common.RestRequestSender

    If you are certain you are on 11.5+, are you sure you have direct access to the BIG-IP's management interface on that URL? Open the same URL in firefox or Chrome. What do you get?

    Personally I toolsmith my REST queries in Chrome's POSTMAN application. Makes iControl REST use nice and easy. You can open one tab in the webui and have another tab issuing REST calls.

    • satya07hyd_8175's avatar
      satya07hyd_8175
      Icon for Nimbostratus rankNimbostratus
      11.3 is the one available as trial version. So no REST calls work on 11.3 right? https://www.f5.com/trial/secure/big-ip-ltm-virtual-edition.php
    • Joe_Pruitt's avatar
      Joe_Pruitt
      Yes, REST was EA in 11.5 and went GA in 11.6. For versions prior to 11.5, you will have to use the SOAP interface.
  • DOH! I thought I downloaded the latest, as it was what was pointed from the main site. However it was pointing to 11.3 for the trial version. After getting my licensed version of 11.6 installed I am able to get to hit the REST api as expected. Thanks for the quick response.