Will this work for moving items from one portal to another?
arcgis.gis module — arcgis 1.4.0 documentation
If not, is there a copy_items with a source and target?
Thanks!
Solved! Go to Solution.
The ago-clone-items repo is deprecated since the functionality was moved into the Python API.
You can use the Python API to deep clone items and their dependencies using "clone_items" like the following:
source_gis = arcgis.gis.GIS("https://arcgis.com","username","password")
target_gis = arcgis.gis.GIS("https://server.com/portal", "username","password")
item = source_gis.content.get("<item-id>")
target_gis.content.clone_items([item])
Hi James,
Please review this thread,
Copy content between Portal A and AGOL
And the sample,
GitHub - Esri/ago-clone-items: Tools used to clone items between ArcGIS Online and ArcGIS Enterprise...
Hope this helps,
The ago-clone-items repo is deprecated since the functionality was moved into the Python API.
You can use the Python API to deep clone items and their dependencies using "clone_items" like the following:
source_gis = arcgis.gis.GIS("https://arcgis.com","username","password")
target_gis = arcgis.gis.GIS("https://server.com/portal", "username","password")
item = source_gis.content.get("<item-id>")
target_gis.content.clone_items([item])