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
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for agsadmin-0.4.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9102722475bcebcb3c8bf15d06aad6ff0c63f4276d0c15ff1967d21bafb46e00 |
|
MD5 | deb5d5ca44ea0994daa6eda459a4d9cf |
|
BLAKE2b-256 | 4bb47e25c68b3ba5af03339ccf6c5ac437653632ceaf73175b7c199055e74240 |