Forum Discussion
Do iControl Rest transactions work with PUT?
When I attempt to modify (PUT) a resource in a transaction. I get the error below on commit. POST commands work great in the transaction. Are PUT commands not supported in a transaction?
Thanks.
{"code":409,"message":"transaction failed:\"priority\" may not be specified in the context of the \"modify\" command. \"priority\" may be specified using the following commands: create, edit","errorStack":[]}6 Replies
- Yann_Desmarest_
Nacreous
Hello,
The error is more that the "priority" attribute is wrongly specified for the modify (PUT) command. Anyway, PUT should work fine under a transaction
- youngm_136005
Nimbostratus
I'm creating an iRule there is no priority attribute. This same command works perfectly when not in a transaction. POST commands work perfectly when in a transaction. - Josh_Jacobson_4
Altostratus
I am having a similar issue with irule transactions - I can create a valid transaction, add an irule (create via POST), then commit the transaction - and everything works great. When I do the exact same thing but update (via PUT) instead of create, the transaction completes, log entries even show up in /var/log/audit and /var/log/restjavad-* (on the LTM), everything looks wonderful ... but the irule doesn't actually get updated. If I run the same PUT call outside of the transaction, the irule updates just fine for me too. I'm on 12.1.1 LTM VE.
-Josh
Hello,
The error is more that the "priority" attribute is wrongly specified for the modify (PUT) command. Anyway, PUT should work fine under a transaction
- youngm_136005
Nimbostratus
I'm creating an iRule there is no priority attribute. This same command works perfectly when not in a transaction. POST commands work perfectly when in a transaction. - Josh_Jacobson_4
Altostratus
I am having a similar issue with irule transactions - I can create a valid transaction, add an irule (create via POST), then commit the transaction - and everything works great. When I do the exact same thing but update (via PUT) instead of create, the transaction completes, log entries even show up in /var/log/audit and /var/log/restjavad-* (on the LTM), everything looks wonderful ... but the irule doesn't actually get updated. If I run the same PUT call outside of the transaction, the irule updates just fine for me too. I'm on 12.1.1 LTM VE.
-Josh
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