URL:
https://<root>/importSite
Methods:
POST
Required Capability:
Administrator
Version Introduced:
12.2

Description

ArcGIS Data Pipelines Server provides the importSite operation to restore the site's configuration store from a backup site configuration file. The backup site configuration file can be obtained through the Export Site operation, which writes the information to a file location accessible to ArcGIS Data Pipelines Server.

As part of this operation, all machines participating in the site will be restarted automatically.

Request parameters

ParameterDetails

location

Specify the full path for the backup site configuration file (.agssite). The site must have access to this file, and the file must have been created using the Export Site operation.

Example
Use dark colors for code blocksCopy
1
location=/myfolder/export_may2026

validate

This parameter validates the path specified in the location parameter, ensuring that it is accessible before performing the importSite operation. If set to true, the path will be validated, and the operation will return either a success response or an error message. The default value is false.

Values: true | false

Example
Use dark colors for code blocksCopy
1
validate=true

f

The response format. The default response format is html.

Values: html | json | pjson

Response properties

PropertyDetails

status

Indicates success or failure of the import operation.

backupFileName

A list containing the messages returned from the import operation.

Example usage

The following is a sample POST request for the importSite operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/admin/importSite HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

location=\\server\share\backups\export_may2026.agssite&validate=true&f=pjson

JSON Response examples

The following is an example response when the operation succeeds:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
    "backupFileName": [{
        "messages": [
            {
                "level": "INFO",
                "message": "Validation complete and imported site file to location : 'C:\\InstallDirectory\\DataPipelines\\framework\\runtime\\tomcat\\temp\\tmp-ags-unzip-30319035841066967801655396020849300'."
            },
            {
                "level": "INFO",
                "message": "Import operation is about to complete. The following steps have been completed successfully 'Imported machines registered'. The pending steps are 'Security configuration'."
            },
            {
                "level": "INFO",
                "message": "Import operation completed in '00hr:00min:01sec'."
            },
            {
                "level": "INFO",
                "message": "Restarting services for the site as a final step of the importSite process."
            }
        ],
        "source": "SITE"
    }],
    "status": "success"
}

The following is an example response when the operation fails due to an inaccessible site configuration file:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
  "error" : {
    "code" : 500,
    "message" : "Unable to read from /server/no_access/20260520-074806.agssite. Verify the file is accessible and the user account running the server has read permissions.",
    "details" : null
  }
}

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