Forum Discussion
Pedro_Haoa
Mar 23, 2020Ret. Employee
Hi,
Here some quick alternatives for your project.
Option 1: Concatenate tmsh in Advanced Shell
tmsh create ltm virtual test_vs destination 10.1.1.5:80 disabled pool test_pool ip-protocol tcp source-address-translation { type automap } && tmsh modify ltm virtual-address 10.1.1.5 enabled no arp disabled icmp-echo disabled
Option 2: Concatenate iControl REST
curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual -H "Content-Type: application/json" -X POST
-d '{"name":"test_vs", \
"destination":"10.1.1.5:80", \
"mask":"255.255.255.255", \
"pool":"test_pool", \
"profilesReference": {"items": [ {"context": "all", "name": "tcp"}] }, \
"sourceAddressTranslation": {"type": "automap"} }'
curl -sku admin:admin https://<host>/mgmt/tm/ltm/virtual-address -H "Content-Type: application/json" -X POST
-d '{"name":"10.1.1.5", \
"address":"10.1.1.5", \
"arp":"enabled", \
"enabled":"yes", \
"icmpEcho":"enabled" }'
I hope it helps.
Cheers!