Luan_118878
Mar 26, 2014Nimbostratus
Solved
How do I create a route-domain in vcmp using curl?
curl -k -u admin:admin1! -H "Content-Type: \ application/json" -X POST -d {"name":"d2vc1fc1","id":2,"vlans":["vlan1101","vlan1201","vlan101"]} https://10.1.1.12/mgmt/tm/net/route-domain curl: (6) Couldn't resolve host 'id' curl: (3) [globbing] error: bad range specification after pos 8
Thanks.
Regards,
-Luan
You need to protect your strings from interpolation. See below, I have added single quotes around your username and password, and around your POST data:
curl -k -u 'admin:admin1!' -H "Content-Type: \ application/json" -X POST -d '{"name":"d2vc1fc1","id":2,"vlans":["vlan1101","vlan1201","vlan101"]}' https://10.1.1.12/mgmt/tm/net/route-domain