Forum Discussion

Dennis_Israelss's avatar
Dennis_Israelss
Icon for Nimbostratus rankNimbostratus
Nov 08, 2017

Help 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

1 Reply

  • 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