How to set the Map Service Minimum number of instances per machine: to zero

3285
3
11-08-2015 06:20 PM
PeterBirksmith
Occasional Contributor

Hi all

Really quick question.  Is there an API call that can be used to change the Minimum number of instances per machine: values?

I want to setup an automated event prior to a table sync that turns off the Map service or sets this option to zero prior.

Cheers

Peter@

0 Kudos
3 Replies
RebeccaStrauch__GISP
MVP Emeritus

you may want to take a look at the AGS admin tool box

http://www.arcgis.com/home/item.html?id=12dde73e0e784e47818162b4d41ee340

It it is an python admin with the scripts so you can set it up in a script to automate.  There is a service stop/start/delete tool that I use. The only issue with scripting is you need to include an admin user/pwd with permissions to shut down.  But the only (or easiest anyway) way you can make sure the service = zero holds is to shut the services down

some of the geonet links have been flakey today...so let me know if this doesn't work....but using the ID on arcgis.com should find it if the link doesn't work.

0 Kudos
PeterBirksmith
Occasional Contributor

Hi Rebecca

Thanks for the information.  Will give it a shot and let you know and this link works fine for me.

I'll sign off on this answer shortly.

Cheers

Peter

0 Kudos
nicogis
MVP Frequent Contributor

you need use ArcGIS Rest API - Administering your server : http://resources.arcgis.com/en/help/arcgis-rest-api/#/Edit_Service/02r3000001zp000000/

0 Kudos