Just noticed that in H2303 the value in Contains filter has to be enclosed in a list and without it the query doesn't work. This broke our in-house code.
https://..fi/rest/inventory/v1/machines?filter={"filters":[{"name":"user_ids","value":"S-1-5-21-..-179528","type":"Contains"},{"name":"desktop_pool_id","value":"a7683903-6e1b-46c0-9b2c-2de54e19833a","type":"Equals"}],"type":"And"}
yields
{
"status": "BAD_REQUEST",
"timestamp": 1683903443075,
"errors": [{
"error_key": "common.bad.payload.error",
"error_message": "Bad payload error."
}]}
If I enclose the value in Contains filter in brackets [] it works
https://..fi/rest/inventory/v1/machines?filter={"filters":[{"name":"user_ids","value":["S-1-5-21-..-179528"],"type":"Contains"},{"name":"desktop_pool_id","value":"a7683903-6e1b-46c0-9b2c-2de54e19833a","type":"Equals"}],"type":"And"}
However Horizon Filter and Pagination guide states:
Following filter types are supported in Horizon Server REST APIs –
A bug maybe?