- URL:
- https://<root>/services/<serviceName>.<serviceType>/edit
- Methods:
POST
- Required Capability:
- Access allowed with any authorized privilege
- Version Introduced:
- 10.1
Description
The edit
operation modifies the properties of a created service. To edit a service, you need to submit the complete JSON representation of the service, which includes the updates to the service properties. Editing a service causes it to be restarted with updated properties.
The JSON representation of a service contains the following four sections:
- Service Description Properties—Common properties that are shared by all service properties. Typically, they identify a specific service.
- Service Framework Properties—Properties targeted towards the framework that hosts the GIS service. They define the life cycle and load balancing of the service.
- Service Type Properties—Properties targeted towards the core service type as seen by the server administrator. Since these properties are associated with a server object, they vary across the service types. The Service Types section in the Help describes that supported properties for each service.
- Extension Properties—Represent the extensions that are enabled on the service. The Extension Types section in the Help describes the supported out-of-the-box extensions for reach service type.
- Framework Properties—Specifies a heap size that will be applied to this specific service.
Request parameters
Parameter | Details |
---|---|
| The JSON representation of the service. |
| Decides if the operation must run asynchronously. Values: |
| The response format. The default response format is Values: |
Service description properties
The following table outlines the common properties shared by all service types that are used to identify a specific service.
Property | Description |
---|---|
| The name of the service. Example
|
| The type of service. Example
|
| An optional user-readable description for the service. Example
|
| The capabilities of the service. The domains of these values are specific to each service type. Example
|
Service framework properties
The following table outlines the properties targeted toward the framework that hosts the GIS service, which define the life cycle and load balancing of the service.
Property | Description |
---|---|
| The name of the cluster to which this service will be deployed. Example
|
| The minimum number of instances of the service to create on each node in the cluster. The default is 1. Example
|
| The maximum number of instances of the service to create on each node in the cluster. The default is 2. Example
|
| The maximum amount of time (in seconds) the framework will wait to get a free instance of the service. The default is 60 seconds. Example
|
| The maximum amount of time (in seconds) that can elapse on a startup attempt. When service instances are created in the GIS server, either as a result of the server starting or in response to a request of the server by a client, the time it takes to initialize the service instance is referred to as its creation time. When the maximum startup time has passed, it is assumed the startup has stopped responding and the GIS server cancels the creation of the service instance. The default is 300 seconds. Example
|
| The maximum amount of time (in seconds) an idle instance of a service will remain idle before it is stopped. The default is 1800 seconds. Example
|
| The maximum amount of time (in seconds) an instance can service a request. The default is 600 seconds. Example
|
| The maximum amount of time (in hours) an instance of the service can run. The default is 24 hours. Example
|
| Specifies the load balancing algorithm the framework will use for instances of a service among all the nodes in a cluster. The default is Values: |
| Specifies the isolation level under which an instance of a service will run. The default is Values: |
Service type properties
The following table outlines the property that targets the core service type as seen by the server administrator. Since this property is associated with a server object, it varies across the service types.
Property | Description |
---|---|
| A JSON object containing the properties for the targeted service type. Example
|
Different properties are required for map, image, geoprocessing, and geocoding services.
Property | Description |
---|---|
(Required) | The full path, including the file name, of the map document file. Example
|
(Optional) | Specifies whether rendering will be used in Tile Package Clients such as ArcGIS Pro, Map Viewer, and JSAPI. When Values: |
(Optional) | The maximum number of records that will be returned by query or data operations. The default value is 500. Example
|
(Optional) | The time zone that will be used by the service using the Windows ID for the time zone (for example, Pacific Standard Time or Eastern Standard Time). Once set, it is assumed that all date field values will be stored in the specified time zone and data will be converted from UTC to the time zone specified before changes are written to the database. This property, if configured, only applies to date fields that are not used to time enable a layer and are not used in editor tracking date fields. When enabling this property, it must be placed immediately after Example Example
|
(Optional) | If Once set, it is assumed that all date field values will be stored in the specified time zone and data will be converted from UTC to the time zone specified before changes are written to the database. This property, if configured, only applies to date fields that are not used to time enable a layer and are not used in editor tracking date fields. When enabling this property, it must be placed immediately after Values: |
(Optional) | The maximum number of selected features that can be buffered for map operations. The default value is 100. Example
|
(Optional) | The maximum number of records that will be sampled when computing a class breaks renderer, which is used by the Generate Renderer operation. Example
|
(Optional) | The maximum image width allowed for requests. The default is 2048. Example
|
(Optional) | The maximum image height allowed for requests. The default is 2048. Example
|
(Optional) | The supported image return types. The default types are MIME+URL Example
|
(Optional) | A Boolean flag that specifies whether the map service will be cached ( Values: |
(Optional) | A Boolean flag that specifies whether the map service will ignore the cache ( Values: |
(Optional) | A Boolean flag that specifies whether cache tiles will be created on demand and added to the server cache directory as users navigate the map ( Values: |
(Optional) | A Boolean flag that specifies whether the REST handler will be disabled from caching all static resources, such as map service resource, layer resource, legends, and so on ( Values: |
(Optional) | A Boolean flag that specifies whether clients will be allowed to cache tiles ( Values: |
(Optional) | The physical directory where the tiles will be stored. Example
|
(Optional) | The virtual directory where the tiles can be accessed. Example
|
(Required) | The physical directory where the temporary output files will be created. Example
|
(Required) | The virtual directory where the output files can be accessed. Example
|
(Optional) | The number of seconds between validity checks or repairs on SDE data connections used in a map service. Example
|
(Optional) | A Boolean tag that specifies whether the map service will acquire schema locks for map layers from a geodatabase ( Values: |
(Optional) | The maximum number of domain codes that can be returned from all fields, subtypes, layers, and tables in a map service. The default value is 25000. Example
|
(Optional) | A Boolean that specifies whether the ArcGIS Server map caching mechanism will write bundle files to a local directory and copy them to a shared cache directory ( Values: |
(Optional) | Specifies the antialiasing mode that will be used for drawing vectors in the map. The default is Values: |
(Optional) | Specifies the antialiasing mode that will be used for drawing vectors in the map. The default is Values: |
(Optional) | A Boolean flag that specifies whether the processing of related records as a part of the identify results will be disabled. If there are too many related records, this may improve the performance of the Values: |
(Optional) | A Boolean flag that specifies whether the map service will allow dynamic layer functionality such as reordering layers, changing symbology per request, and so on ( Values: |
(Optional) | The 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. Example
|
| Specifies whether the performance of a map service that uses static, unchanging data will be optimized ( Values: |
| The value that will be returned for max-age as the cache-control response header by the Export operation and the Tile resource. If no value is provided, the default value of 0 seconds for the However, if client caching is not allowed, the max-age value for tile responses will always be 0, and any value provided for Example
|
| Specifies whether the cached map service will render the image using the cache tiles. When set to Values: |
| Added at 10.8.1. Specifies whether starting a map service when a data source is inaccessible will fail. By default, when the data source of a layer or stand-alone table is inaccessible, a map service will start without listing broken layers or tables in its resources. However, when this property is set to Values: |
Extension properties
The table below outlines the properties that represent the extensions that are enabled on a service.
Property | Description |
---|---|
| The type of extension. See the list of supported extension types. Example
|
| The capabilities of the extension type. Example
|
| A Boolean that specifies whether the extension will be enabled on the service. Values: |
| A bag of properties for the targeted extension type. Example
|
Framework properties
The table below defines the property used to determine the heap size that will be applied to a service.
Property | Description |
---|---|
| The heap size for a particular service, which will override the default heap size properties you can set for all services using the Edit operation. Providing a value for Example
|
Example usage
The following is a sample POST request for the edit
operation:
POST /webadaptor/admin/services/Maps/TestMap.MapServer/edit HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
services={
"description": "My updated map service",
"capabilities": "map,query,data",
"clusterName": "default",
"minInstancesPerNode": 2,
"maxInstancesPerNode": 4,
"maxWaitTime": 60,
"maxIdleTime": 1800,
"maxUsageTime": 600,
"recycleInterval": 24,
"loadBalancing": "ROUND_ROBIN",
"isolationLevel": "HIGH",
"properties": {
"maxBufferCount": "100",
"virtualCacheDir": "https://SERVER:6443/arcgis/server/arcgiscache",
"maxImageHeight": "2048",
"maxRecordCount": "1000",
"filePath": "\\\\machine\\data\\Test\\TESTMAP.msd",
"maxImageWidth": "2048",
"cacheOnDemand": "false",
"virtualOutputDir": "https://SERVER:6443/arcgis/server/arcgisoutput",
"outputDir": "C:\\arcgisserver\\arcgisoutput",
"supportedImageReturnTypes": "MIME+URL",
"isCached": "false",
"ignoreCache": "false",
"clientCachingAllowed": "false",
"cacheDir": "C:\\arcgisserver\\arcgiscache\\Test"
},
"extensions": [
{
"typeName": "KmlServer",
"enabled": false,
"capabilities": "SingleImage,SeparateImages,Vectors",
"properties": {
"minRefreshPeriod": "30",
"compatibilityMode": "GoogleEarth",
"imageSize": "1024",
"dpi": "96",
"endpointURL": "null",
"featureLimit": "1000000",
"useDefaultSnippets": "false"
}
},
{
"typeName": "WFSServer",
"enabled": true,
"capabilities": "",
"properties": {
"appSchemaURI": "https://SERVER:6443/arcgis",
"appSchemaPrefix": "arcgis",
"enableTransactions": "false"
}
},
{
"typeName": "WCSServer",
"enabled": true,
"capabilities": "",
"properties": {}
}
],
"frameworkProperties": {
"javaHeapSize": "64"
},
"datasets": []
}&runAsync="true"&f=json
JSON Response example
{"status": "success"}