From the course: Python Scripting Using the ArcGIS API for Python
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Managing AGOL and Portal items
From the course: Python Scripting Using the ArcGIS API for Python
Managing AGOL and Portal items
- [Instructor] I can use the ArcGIS API for Python to manage the content of my ArcGIS Online or portal. Of course, I can only manage the content that I own unless I'm logged in as an administrator. As an admin, I can manage anyone's content. So how do I do it? Well, I'll give you a hint, we use a Content Manager Helper class. So what does managed content mean? It means things like changing content ownership, copying feature services, downloading them, marking them as authoritative or not authoritative. So basically any way I can deal with the items in my content or the content of my organization can be scripted with the ArcGIS API. The GIS.content property returns the helper object for working with content. So .content returns this object that can be used to get to all of the individual content items. How do you get to those individual items? You either use GIS.content.get if you know the exact item ID you're looking for or you use GIS.content.search if you want to search by name. You…