Skip to main content

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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agsadmin-0.3.4-py2.py3-none-any.whl (42.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file agsadmin-0.3.4-py2.py3-none-any.whl.

File metadata

  • Download URL: agsadmin-0.3.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 42.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/36.4.0 requests-toolbelt/0.8.0 tqdm/4.17.0 CPython/2.7.10

File hashes

Hashes for agsadmin-0.3.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f874fcf74483ca2fbdca37c133737fb45d845d60a8fbc4ee6878da54fca3bc06
MD5 b4c489ff0e5fe76df2d7740add4a6bec
BLAKE2b-256 e788682fb599a24fa758140240530468cd84006847e873e9a7db51088ddccb02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page