For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Fred1979's avatar
Fred1979
Icon for Nimbostratus rankNimbostratus
Oct 30, 2020

iControl 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

  • Hello Fred.

     

    Check this:

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

     

    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.