I am publishing a whole bunch of layers to portal for a project. Is there any way to automate the process instead of individually clicking and sharing as a web layer to portal?
Have you looked at the ArcGIS Pro Python module: https://pro.arcgis.com/en/pro-app/arcpy/sharing/introduction-to-arcpy-sharing.htm
If you would like to automate publishing to Portal, and not ArcGIS Server, you can use the Python API for ArcGIS.
https://enterprise.arcgis.com/en/portal/latest/administer/windows/scripting-with-the-arcgis-python-api.htm
https://developers.arcgis.com/python/sample-notebooks/publishing-sd-shapefiles-and-csv/
https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=publish#arcgis.gis.Item.publish
https://esri.github.io/arcgis-python-api/apidoc/html/index.html
If you would like to automate publishing to ArcGIS Server, you can use ArcPy or the Python API.
https://enterprise.arcgis.com/en/server/latest/administer/linux/scripting-service-publishing-with-arcpy.htm
https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.server.html?highlight=publish#arcgis.gis.server.Server.publish_sd
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.