Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

ArcGIS Server REST Admin API Proxy

Project description

agsadmin provides a convenient Python front-end to several REST calls on the ArcGIS Server 10.1+ REST Admin API.


ArcGIS Server (RestAdmin)

  • Services (Map/Image/Geoprocessing/Geometry/Geocode/GeoData/Globe/Search)
    • start and stop
    • get statistics
    • get status
    • get or set the item info (description, summary, tags, etc.)
    • set service properties
    • rename services
  • Machines
    • start and stop
  • System
    • Directories
      • list directories
      • register new directories
      • unregister directories
      • clean directories
  • Uploads
    • list uploads
    • get a specific upload item
    • upload a file

These functions can be used to automate management of ArcGIS Services (e.g. start/stop services on a schedule, start/stop services to perform maintenance on associated datasets, etc.)

ArcGIS Portal (SharingAdmin)

  • Content
    • get item
    • add/get/move/delete/update user item
    • get user/folder content
  • Community
    • get user
    • get group
    • create group
    • update group


The following is a simplistic example to stop and start a map service.

import agsadmin

hostname = "<ServerNameHere>"
username = "<UsernameHere>"
password = "<PasswordHere>"

rest_admin = agsadmin.RestAdmin(hostname, username, password)
service ="<MapServiceNameHere>", "MapServer", "<OptionalFolderHere>")

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for agsadmin, version 0.4.13
Filename, size File type Python version Upload date Hashes
Filename, size agsadmin-0.4.13-py2.py3-none-any.whl (54.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page