- URL:
- https://[root]/portals/[portalID]/datastores/addToServer
- Methods:
POST
- Version Introduced:
- 10.7.1
Example usage
The following is a sample ArcGIS Enterprise POST request for the add
operation:
POST /webadaptor/sharing/rest/portals/0123456789ABCDEF/datastores/addToServer HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
datastoreId=55d87f404a7e420bb969ccb70254bfec&serverId=9sQswqEpB31ymiCD&bindToServerDatastore=false&f=pjson
Description
The add
operation registers a data store to ArcGIS Server. Before registering a data store, it is recommended that you validate the data store with the given server.
If your data store was registered with other federated servers using the same name, and you want the data store item in the portal to be recognized by any of your other federated servers, you can use this operation to bind the data store item to an additional federated server or servers.
Request parameters
Parameter | Details |
---|---|
(Required) | The Example
|
(Required) | The server with which the data store will be registered. Example
|
| Specifies whether to bind the data store item to the federated server. For more information about binding a data store to additional federated servers, see Create a data store item for an existing registered data store. The default value is Values: |
| The response format. The default format is Values: |
JSON Response examples
If the operation is successful, add
will return the following success message:
{"success": true}
If the operation fails, add
will return an error similar to the following message:
{
"error": {
"code": 400,
"message": "Server registration error",
"details": [
"Add data store to server failed."
]
}
}