Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Unable to access F5 REST

I am using Firefox's RESTClient to access F5 REST.

URL: https://10.99.133.250/mgmt/tm/ltm

And also included basic authorization in the request header.

But when I submit the request, I get following error:

     {
      "code": 404,
      "message": "http://localhost:8100/mgmt/tm/ltm",
      "restOperationId": 2704231,
      "errorStack": [
        "com.f5.rest.common.RestWorkerUriNotFoundException: http://localhost:8100/mgmt/tm/ltm",
        "at com.f5.rest.common.RestServer.trySendInProcess(RestServer.java:126)",
        "at com.f5.rest.common.RestRequestReceiver.dispatchToService(RestRequestReceiver.java:93)",
        "at com.f5.rest.common.RestRequestReceiver.processNext(RestRequestReceiver.java:57)",
        "at com.f5.rest.common.RestHelper$2.run(RestHelper.java:1480)",
        "at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)",
        "at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)",
        "at java.lang.Thread.run(Unknown Source)\n"
      ]
    }

Please help me to solve this.

2
Rate this Question
Comments on this Question
Comment made 29-Jul-2016 by rogfut 0

I am having the same issue, but the icrd service is running as expected.

root@(bigip)(cfg-sync Standalone)(Active)(/Common)(tmos)# show sys service icrd icrd run (pid 10289) 2 minutes, 1 start ``` curl -sk -u admin:admin https://bigip/mgmt/tm

{"code":404 "message":"http://localhost:8100/mgmt/tm" "restOperationId":184853 "errorStack":["com.f5.rest.common.RestWorkerUriNotFoundException: http://localhost:8100/mgmt/tm" "at com.f5.rest.common.RestServer.trySendInProcess(RestServer.java:231)" "at com.f5.rest.common.RestRequestReceiver.dispatchToService(RestRequestReceiver.java:93)" "at com.f5.rest.common.RestRequestReceiver.processNext(RestRequestReceiver.java:57)" "at com.f5.rest.common.RestHelper$2.run(RestHelper.java:1910)" "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)" "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)" "at java.lang.Thread.run(Thread.java:722)\n"]} ```

0
Comment made 29-Jul-2016 by rogfut 0

Looks like I wasn't adding /ltm on the end of my url.

This is working:

curl -sk -u admin:admin https://bigip/mgmt/tm/ltm

In the getting started document, the example uses https://bigip/mgmt/tm

https://devcentral.f5.com/articles/icontrol-rest-101-getting-started#.UvwckxCwI3U

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

From TMOS..

(tmos)# show sys service icrd

icrd down 3 seconds, normally up

(tmos)# start sys service icrd

(tmos)# show sys service icrd

icrd run (pid 6102) 1 minutes

If needed

(tmos)# stop sys service icrd

1
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi, you have to enable the REST process.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

With latest BIGIP version (eg, v11.6 and higher), REST service should automatically be running always.

0