Skip To Content
ArcGIS Developer
Dashboard

Service types

Description

ArcGIS Server supports a variety of GIS service types. Each service is made up of a specific set of properties that are defined for the type. You can create a GIS service by submitting a JSON representation of the service to the Create Service operation.

This document defines a subset of the supported service types and notable properties.

The following are supported types:

Note:

The following property sets must be passed in as a value of the properties parameter in the JSON representation of the service:

MapServer

{ 
	//required – the full path including the file name of the map document file
	"filePath" : "",

	//optional – boolean flag indicating whether clients should resample tiles for areas where tiles are unavailable.
	//This property is not enabled by default; you can add it using the ArcGIS Server Administrator Directory.
	"resampling" : "",

	//optional – maximum number of records returned in query or data operations – default : 500
	"maxRecordCount" : "",

	//optional –  Added in 10.3.1. Also applies to feature services. Specifies the time zone used by the service.
	//The value is the Windows ID for the time zone in text, for example, "Pacific Standard Time" or "Eastern Standard Time".
	//This property is not enabled by default; use the ArcGIS Server Administrator Directory to enable.
	//This property only applies to date fields that are not used to time-enable a layer and are not used in editor tracking date fields.
	//This property assumes all  date field values are stored in the time zone specified.
	//When editing, the data is converted from UTC to the  time zone specified  before being written to the database.
	//If performing a query with a where clause and the where clause references a date field value,
	//the date values must be in the same time zone of the data.
	//When setting this property, it must be placed immediately after the map service maxRecordCount
	//property (not the feature service maxRecordCount property). Otherwise, this property will be ignored.
	"dateFieldsTimezoneID": "",

	//optional –  Added in 10.3.1. Also applies to feature services. If dateFieldsTimezoneID is defined,
	//this boolean property defines whether or not to adjust for Daylight Saving Time.
	//If Daylight Saving Time does not apply to your region, set the value to "false."
	//If date values are stored using daylight savings time when Daylight Saving Time is in effect, set this value to true.
	//This property is not enabled by default; use the ArcGIS Server Administrator Directory to enable.
	//This property only applies to date fields that are not used to time-enable a layer and are not
	//used in editor tracking date fields.
	//This property assumes all date field values are stored in the time zone specified.
	//When editing, the data is converted from UTC to the  time zone specified before being written to the database.
	//If performing a query with a where clause and the where clause references a date field value,
	//the date values must be in the same time zone of the data.
	//When setting this property, it must be placed immediately after the map service maxRecordCount
	//property (not the feature service maxRecordCount property). Otherwise, this property will be ignored.
	"dateFieldsRespectsDaylightSavingTime": "",
	
	//optional – maximum number of selected features that can be buffered for map operations – default : 100
	"maxBufferCount" : "",

	//optional - maximum number of records sampled when computing a class breaks renderer (used by generateRenderer operation) - default : 100000
	"maxSampleSize" : "100000",

	//optional – maximum image width allowed for the requests – default: 2048
	"maxImageWidth" : "",
	
	//optional – maximum image height allowed for the requests – default: 2048
	"maxImageHeight" : "",
	
	//optional - supported image return types – default: MIME+URL
	"supportedImageReturnTypes" : "",
	
	//optional – boolean flag that indicates whether the map service is cached or dynamic – default: false
	"isCached" : "",
	
	//optional – boolean flag that indicates whether the map service should use the cache – default: false
	"ignoreCache" : "",
	
	//optional – boolean flag specifying whether cache tiles should be created on demand
	//and added to the server cache directory as users navigate the map. – default: false
	"cacheOnDemand" : "",

	//optional –  boolean flag indicating whether the REST handler is disabled from caching all static resources 
	//such as map service resources, layer resources, legend, etc. If you want to disable REST handler caching,
	//set this property to true. - default: false
	"disableCaching" : "",
	
	//optional – boolean flag that indicates whether clients are allowed to cache tiles
	//locally – default : true
	"clientCachingAllowed" : "",
	
	//optional - physical directory where the tiles should be stored
	"cacheDir" : "",
	
	//optional - virtual directory from where the users can access the tiles 
	"virtualCacheDir" : "",
	
	//required - physical directory where the temporary output files will be created
	"outputDir" : "",
	
	// 
	"maxRecordCount" : "" 
	
	//required - virtual directory where the output files can be accessed
	"virtualOutputDir" : "",
	
	//optional – numeric value representing the number of seconds between validity checks/ repairs
	//on sde data connections used in a map service – default : 300 
	"connectionCheckInterval" : "",
	
	//optional - boolean tag that determines whether the map service will acquire schema locks for map layers
	//that come from a geodatabase. By default, the locks are acquired, so this property is true.
	//If the locks impede your  workflow, you can add this tag and set it to false to disable
	//schema locking – default : true
	"schemaLockingEnabled" : "",
	
	//optional – maximum number of domain codes that can be returned from all fields, subtypes,
	//layers, and tables in a map service– default : 25000 
	"maxDomainCodeCount" : "",
	
	//optional – boolean defining whether the ArcGIS Server map caching mechanism will write
	//bundle files to a local directory and copy them into a shared cache directory,
	//instead of writing the files directly into the shared cache directory. This option can improve performance,
	//but it only applies to the compact cache storage format when multiple machines are working
	//on the cache– default : false 
	"useLocalCacheDir" : "", 
	
	//optional – antialiasing mode for drawing vectors in the map (possible values are: FASTEST, FAST,
	//NORMAL, BEST, NONE) – default is NON
	"antialiasingMode" : "",
	
	//optional – antialiasing mode for drawing vectors in the map (possible values are:
	//NORMAL, FORCE, NONE) – default is FORCE
	"textAntialiasingMode" : "",
	
	//optional – boolean flag that indicates whether to disable processing the related
	//records as a part of identify results. If there are too many relates this could help
	//improve performance for identify. – default : false
	"disableIdentifyRelates" : "",
	
	//optional - boolean flag that indicates whether the map service should allow dynamic
	//layer functionality like reordering layers, changing symbology per request etc. 
	"enableDynamicLayers" : "",
	
	
	//optional - Workspace connections that will be available for the web clients applications for
	//adding dynamic layers per request. This is a string value representing the JSON array containing
	//JSON objects describing the workspace connection. 
	//	eg.:
	//	[
	//	 	{
	//			"id": "<id>",
	//			"WorkspaceFactory": "SDE",
	//			"workspaceConnection": "<sde_connection_string>"
	//		 },
	//		 {
	//		 	"id": "<id>",
	//			"WorkspaceFactory":"FileGDB",
	//			"workspaceConnection": "DATABASE=<path_to_fgdb>"
	//		 }
	//	]
	"dynamicDataWorkspaces" : "",
	
	//This property is set for optimizing the performance of a MapService that
	//uses data which does not change. When a MapService is published by copying the data
	//to the server, ArcGIS Server will automatically set this property
	//"hasStaticData":true for that MapService. If the MapService is published without
	//copying the data to the server and if you know that the data does not change,
	//you may set this property by editing the service using the ArcGIS Server Administrator Site Directory.
	"hasStaticData":true|false,
 
	//Optional. Added in 10.2.1. If this property is set cache-control response header max-age value for REST API Export Map  
	//and tile resource responses will reflect the value set for this property. Otherwise default values will apply for max-age, 
	//which is 0 seconds(s) for export map, 86400 (s) for tiles that client can cache (clientCachingAllowed : true) and 0 (s) for tiles 
	//that disallow client caching (clientCachingAllowed : false). Please note cache-control header max-age value for tile responses will be 
	//always 0 if client caching is disallowed. Setting this property will have no effect in cache-control response header value for other 
	//operations/resources. 
	"cacheControlMaxAge": "value in seconds", 
 
 //Optional. Added at 10.7.1. This property is used to optimize Export Map requests. For Export Map requests, the cached map service will render 
 //the image using the cache tiles. When this property is set to false, if the cache tiles do not exist at a certain level, the image will use 
 //resampled cache data to render an image, using CPU resources. When set to true, if the cache tiles do not exist for an 
 //Export Map request, the service will give an error – default : false
 "disableDownsamplingTilesForExportMap": ""	

 //Optional. Added at 10.8.1. This property is used to determine whether to fail starting a map service when a data source is inaccessible. 
 //By default, when the data source of a layer or standalone table is inaccessible, map service still starts up without listing broken layers/tables in its resources.
 //But if you set this property is true, and map service cannot access any of its layer/table's source, it will simply fails to start – default : false
 "failOnStartWhenDataInaccessible": ""	
}

