- URL:
- https://<root>/services/canCreateService
- Methods:
POST
- Required Capability:
- Access allowed with any authorized privilege
- Version Introduced:
- 10.5
Description
The can
operation checks if a specific service can be created on the site.
Request parameters
Parameter | Details |
---|---|
(Optional) | Indicates the folder where Example
|
(Optional; Required if | The type of service that would be created. Example
|
(Optional; Required if | The service configuration in JSON format. For more information about the service configuration options, see Create Service. |
(Optional) | Provides additional information about the service, such as whether it is a hosted service. |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the can
operation:
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=pjson
JSON Response example
{"status":"success"}