Forum Discussion
Luan_118878
Nimbostratus
Mar 26, 2014How 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) Cou...
- Mar 27, 2014
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
uni_87886
Cirrostratus
Mar 27, 2014You 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- uni_87886Mar 27, 2014
Cirrostratus
Note: I didn't look at what you were trying to achieve, only at why your curl failed
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