This problem connects to other community but I would like to get a python answer.
I am creating an image service with query def.
I just create an image service (based on Mosaic). I load it into classic web map, set a query def and do a Save Layer.
When I show this image service in Web Map (classic) and Pro I can see the query def.
When I show the rest information I cannot see the query def.
I found no way in Python api or rest to change (or even see) the query def.
My understanding was that EVERYTHING is shown in the rest.
I do not see such operation in REST or property in ImageLayer for python.
Thanks