Forum Discussion
Kar44
Mar 24, 2023Nimbostratus
API REST gtm filter parameter
Hello all, When I send this call to the GTM BIGIP ver=14.1.4.4 curl -sku "admin:password" "https://<IP or Hostname>/mgmt/tm/ltm/pool?$select=name" The BIGIP reply with all json field not just the ...
JRahm
Mar 24, 2023Admin
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" \ 'https://10.0.2.17/mgmt/tm/gtm/pool/a?$select=name' \
| jq '.items[].name'
Results in:
"gslbpool1"
"gslbpool2"
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects