Change Provider

URL:
https://<root>/services/<ServiceName>.<ServiceType>/changeProvider
Methods:
POST
Required Capability:
Access allowed with either the "Update", "Delete", or "Security and infrastructure" privileges, or the Publisher role
Version Introduced:
10.9

Description

The changeProvider operation updates an individual service to use either a dedicated or a shared instance type. When a qualified service is published, the service is automatically set to use shared instances.

When using this operation, services may populate other provider types as values for the provider parameter, such as ArcObjects and SDS. While these are valid provider types, this operation does not support changing the provider of such services to either ArcObjects11 or DMaps. Services with ArcObjects or SDS as their provider cannot change their instance type.

Request parameters

ParameterDetails

provider

Specifies the service instance as either a shared (DMaps) or dedicated (ArcObjects11) instance type. 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 the changeProvider operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /context/admin/services/Hosted/TestMap.MapServer/changeProvider HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

provider=DMaps&f=pjson&token=IxAYQhLzYLltj1uu7l4eQ0bNjxb2O8uFD2EVSj35okQ-8SNpbJpZ3B6nfG8SU9FskJLWQNLkRrP6xJTZDoDz0n1MhLm7SCNo8VZWZR4RwBWmpQReLg9uMNv8gJB5cazHceuBjXu9kBbUnn6Laq36Z4TTQgfiPd3N2adEGcHKSDX9EwzSqyMg_YA1hjDhDJRn33o3VYiGMriW9i6duYcngjYdwTrVQLh2pOU6NgMmIj84CXeXrvlS0VmIK7e4KvxY

JSON Response examples

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

Use dark colors for code blocksCopy
1
{"status": "success"}

The following error response occurs when a provider value that is incompatible with the service is set.

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "status": "error",
  "messages": ["Changing the provider of the service 'TestMap.MapServer' to 'DMaps' is not permitted. "],
  "code": 500
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.