List single record from data-group on CLI

I’m trying to query the data of a particular record within a data-group via the command line. However when I pass in the record name it still returns all records.

user1@LTM1:Active:Changes Pending] ~ # tmsh list ltm data-group internal ants_test_dg records { record_one }
ltm data-group internal ants_test_dg {
    records {
        record_one {
            data value_one
        }
        record_three {
            data value_three
        }
        record_two {
            data value_two
        }
    }
}

I’m sure there must be a simple thing I’m missing here, could someone please advise?

Many thanks

Ant

Hi Anthony,

I think, records command not use for listing.

Hope this will work:

tmsh list ltm data-group internal ants_test_dg | grep -A 2 "record_one"

Thanks for the quick response eaa, I should be able to work with that. I was working from that doc initially but hadn’t twigged that list had such limited options.

Thanks again,

Ant