Hello,
I am creating a program using the ArcGIS Python API to go through all content within my organization (ArcGIS Online and Portal) and "audit" it: returning information like the item ID, how it is shared, any groups it is in, whether or not it is delete protected, created and modified dates, etc.
I would like to also know whether content is hosted within my organization or if it is a referenced service layer. Is there a way to do this with the API? There does not seem to be a corresponding item property, the same way there is item.id, item.url, etc, and I have not been able to find any documentation on how to find this.
Thanks for any help or documentation links!