Skip to main content

agsadmin

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

    • add/get/move/delete/update user item

    • get user/folder content

  • Community

    • get user

    • get group

    • create group

    • update group

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()

Metadata

Release files for agsadmin 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for agsadmin 0.5.3
File Interpreter ABI Platform
agsadmin-0.5.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / agsadmin-0.5.3-py2.py3-none-any.whl

Download URL agsadmin-0.5.3-py2.py3-none-any.whl
Size 80.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7beff9713bc557dba20481b347a8043a77f0ef727a1ce62f65e29e45d014d000
BLAKE2b-256 checksum
How to use checksums
5ee9b453eca0d0997d5bc6915c6cbd74faf249c11dd025512c5dfd07c112f3d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for agsadmin 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page