Forum Discussion
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.
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).
Recent Discussions
Related Content
* 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