Skip To Content
ArcGIS Developer
Dashboard

Change Provider

Description

This operation is used to update an individual service to use either a dedicated or shared instance type.

Starting at 10.7, ArcGIS Server now offers the ability to use either shared or dedicated instances for compatible services published to an ArcGIS Server site from ArcGIS Pro. At 10.8, any qualifying services published to a newly created site will, by default, be automatically set to use shared instances, or the shared instance pool.

When using this operation, services may populate other provider types as values for the provider parameter, such as ArcObjects and SDS. For SDS provider types, this operation does not support changing the provider of these services to either ArcObjects11 or DMaps. Services with SDS as their provider will not be able to change their instance type. For more information on shared instances, and what services qualify to be set as a shared instance, see Configure service instance settings.

Starting at 10.9, the changeProvider operation supports the migration of map, image, and geodata services from using the ArcMap service runtime to the newer ArcGIS Pro service runtime by changing the provider property from ArcObjects to ArcObjects11. It is recommended that you use this opportunity at 10.9.x to migrate your ArcMap based services to use the ArcGIS Pro service runtime. At the next release of ArcGIS Enterprise after 10.9.1, support for ArcMap based services will be removed, so you will not be able to start existing ArcMap based map, image, and geodata services, or publish new services that target the ArcMap service runtime. For more information, see Migrating services to the ArcGIS Pro service runtime.

Request parameters

ParameterDetails
provider

Specifies the service instance as either a shared (DMaps) or dedicated (ArcObjects11) instance type.

Note:

These values are case sensitive.

Values: ArcObjects11 | DMaps

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for changeProvider that is changing a service from ArcObjects11 (dedicated instance) to DMaps (shared instance):

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

provider=DMaps&f=json

Success response example

The following response indicates that the changeProvider operation was executed successfully:

{"status": "success"}

Error response example

The following error response occurs when setting a provider value that is incompatible with the service. For example, if the original provider for TestMap.MapServer had been ArcObjects, indicating that the service was published from ArcMap, an attempt to change the provider to DMaps would result in an error. Services published from ArcMap are not compatible with the DMaps provider.

{
  "status": "error",
  "messages": ["Changing the provider of the service 'TestMap.MapServer' to 'DMaps' is not permitted. "],
  "code": 500
}