Can someone please let me know , how I can get a federated ArcGIS Server Web Adaptor by using the ArcGIS API for Python?
I used this code but as you can see this is listing only Portal web adaptor and not the Server one
from arcgis.gis import GIS
gis = GIS("https://yourportal.com/portal", "portaladmin", "password")
# Return a List of Web Adaptor objects
webadaptors = gis.admin.system.web_adaptors.list()
# Get the first Web Adaptor object and print out each of its values
for key, value in dict(webadaptors[0]).items():
print("{} : {}".format(key, value))
I also tried.
from arcgis.gis import GIS
from arcgis.gis.server import ServerManager
from arcgis.gis.admin import PortalAdminManager
gis = GIS(profile="Portal_Admin")
servermanager = ServerManager(gis=gis)
but the ServerManager not have any object for Server Portal.