Skip To Content
ArcGIS Developers
Dashboard

Import Services

Description

Imports the site services from a provided .agssiteservices file previously generated by the export services operation.

Request parameters

ParameterDetails
location

A ID or file path with the extension of .agssiteservices.

Note:

Importing Services can take some time. Upon completion, the operation will print a report on the import services page. The report is not persisted on the server and will be lost if you navigate away from the import services page. Some of the messages and warnings generated by this operation will be accessible in the logs.

ID Example

location=i5fad5582-80bc-4155-a21c-62f326354aba&f=json

File path example

location=\\server\share\backup\<timestamp>.agssiteservices&f=json

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

Below is a sample POST request for importServices using an ID:

POST /arcgis/admin/importServices HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

location=i5fad5582-80bc-4155-a21c-62f326354aba&f=json

Below is a sample POST request for importServices using a file path:

POST /arcgis/admin/importServices HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

location=\\server\share\backup\<timestamp>.agssiteservices&f=json