Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Features

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
    • get user item

Example

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 = rest_admin.services.get_service("<MapServiceNameHere>", "MapServer", "<OptionalFolderHere>")
service.stop_service()
service.start_service()
service.delete()

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
agsadmin-0.3.4-py2.py3-none-any.whl (42.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Sep 20, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page