Forum Discussion
Error loading template under transaction using iControl REST
I am creating an auto-deployment tool that uses iControl REST API to deploy iApp services, however I ran into issues when loading iApp templates under transaction.
Below is the simplified scenario for the error. I was using 11.6.1 VE (BIG-IP 11.6.1 Build 0.0.317 Final).
1) Create a transaction: POST to /mgmt/tm/transaction 2) Load template under the transaction: POST to /mgmt/tm/sys/application/template with HTTP header "X-F5-REST-Coordination-Id" set to the transaction id. To keep the test case simple, I used empty string for each template section. Below is the body of the POST message:
{ "name": "UnitTest_template", "partition": "Common", "fullPath": "/Common/UnitTest_template", "actionsReference": { "items": [{ "name": "definition", "fullPath": "definition", "htmlHelp": "", "implementation": "", "presentation": "" }] } }
3) Commit the transaction: PATCH to /mgmt/tm/transaction/transactionId with body set to "{ \"state\": \"VALIDATING\" }". The commit call would get the following error:
{"code":409,"message":"transaction failed:\"actions\" may not be specified in the context of the \"create\" command. \"actions\" may be specified using the following commands: edit, list, modify","errorStack":[]}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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