Forum Discussion
syncretism
Jan 22, 2019Nimbostratus
Searching and Filtering Objects by Metadata
I've been adding some metadata to the WIPs in our f5 GTMs, eg
"metadata": [
{
"name": "xxAppName",
"persist": "true",
"value": "Web Service"
},
{
"name": "xxA...
Satoshi_Toyosa1
Jan 22, 2019Ret. Employee
You can use $select. See "About query parameters" in iControl REST User Guide Version 13.1 (pp. 28-29).
For example, GET /mgmt/tm/sys/version (equivalent to tmsh show sys version) returns Build, Edition, Product, Title and Version. When you add the query string $select=Edition, the call returns only the Edition field (and its parents). e.g.,
curl -sku : https://localhost/mgmt/tm/sys/version?\$select=Edition | python -m json.tool
{
"entries": {
"https://localhost/mgmt/tm/sys/version/0": {
"nestedStats": {
"entries": {
"Edition": {
"description": "Point Release 7"
}
}
}
}
}
}
The above is from LTM but it should also work on GTM/DNS.
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