F5允许用户访问iControl RESTful API
我正在尝试使用REST API与F5负载平衡器进行交互。 我已经validationiControl已启用,但是当我尝试运行一个命令时,我被告知我是未经授权的。 curl -k -u someone -H "Content-Type: application/json" -X GET https://f5.example.com/mgmt/ Enter host password for user 'someone': {"code":404,"message":"http://localhost:8100/mgmt/","restOperationId":202459,"errorStack":["com.f5.rest.common.RestWorkerUriNotFoundException: http://localhost:8100/mgmt/","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"]} 我的用户使用Active Directory进行身份validation。 我是否需要明确授予用户使用REST API的权限? 我需要一个本地帐户吗? 更新 这是另一个例子 事实上,用户“某人”确实存在,因为我是如何login到门户网站的。 curl -k -u someone -H "Content-Type: application/json" -X GET https://f5.example.com/mgmt/tm/sys Enter host password for user 'someone': {"code":401,"message":"Authorization failed: no […]