I have a password protected ArcGIS-FeatureServer Service, the service provides 25 layers.
Using "Add Layer --> Add ArcGIS-FeatureServer-Layer" works like it should.
Is there any way to add these kind of layers with PyQGIS? I could not find a documentation or example anywhere.
How to Add a normal WFS layer with PyQGIS is well documented.
For ArcGIS MapServer it is super-easy:
iface.addRasterLayer("url='my_featuere_layer_url' layer='0'", "mylayer", "arcgismapserver")
But the provider "arcgismapserver" is not documented anywhere, just found an example after some search, so I expect that there is a similar solution for ArcGIS-FeatureServer.