🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
How to use where condition in SEMP V2 for subcripticTopics?
http://xx.x.xx.x/SEMP/v2/config/msgVpns/xxxxx-xxxx-xx/queues/xxx_xxx_xxx_Xxxx/subscriptions?where=subscriptionTopic==SLOG//* --> 400 error -->Cannot query an ancestor
http://xx.x.xx.x/SEMP/v2/config/msgVpns/xxxxx-xxxx-xx/queues/xxx_xxx_xxx_Xxxx/subscriptions?where=subscriptionTopic==#SLOG// -->200 but empty response
http://xx.x.xx.x/SEMP/v2/config/msgVpns/xxxxx-xxxx-xx/queues/xxx_xxx_xxx_Xxxx/subscriptions?where=subscriptionTopic==#SLOG* -->200 but empty response
http://xx.x.xx.x/SEMP/v2/config/msgVpns/xxxxx-xxxx-xx/queues/xxx_xxx_xxx_Xxxx/subscriptions?where=subscriptionTopic==SLOGCLIENT -->200 but empty response
Example Subscription topics: "#SLOG//CLIENT//CLIENT_ADDITION_SA/>" , "#SLOG//SYS//SY_SESSION_FAIL/>"
How to use where condition in SEMP V2 call for these kind of scenarios? The pattern (in where=) is matching with the subscriptionTopic but still I am getting empty response. What is the reason ? Is there any different way for these scenarios? Please provide some examples to use where condition.
Comments
-
Hello @Manikanta
Not all query-able items in SEMPv2 are able to be filtered. In the API docs, the "where" parameter is present where available and not present where it is not valid.
A good way to tell if "where" is valid (outside of the API docs) is to look in the Manager UI. If filtering is supported in the UI, then there is a SEMPv2 equivalent.
There is no filter support for subscriptionTopics.0