Forum Discussion
Ken_Bocchino_49
Mar 12, 2015Historic F5 Account
Here is a rest example:
curl -ku \
$username:$password \
https://$device/mgmt/tm/sys/application/service \
-H "Content-Type: application/json" -X POST \
-d '{"partition":"Common","template":"tempatename","inheritedTrafficGroup":"false","name":"deployment",
"variables":[
{"name":"configuration__provision","encrypted":"no","value":"yes"},
{"name":"configuration__aws_log_stream","encrypted":"no","value":"something"}
],
"tables":[{"name":"configuration__destination","columnNames":[
"ip",
"port",
"mode",
"backendmembers",
"monitoruser",
"monitorpass",
"monitoruri",
"monitorexpect",
"asmtemplate",
"l7ddos",
"ipintel",
"caching",
"tcpoptmode",
"fqdns",
"oneconnect",
"sslcert",
"sslkey",
"sslchain",
"correctforbugblank"
],"rows":[{
"row":[
"something",
"80",
"http",
"something",
"",
"",
"/test.html",
"",
"something",
"yes",
"yes",
"yes",
"wanlan",
"something",
"yes",
"",
"",
"",
"correctforbugblank"
]},{"row":[
"something",
"443",
"sslhttp",
"something",
"",
"",
"/test/monitor.html",
"",
"something",,
"yes",
"yes",
"yes",
"wanlan",
"something",
"yes",
"something",
"something",
"something",
"correctforbugblank"
]}]}]}'