Forum Discussion
Mike_Rizzo_6112
Nimbostratus
Jun 30, 2015400 error when creating LTM monitor with iControlREST
Hello DevCentral community,
I'm getting started using iControl REST and I'm getting an unexpected error when I try to send a POST to create a new LTM monitor. Here is what I'm sending with curl:
...
nathe
Cirrocumulus
Jun 30, 2015Mike,
You need to go into the Sub-module to do this. Try:
curl -sk -u admin:secret https://bigip-lab-box.local/mgmt/tm/ltm/monitor/http -H 'Content-Type: application/json' -X POST -d '{"name":"testmonitor","defaultsFrom":"/Common/http","destination":"*:80","interval":"5","timeout":"16","send":"GET /up.txt","recv":"200"}'
Notice the http after ...ltm/monitor/
This worked for me.
Hope this helps,
N
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects