- URL:
- https://<root>/importsite
- Methods:
POST- Version Introduced:
- 12.0
Description
The import operation imports a site configuration into the currently running site. Importing a site means replacing all site configurations (including video services, security configurations, and so on) of the currently running site with those contained in the site configuration file. The site configuration file can be obtained through the Export Site operation, which writes the information to either a file location accessible to ArcGIS Video Server or to a directory where you can download the configuration file.
The import operation also restores a site from a backup that was created using the export operation. The import operation uses the server directory paths from the exported configuration. These paths must be available for the import operation to complete successfully.
This operation will restore all information included in the backup, as described in Export Site. Once the import is complete, this operation returns a report that should be reviewed. Fix any problems listed in the report to ensure that the site functions as expected.
Request parameters
| Parameter | Details |
|---|---|
(Required) | The folder path to an exported configuration, or an ID referencing the stored configuration on the server. |
| This parameter validates the file path specified in the Values: |
(Required) | The response format. The default response format is Values: |
(Required) | Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation. |
Example usage
The following is a sample POST request for the import operation:
POST /<context>/admin/importSite HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
location=\\server\share\backup\Nov-15-2025_11-50-33.agssite&validate=true&f=pjsonJSON Response example
{
"backupFileName": [],
"status": "success"
}