iControl REST 101 – Creating Objects
If you’ve been following along so far you’ve gotten an idea about what iControl REST is all about, seen how to get up and running so you can send commands via cURL to the API, parsed some responses, ...
Published Feb 20, 2014
Version 1.0Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Colin_Walker_12
Historic F5 Account
Joined May 12, 2005
Tewfik_Megherbi
Jul 01, 2014Ret. Employee
Hi Colin,
I've tried above command with curl v7.34 for win64 but get following error message :
command : curl -sk -u admin:admin https://10.128.1.245/mgmt/tm/net/self/ -H "Content-Type: application/json" -X POST -d "{"name":"cw_test2","address":"10.10.10.3/8","vlan":"internal2"}"
Output: {"code":400,"message":"Found invalid JSON body in the request.","errorStack":[]}
Any idea on how to solve the problem ?
Thanks