/refreshServer: Refresh server

URL:
https://[root]/portals/[portalID]/datastores/refreshServer
Methods:
POST
Version Introduced:
10.7.1

Example usage

The following is a sample ArcGIS Enterprise POST request for the refreshServer operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /webadaptor/sharing/rest/portals/0123456789ABCDEF/datastores/refreshServer HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

datastoreId=55d87f404a7e420bb969ccb70254bfec&serverId=9sQswqEpB31ymiCD&f=pjson

Description

The refreshServer operation updates the server to use the updated registration information for a registered data store.

After a data store has been registered, there may be times in which the data store's registration information may be changed. When changes like these occur, the server will need to be updated with the newly configured information so that your users will still be able to access the data store items without interruption. The refreshServer operation can be called to propagate these changes to your ArcGIS Server. This operation can only be performed after the data store information has been updated.

Request parameters

ParameterDetails

datastoreId

(Required)

The itemId of the data store that has been updated.

Example

Use dark colors for code blocksCopy
1
datastoreId=55d87f404a7e420bb969ccb70254bfec

serverId

(Required)

The serverId. A data store may be registered across multiple servers. Use the Get Servers operation to return every server the data store is registered to.

Example

Use dark colors for code blocksCopy
1
serverId=9sQswqEpB31ymiCD

f

The response format. The default format is html.

Value: html | json | pjson

JSON Response examples

If successful, refreshServer will return the following success message:

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

If the operation fails, refreshServer will return an error similar to the message below:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
  "error": {
    "code": 500,
    "message": "Server is not reachable.",
    "details": [
      "Server is not reachable."
    ]
  }
}

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