F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Anton_Koldaev_2's avatar
Anton_Koldaev_2
Icon for Nimbostratus rankNimbostratus
Feb 12, 2016
Solved

How to read class value by key?

BigIP LTM 11.5.1 I have a data group type string. And I have key-value pairs inside. Data group name: test_dg String Records: key1 := value1 key2 := value2 How can I read "test[key...
  • VernonWells's avatar
    Feb 12, 2016
    set first_value [class lookup key1 test_dg]
    set second_value [class lookup key2 test_dg]
    

    As the documentation states, this is equivalent to:

    set first_value [class match -value key2 equals test_dg]
    set second_value [class match -value key2 equals test_dg]