Forum Discussion
Dennis_Israelss
Nimbostratus
Nov 08, 2017Help with $filter and or operator
Hi! I have ~15 partitions and want to filter out two partitions. I've read this and thought this would be a valid query:
https://fqdn:443/mgmt/tm/ltm/profile/client-ssl/?$filter=partition+eq+PART-1+or+partition+eq+PART-2
But I'm getting the following error:
Text: u'{"code":400,"message":"Query parameter $filter has invalid value partition eq PART-1 or partition eq PART-2.","errorStack":[]}'
The partition names is PART-1 and PART-2 and I want all client SSL profiles in those partitions. If I filter for only one partition it works fine:
https://fqdn/mgmt/tm/ltm/profile/client-ssl/?$filter=partition+eq+PART-1
If you're using curl or some scripting language that associates the dollar sign with a variable you need to escape it. Example:
\$filter=partition+eq+PART-1
/Patrik
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