You can't see it in the REST directory page, but if you flip over to the JSON side, you can see this down at the bottom:
"viewDefinitionQuery": "GRID_ID NOT IN ('A-1','A-10','A-11')",
"definitionQuery": "GRID_ID NOT IN ('A-1','A-10','A-11')"
Similarly, you can use the Python API to pull these out.
fl = gis.content.get('itemid').layers[0]
fl.manager.properties['viewDefinitionQuery']
If one exists, those lines will return the SQL definition.
- Josh Carlson
Kendall County GIS