Forum Discussion
S__233_bastien2
Nimbostratus
Jul 06, 2017Update/modify an iApp instance with iControlREST
Hi, I've build an iApp, and I would like to create/update services using iControl REST. Creation is working fine: ↪ curl -sk -u admin:password -H "Content-Type: application/json" -X POST --d...
Satoshi_Toyosa1
Jul 11, 2017Ret. Employee
Use the
PATCH method to modify the field(s).
Check the
selfLink field in the output you got when you created the iApp. That's where the endpoint (URL) is. In your case, that's
"selfLink": "https://localhost/mgmt/tm/sys/application/service/~Common~test.app~test?ver=13.0.0",
For example,
Create an iApp (TestApp):
curl -sku admin: https:///mgmt/tm/sys/application/service \
-H "Content-Type: application/json" \
-X POST -d@iAppMakeDel.dat
The output says:
{
...
"fullPath":"/Common/TestApp.app/TestApp",
"selfLink":"https://localhost/mgmt/tm/sys/application/service/~Common~TestApp.app~TestApp?ver=11.6.1",
...
}
Get the iApp (equivalent to
tmsh list sys application service TestApp.app/TestApp😞
curl -sku admin: \
https:///mgmt/tm/sys/application/service/~Common~TestApp.app~TestApp
Modify the Description field:
curl -D - -sku admin: \
https:///mgmt/tm/sys/application/service/~Common~TestApp.app~TestApp \
-X PATCH -H "Content-Type: application/json" \
-d '{"description":"Hello World"}'
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
