Hello everyone,
We are running ArcGIS Enterprise 11.5 and I am looking to automate the process of rebuilding spatial indexes for hosted feature layers.
I am aware that this can be done manually through the Portal UI by going to the hosted feature layer item → Settings → Feature Layer (Hosted) → Indexes, where the spatial index can be rebuilt. Since this functionality exists and is supported in the Portal interface, I assume it is calling some internal operation.
However, I have not been able to find any documented or supported way to trigger the same spatial index rebuild programmatically using the REST API, ArcGIS API for Python, or a geoprocessing tool. I did come across the following community post, but it is unclear whether it applies only to ArcGIS Online or if it is relevant to ArcGIS Enterprise as well:
https://community.esri.com/t5/arcgis-online-questions/automate-task-to-rebuild-spatial-index-of-hosted/m-p/1247358
Has anyone identified a supported method to automate the same spatial index rebuild that is available in the Portal UI for hosted feature layers in ArcGIS Enterprise? Or is this currently only possible through manual interaction in the Portal?
Any insights or confirmation would be greatly appreciated. Thank you.