ImageServer

{ 
	"supportedImageReturnTypes": "MIME+URL",
	"connectionCheckInterval" : "",
	
	// One of the following three optional properties is required: 'path', 'connectionString+raster' or 'serviceURL'
	
	//optional - the path to the published raster dataset, or raster layer
	"path" : "",
	
	//optional - the connection properties of a geodatabase containing the published raster dataset  
	"connectionString" : "",
	
	//optional - the published raster dataset name in the geodatabase specified by 'connectionString'
	"raster" : "",
	
	//optional - the published classic image server service URL 
	"serviceURL" : "",
	
	//optional - the maximum number of columns of the image returned by GetImage/ExportImage
	"maxImageWidth" : "",
	
	//optional - the maximum number of rows of the image returned by GetImage/ExportImage 
	"maxImageHeight" : "",
	
	//optional - the max number of images is to be used for generating a mosaic image 
	"maxMosaicImageCount" :  "",
	
	//optional - the max number of records that can be fetched
	"maxRecordCount" : "",
	
	//optional - the max number of images that can be downloaded
	"maxDownloadImageCount" : "",
	  
	//optional - the transmission compressions allowed
	"allowedCompressions" :  "",
	
	//optional - the level, 'none, basic, full', of raster item metdata allowed
	"allowedItemMetadata" : "",
	
	//optional - the allowed (visible) fields  
	"allowedFields" :  "",
	
	//optional - the list of allowed mosaic methods
	"allowedMosaicMethods" : "",
	
	//optional - the allowed mensuration capabilities, 'none, basic, height, shadow, 3D'  
	"allowedMensurationCapabilities" : "",
	
	//optional - the default compression quality
	"defaultCompressionQuality" :  "",
	
	//optional - the default resampling method
	"defaultResamplingMethod" : "",  
	
	//optional - the physical output directory
	"outputDir" : "",
	
	//optional - the virtual output directory  
	"virtualOutputDir" : "",  
	
	//optional - the list of ';' separated physical directories for direct download
	"downloadDir" : "",
	
	//optional - the list of ';' separated virtual directories for direct download  
	"virtualDownloadDir" : "",  
	
	//optional - the list of ';' separated published raster function templates (.rft)
	"rasterFunctions" : "",
	
	//optional - the list of ';' separated published raster types  (.art)
	"rasterTypes" :  "",
	
	//optional - flag indicating if execution of a raster function is allowed
	"allowFunction" : "",
	
	//optional - flag indicating if pseudo-color images are to be converted to RGB images
	"colormapToRGB" : "",
	
	//optional - the list of ';' physical directories for storing uploaded images
	"uploadDir" : "",	
	
	//"optional - the type of published source data type, including 
	//'esriImageServiceSourceTypeDataset',
	//'esriImageServiceSourceTypeLayer',
	//'esriImageServiceSourceTypeCatalog', and
	//'esriImageServiceSourceTypeMosaicDataset'
	"serviceSourceType" : "",
	
	//optional – boolean flag that indicates whether the map service is cached or dynamic – default: false
	"isCached" : "", 
	
	//optional – boolean flag that indicates whether the map service should use the cache – default: false
	"ignoreCache" : "",
	
	//optional – boolean tag specifying whether cache tiles should be created on demand
	//and added to the server cache directory as users navigate the map.– default: false
	"cacheOnDemand" : "", 
	
	//optional - physical directory where the tiles should be stored
	"cacheDir" : "", 
	
	//optional - virtual directory from where the users can access the tiles
	"virtualCacheDir" : "",
	
	"useLocalCacheDir":"",
	
	//optional – boolean flag that indicates whether clients are allowed to cache tiles
	//locally – default : true
	"clientCachingAllowed":"",

	// Optional. Added in 10.2.1. If this property is set cache-control response header max-age value for REST API Export Image  
	// and tile resource responses will reflect the value set for this property. Otherwise default values will apply for max-age, 
	// which is 43200 seconds(s) for export image for tiles that client can cache (clientCachingAllowed : true) and 0 (s) for tiles 
	// that disallow client caching (clientCachingAllowed : false). Please note cache-control header max-age value for tile responses will be 
	// always 43200 (s) if client caching is disallowed. Setting this property will have no effect in cache-control response header value for other 
	// operations/resources. 
	"cacheControlMaxAge": "value in seconds"
}

