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!
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])
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 organizations.
Hope this helps,
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.