Scripting ArcGIS Server administration

ArcGIS 10.1 for Server includes an Administrator API and related utilities for scripting administrative actions on your server. Scripting your server administration allows you to automatically execute common tasks at scheduled times. It also reduces the chance of making mistakes when performing a complicated or repetitive task.

The ArcGIS Server Administrator API

Through the Administrator API, you can invoke every administrative task that ArcGIS Server supports. In fact, all administration tools provided with ArcGIS, including ArcGIS for Desktop and ArcGIS Server Manager, make use of this API.

The Administrator API uses a RESTful architecture and can be invoked from any language that can make a web service call, such as Python, Java, JavaScript, PowerShell, C#, Ruby, Scala, Perl, and others. Examples provided in this help use Python. You do not need any Esri software installed to run a script that uses the Administrator API.

Here's a sample of the many server administration tasks that you can do programmatically through the Administrator API:

Learn more about scripting with the ArcGIS Server Administrator API

ArcGIS Server command line utilities

ArcGIS Server includes some scriptable utilities that allow you to administer the server from batch files or the operating system command line. For basic actions such as starting services and building caches, using these utilities may be easier than writing a script from scratch.

Learn more about administering ArcGIS Server with command line utilities

ArcPy functions for publishing services and registering data locations

The ArcPy Python site package offers functions for publishing services to ArcGIS Server, working with service definition (SD) files, and registering folders and databases with ArcGIS Server. ArcPy can be used to script administrative tasks involving service publishing. It can also analyze map documents and report errors and warnings related to the map's use with ArcGIS Server.

Learn more about scripting service publishing with ArcPy

Related Topics

9/15/2014