When manually publishing a web layer in ArcGIS Pro there is an option to specify registered data as the source instead of using the ArcGIS Data Store in a hosted scenario. The desire is to automate this exact manual process. However, I'm finding all APIs falling short because they only support hosted layers. In particular,
- ArcPy 3x: CreateWebLayerSDDraft
- ArcGIS API for Python: arcgis.gis.Item.publish()
- Portal REST API: <url>/publish
All three do not support non-hosted layers, such as registered data. Still looking into arcgis.ContentManager.create_service()- it doesn't explicitly say one way or another whether this supports registered data.
Do any APIs, or combination of them, support publishing web layers with underlying registered data from an aprx? I can't image why this wouldn't be exposed (?).