Forum Discussion
Satoshi_Toyosa1
Jul 11, 2017Employee
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"}'