Skip To Content
ArcGIS Developers
Dashboard

Update Server

Description

This operation allows you to set an ArcGIS Server federated with Portal for ArcGIS as the hosting server or to enforce fine-grained access control to a federated server. You can also remove hosting server status from an ArcGIS Server. To set a hosting server, an enterprise geodatabase must be registered as a managed database with the ArcGIS Server.

Request parameters

ParameterDetails
serverRole

Specifies whether the server is a hosting server for the portal, a federated server, or a server with restricted access to publishing.

Values: FEDERATED_SERVER | FEDERATED_SERVER_WITH_RESTRICTED_PUBLISHING | HOSTING_SERVER

serverFunction

Introduced at 10.5. serverFunction associates a specific function with the server. Values can be comma separated, but it is not recommended that a single server have all the server functions.

Values: GeoAnalytics | RasterAnalytics | ImageHosting | NotebookServer | MissionServer | WorkflowManager

f

The response format. The default response value is html.

Values: html | json | pjson

Example usage

Below is a sample POST request for update:

POST /webadaptor/portaladmin/federation/servers/FfURK2ysFiMjzDkJ/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

serverRole=FEDERATED_SERVER&serverFunction=MissionServer&f=json

JSON Response example

{
  "status": "success",
  "serverId": "iSoD09CM73g0tmu9"
}