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#
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.