For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

youngm_136005's avatar
youngm_136005
Icon for Nimbostratus rankNimbostratus
Apr 29, 2016

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

  • 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's avatar
      youngm_136005
      Icon for Nimbostratus rankNimbostratus
      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's avatar
      Josh_Jacobson_4
      Icon for Altostratus rankAltostratus

      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's avatar
      youngm_136005
      Icon for Nimbostratus rankNimbostratus
      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's avatar
      Josh_Jacobson_4
      Icon for Altostratus rankAltostratus

      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