Forum Discussion

carol's avatar
carol
Icon for Altostratus rankAltostratus
Jul 26, 2019
Solved

TMSH APM policy modify

Hello,

 

I am trying to write a script that will ouput tmsh commands to update an APM policy. What it needs to do is to add a new ACL to LDAP group mapping. So the command I use is something like this:

 

modify apm policy agent resource-assign TEST_POLICY  rules { { acls add { my_acl } } }

 

However instead of appendig it just deletes all existing ACLs. What am I doing wrong? :-)

 

Regards

Carol

  • no direct experience, but have you tried "acls add" and then including the old and new ones?

3 Replies

  • no direct experience, but have you tried "acls add" and then including the old and new ones?

  • i tried this and with adding old a new it works, not what you want exactly but perhaps a workable workaround.

     

    the whole apm policy agent tmsh commands are a bit different, they seem more intented to build something from scratch then modifying elements afterwards

     

    someone else was looking for something similar but didn't get a answer either:

    https://devcentral.f5.com/s/question/0D51T00006i7hpq/adding-new-rules-to-a-resourceassign-using-tmsh

     

    you can always open a support ticket, perhaps they know or there is an RFE for this.

  • Thank you! I totally forgot to come back. I will probably have to go with the first option. Thanks again