Forum Discussion
Fred1979
Nimbostratus
Oct 30, 2020iControl REST filter from subcollections
Hi,
I want to find where some node is used in different pool in my bigIp
so i did something like that
curl -sku admin:pass https://<ip>/mgmt/tm/ltm/pool?\&expandSubcollections=true\&\$select=name,partition,membersReference/items/name\&\$filter=membersReference/items/name%20eq%20myServerName| jq
{
"code": 400,
"message": "Query parameter $filter has invalid value membersReference/items/name eq myServerName.",
"errorStack": [],
"apiError": 1
}
someone does know how to make a filter on subCollection variable
2 Replies
- Dario_Garrido
Noctilucent
Hello Fred.
Check this:
https://devcentral.f5.com/s/question/0D51T000077D581/icontrol-rest-filtering-by-anything-other-than-partition
Regards,
Dario.
- jaikumar_f5
Noctilucent
I dont think there's an option for this. from the guide its application for partition alone. Refer below,
Parameter Description Specifies an administrative partition to query for a result set. This parameter filters the result set by partition name and does not fully implement the corresponding $filter OData query parameter. The asm module fully implements the OData query parameter
But as a workaround, you can use the jq and do the select filter to extract the pool name for a given node name.
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