Check Arcgis Map Service working status in c#

529
1
04-07-2020 01:19 PM
VeenaHosur
New Contributor II

How to check each map service working status like service is running or stopped.I want to loop through service directory check service status using c#

Tags (2)
0 Kudos
1 Reply
AaronBooterbaugh
Occasional Contributor

The link below run a check and returns all the services data. If it was not running it would report an error.

https://sampleserver5.arcgisonline.com/arcgis/rest/services/Census/MapServer/Healthcheck?f=pjson 

You get a list of folders and services in the root folder

https://sampleserver5.arcgisonline.com/arcgis/rest/services?f=pjson 

Service in a folder.

https://sampleserver5.arcgisonline.com/arcgis/rest/services/AGP?f=pjson 

If you are a C# programmer you should be able to iterate through an ArcServer site easily with these.

0 Kudos