Forum Discussion
Aaron_Forster_3
Jan 03, 2013Historic F5 Account
Deploy an application Service from an iApp template via tmsh
I've seen a couple of refernces to how to do this but nothing fully fledged out so here is my attempt to do so.
The actual man page of the command can be viewed by issuing the following from wi...
Wand_97484
Dec 22, 2015Nimbostratus
Hi,
here is a example curl for the f5.http iApp (11.6 HF4) with basic settings (not sure if trafficgroup value and devicegroup value can be ommited:
curl -k -u user:password https://bigip/mgmt/tm/sys/application/service -H "Content-Type: application/json" -X POST -d '{"kind":"tm:sys:application:service:servicestate","name":"UNIQUEID1234","partition":"Common","deviceGroup":"/Common/device-group-failover-33e71314eb96","inheritedDevicegroup":"true","inheritedTrafficGroup":"true","strictUpdates":"enabled","template":"/Common/f5.http","templateModified":"no","trafficGroup":"/Common/traffic-group-1","tables":[{"name":"basic__snatpool_members"},{"name":"net__snatpool_members"},{"name":"optimizations__hosts"},{"name":"pool__hosts","columnNames":["name"],"rows":[{"row":["hostname1.domain.tld"]},{"row":["hostname2.domain.tld"]}]},{"name":"pool__members","columnNames":["addr","port","connection_limit"],"rows":[{"row":["10.0.0.1","80","0"]},{"row":["10.0.0.2","80","0"]},{"row":["10.0.0.3","80","0"]}]},{"name":"server_pools__servers"}],"variables":[{"name":"client__http_compression","encrypted":"no","value":"/create_new"},{"name":"monitor__monitor","encrypted":"no","value":"/create_new"},{"name":"monitor__response","encrypted":"no","value":"myupstatus"},{"name":"monitor__uri","encrypted":"no","value":"/mycheckpage"},{"name":"net__client_mode","encrypted":"no","value":"wan"},{"name":"net__server_mode","encrypted":"no","value":"lan"},{"name":"pool__addr","encrypted":"no","value":"1.1.1.3"},{"name":"pool__pool_to_use","encrypted":"no","value":"/create_new"},{"name":"pool__port","encrypted":"no","value":"80"},{"name":"ssl__mode","encrypted":"no","value":"no_ssl"},{"name":"ssl_encryption_questions__advanced","encrypted":"no","value":"no"},{"name":"ssl_encryption_questions__help","encrypted":"no","value":"hide"}]}'
Had to query an Application created from the f5.http iApp in the firstplace and walk through the definition:
curl -k -u user:password https://bigip/mgmt/tm/sys/application/service/~Common~UNIQUEID1234.app~UNIQUEID1234
BR JP
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