Skip To Content

Can Create Service

Description

This operation can be used to determine whether a specific service can be created on the ArcGIS Server site.

Request parameters

ParameterDetails
folderName

(Optional)

Indicates the folder where canCreateService will check for the service.

Example

folderName=Hosted
serviceType

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

Example

serviceType=MapServer
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

(Optional)

Provides additional information about the service, such as whether it is a hosted service.

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample POST request for canCreateService, formatted for readability:


POST /webadaptor/admin/services/canCreateService HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

folderName=Hosted&serviceType=MapServer&service={
  "serviceName": "Test",
  "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": "https://SERVER1:6080/arcgis/server/arcgiscache",
    "maxImageHeight": "2048",
    "maxRecordCount": "1000",
    "filePath": "\\machine\data\Corine\CORINE6.msd",
    "maxImageWidth": "2048",
    "cacheOnDemand": "false",
    "virtualOutputDir": "https://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": "https://grid5:6080/arcgis",
        "appSchemaPrefix": "arcgis",
        "enableTransactions": "false"
      }
    },
    {
      "typeName": "WCSServer",
      "enabled": false,
      "capabilities": "",
      "properties": {}
    }
  ]
}&f=json

JSON Response example

{"status":"success"}