Forum Discussion
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.
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
- EmBee_57573Nimbostratus
Hi, you have to enable the REST process.
- Seth_81884Historic F5 Account
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
- Andrew_Le_12873Nimbostratus
With latest BIGIP version (eg, v11.6 and higher), REST service should automatically be running always.
- rogfut_281910Nimbostratus
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"]} ```
- rogfut_281910Nimbostratus
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/s/articles/icontrol-rest-101-getting-started
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com