Skip to main content

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

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.5.3-py2.py3-none-any.whl (80.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: agsadmin-0.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for agsadmin-0.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7beff9713bc557dba20481b347a8043a77f0ef727a1ce62f65e29e45d014d000
MD5 93c1a3f3d080b02854d03663e7094300
BLAKE2b-256 5ee9b453eca0d0997d5bc6915c6cbd74faf249c11dd025512c5dfd07c112f3d9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.3 This release

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.14

1 file

0.4.13

1 file

0.4.12

1 file

0.4.11

1 file

0.4.10

1 file

0.4.9

1 file

0.4.7

1 file

0.4.6

1 file

0.4.5

1 file

0.4.4

1 file

0.4.3

1 file

0.4.2

1 file

0.4.1

1 file

0.4.0

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.6

1 file

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