# in objects name are not found via REST API

Host or service objects having # in its name are found via icinga2 object list but not via REST API (404, “No objects found.”). Is this a bug?

How does the API request look like?

curl -k -s -u user:password ‘https://localhost:5665/v1/objects/services?service=a#b!linux_cpuload