Description
Is your feature request related to a problem? Please describe.
I've registered some external public services in my Portal, my end users can access these services on their systems in the browser and in ArcGIS Pro.
I also have a machine where I run some management scripts and this machine cannot communicate with internet resources and these external services, but it can communicate with my Portal.
When I run my scripts with ArcGIS API for Python it loads these Portal Items and try do do things, such as setting the delete protection property, sharing the item etc, and it takes a lot of time, like multiple minutes for each operation.
I think this is because everything I try to do is forcing ArcGIS API for Python to rehydrate the PortalItem and in this process, it tries to reload the layers from the external service, which cannot be accessed from the machine and this script.
<insert your code here>
Describe the solution you'd like
Have the option to only rehydrate on demand, by setting some kind of boolean which prevents the current automatic rehydrates, or maybe have the option not to load the layers in some way?
Describe alternatives you've considered
Do to the security policies, allowlisting on the firewall / proxy isn't possible on this machine, otherwise I would have done that.
Additional context
Thanks for considering :-)