GlobeServer

{
	//required - path to the published document
	"filePath" : "",
	
	//required - path to a location on the file system where the globe cache will be stored
	"cacheDir" : "",
	
	//optional – maximum number of features that can be buffered by the service at draw time per layer 
	"maxBufferCount": "",
	
	//optional – maximum number of result records that can be returned by query, find, and identify operations 
	"maxRecordCount": "",
	
	//optional – specifies whether client applications can locally cache tiles. Default is true 
	"clientCachingAllowed" : "" 
}

GPServer

{
	//Required - path to a toolbox that is the source of the geoprocessing service tasks.
	"toolbox" : "",
	
	//"Optional - Asynchronous | Synchronous
	//Synchronous means that the client waits until the server has finished executing the task.
	//Asynchronous means that the client is free to do other work while the server executes the task.
	//The default is asynchronous.",  
	"executionType" : "",
	
	//Optional - {true | false} indicates if a map server will be used to draw the geoprocessing results. The default is false. 
	"resultMapServer" : "",
	
	//Optional - maximum number of features the geoprocessing service will return. The default is 1000
	"maximumRecords" : 	"",
	
	//Optional - {true | false} Include tool processing messages in geoprocessing service messages. The default is false.
	"showMessages" : "",
	
	//Required - path to the jobs directory where the geoprocessing service output will be written.    
	"jobsDirectory" : "",
	
	//Optional - URL to the jobs directory.  
	"jobsVirtualDirectory" : "",
	
	//Optional - path to the directory that returns the files which will be written.  
	"outputDir" : "",
	
	//Optional - URL to the output directory.	  
	"virtualOutputDir" : "",
	
	//Optional - {true | false} use the temp directory for the jobs directory when executing tasks. The default is false  
	"localJobsDir" : ""  
}

GeocodeServer

{ 
	//Required for locators in databases - String that contains parameters for a connection to the geodatabase storing the locator
        "locatorWorkspaceConnectionString" : "",

        //Required for file-based locators - String that represents the path to the location on disk where the locator file is stored
        "locatorWorkspacePath" : "",
	
        //Required - String that represents the name of the address locator for the geocode service
        "locator" : "",
        
        //Optional - Suggested number of addresses to send to a server in one batch geocoding request. Default is 1000.
	"suggestedBatchSize" : "",

        //Optional - Maximum number of result records that can be processed in one batch geocoding request. Default is 1000.
	"maxBatchSize" : "" ,

        //Optional - Maximum number of result records returned by the FindAddressCandidates method. Default is 500.
	"maxResultSize" : ""
}

GeoDataServer

{
	"mapFile" : "",
	"dataFrame" : "",
	"connectionString" : "",
	"filePath" : "",
	"maxRecordCount" : "",
	"outputDir" : "",
	"virtualOutputDir" : "",
}