Skip to content

Code and samples from "ArcGIS for Server Administration API for C# Developers" presentation given at 2013 and 2014 Esri International Developer Summit in Palm Springs, CA.

License

Notifications You must be signed in to change notification settings

pheede/agsadmin-devsummit

Repository files navigation

agsadmin-devsummit

Code and samples that originated life with the "ArcGIS for Server Administration API for C# Developers" presentation given at 2013 and 2014 Esri Developer's Summit in Palm Springs, CA. Since updated over the years to later versions of .NET with minor tweaks for newer versions of ArcGIS Server.

Built on VS2022 and .NET 6 with use of the JSON.NET NuGet package.

Description

This small library demonstrates use of the ArcGIS Server administrative REST API from C# including the following key steps:

  • securely getting an administrative token
  • putting together the proper parameters
  • making an HTTP request using HttpClient (GET or POST)
  • parsing the result using JSON.NET

It includes example methods for:

  • starting and stopping services
  • monitoring service status
  • uploading files for publishing new services from .sd files
  • enumerating active services to discover their data sources (useful for finding which service has locked your dataset)

and several others.

About

Code and samples from "ArcGIS for Server Administration API for C# Developers" presentation given at 2013 and 2014 Esri International Developer Summit in Palm Springs, CA.

Topics

Resources

License

Stars

Watchers

Forks

Languages