Forum Discussion

Jeff_Witkowski_'s avatar
Jeff_Witkowski_
Icon for Altostratus rankAltostratus
Mar 29, 2018

LB Method filter not working

My iControl REST call is below followed by a bash error and I think I have some syntax error: curl -sk -u admin:'' $filter=partition+eq+Shared&?$select=name,loadBalancingMode

 

 

My error return is: -bash: ?=name,loadBalancingMode: command not found

 

Followed by tons of raw looking data that isn't filtered by my partition nor in JSON output format. This seems rather difficult to unravel following the guide.

 

1 Reply

  • You need to put the URL between quotes or double quotes. Without quotes bash will interpret the ampersand as the end of the command and put it in the background, which makes no sense. Try this:

    curl -sk -u admin:'' 'https://10.x.x.x/mgmt/tm/ltm/pool/?$filter=partition+eq+Shared&$select=name,loadBalancingMode'
    

    And you also had a questionmark in your query that doesn't need to be there (between Shared and select).