cancel
Showing results for 
Search instead for 
Did you mean: 

iControl REST filter from subcollections

Fred1979
Nimbostratus
Nimbostratus

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 2

Hello Fred.

 

Check this:

https://devcentral.f5.com/s/question/0D51T000077D581/icontrol-rest-filtering-by-anything-other-than-partition

 

Regards,

Dario.

Regards,
Dario.

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.