Publishing feature layers in Portal for ArcGIS using python

1076
2
10-25-2016 08:15 AM
RenatoSalvaleon
Occasional Contributor III

Can I use ArcPY to do this? It seems like ArcPy is limited to AGOL hosted layer and ArcGIS server web services. What other scripting options are available so I can publish my feature layers in Portal?

Tags (2)
0 Kudos
2 Replies
JonathanQuinn
Esri Notable Contributor

ArcRest would be good to look into, but generally, if you're familiar with http requests and can monitor them using Fiddler or the Dev Tools, and you're familiar with how to submit requests using Python, you should be able to recreate the requests creating a service manually makes in Python.  There's a sample script on creating hosted tiled layers, perhaps it can easily be modified.