Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

attribute not implemented manageags.AGSAdministration. #288

Closed ckel490 closed 8 years ago

ckel490 commented 8 years ago

ArcRest or ArcRestHelper

ArcRest

Version or date of download

8/20/2016

Bug or Enhancement

More question than either

Repo Steps or Enhancement details

I am succesfully accessing the services on our Dev ArcGIS Server through manageags, but when I try to access our Production server, I get the following when I type ags.resources:

status - attribute not implemented manageags.AGSAdministration. code - attribute not implemented manageags.AGSAdministration. messages - attribute not implemented manageags.AGSAdministration.

Is there a setting on the Server that I need to change?

Here's the code below:

Ask for admin/publisher user name and password

env = raw_input("Enter Envrionemnt, dev or prod: ")

username = raw_input("Enter user name: ")

username = "siteadmin" password = getpass.getpass("Enter password: ")

if env == 'dev': admin_url = r"http://:6080/arcgis/admin" elif env == 'prod': admin_url = r"http://:6080/arcgis/admin/"

Create Security Handler

sh= arcrest.AGSTokenSecurityHandler(username = username,password = password,org_url = admin_url)

Create ArcGIS Server REST API Wrapper

ags = arcrest.manageags.AGSAdministration(admin_url,sh)

achapkowski commented 8 years ago

@ckel490 - please re-submit the issue with your code.