Include dependent_to() and dependent_upon() for ArcGIS API for Python are available for Enterprise and Portal. Please make this available for ArcGIS Online. There is vastly more content created for our AGOL organization that needs to be evaluated for deprecation than Enterprise.
I agree.
I really need this on AGOL.
If there's a workaround, please let me know.
From my experience maintaining an in-house Python Portal Item inventory script using arcgis.gis 2.3.0 library that runs against our internal 10.9.1 Portal and our AGOL portal since 2021 I have these observations:
dependent_upon() method only apply to Enterprise (as documented somewhere) - and even though some basic items return results for these methods they only seem to be very simplistic relationships. For instance it seems like Feature Service, Geocoding Service, Geoprocessing Service, Map Service all return a dependency on our Server (surprise!). For Web Maps dependencies are about what you would want, For Web Mapping Applications there are some urls and item ids - but probably not as fleshed out as you'd expect. Method does not return anything for the lone Dashboard we have in Enterprise. For this reason I don't think as currently implemented dependent_upon() at this time would be useful in AGOL. As for dependent_to() method - I think the relationships just aren't there to instantiate this object in as in essence you would have to know all dependencies in advance which would add even more bloat to the item object.
Our workaround for getting dependencies is something like this:
Connectez-vous pour publier, suivre du contenu, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.