CanCreateService

Description

Use canCreateService to determine whether a specific service can be created on the ArcGIS Server site.

Request parameters

Parameter

Details

folderName

This is an optional parameter to indicate the folder where canCreateService will check for the service.

serviceType

The type of service that can be created. This is an optional parameter, though either theserviceType or service parameter must be used.

service

The service configuration in JSON format. For more information about the service configuration options, see createService. This is an optional parameter, though either theserviceType or service parameter must be used.

options

This is an optional parameter that provides additional information about the service, such as whether it is a hosted service.

Example usage

http://server:port/arcgis/admin/services/canCreateService
folderName=Hosted
serviceType=MapServer
service={
"serviceName": "Corine", 
"type": "MapServer", 
"description": "my map service", 
"capabilities": "map,query,data", 
"clusterName": "default", 
"minInstancesPerNode": 1, 
"maxInstancesPerNode": 2, 
"maxWaitTime": 60, 
"maxStartupTime": 300, 
"maxIdleTime": 1800, 
"maxUsageTime": 600, 
"recycleInterval": 24, 
"loadBalancing": "ROUND_ROBIN", 
"isolationLevel": "HIGH", 
"properties": { 
"maxBufferCount": "100", 
"virtualCacheDir": "http://SERVER1:6080/arcgis/server/arcgiscache", 
"maxImageHeight": "2048", 
"maxRecordCount": "1000", 
"filePath": "\\machine\data\Corine\CORINE6.msd", 
"maxImageWidth": "2048", 
"cacheOnDemand": "false", 
"virtualOutputDir": "http://SERVER1:6080/arcgis/server/arcgisoutput", 
"outputDir": "C:\arcgisserver\arcgisoutput", 
"supportedImageReturnTypes": "MIME+URL", 
"isCached": "false", 
"ignoreCache": "false", 
"clientCachingAllowed": "false", 
"cacheDir": "C:\arcgisserver\arcgiscache\Corine" 
}, 
"extensions": [ 
{ 
"typeName": "KmlServer", 
"enabled": true, 
"capabilities": "SingleImage,SeparateImages,Vectors", 
"properties": { 
"minRefreshPeriod": "30", 
"compatibilityMode": "GoogleEarth", 
"imageSize": "1024", 
"dpi": "96", 
"endPointURL": "", 
"featureLimit": "1000000", 
"useDefaultSnippets": "false" 
} 
}, 
{ 
"typeName": "WFSServer", 
"enabled": true, 
"capabilities": "", 
"properties": { 
"appSchemaURI": "http://grid5:6080/arcgis", 
"appSchemaPrefix": "arcgis", 
"enableTransactions": "false" 
} 
}, 
{ 
"typeName": "WCSServer", 
"enabled": false, 
"capabilities": "", 
"properties": {} 
} 
] 
}

JSON response syntax

{"status":"success"}

10/6/2017