Forum Discussion

Kar44's avatar
Icon for Nimbostratus rankNimbostratus
Mar 24, 2023

API REST gtm filter parameter

Hello all,

When I send this call to the GTM BIGIP ver=

curl -sku "admin:password" "https://<IP or Hostname>/mgmt/tm/ltm/pool?$select=name"

The BIGIP reply with all json field not just the pool name. I would like to receive name only

1 Reply

  • HI Kar44, the selection just cuts down on the number of fields within the item that are returned, but the response is still going to be valid json. That said, you can use jq to pull that out:

    f5devcentral@jrahm-imac EQ Episode Audio % curl -sku "admin:admin" \ '$select=name' \
    | jq '.items[].name'
    Results in: