- URL:https://<services-url>/exportServices(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Related Resources:Import Services
- Version Introduced:10.5
Description
Exports the existing site's services to a location you specify as input to this operation. The exported file includes user published, default System, and Utility services.
Request parameters
Parameter | Details |
---|---|
location (Optional) | A path to a folder accessible to the server where the exported services configuration will be written. If a location is not specified, the server writes the exported services configuration file to a directory owned by the server and returns a virtual path (an HTTPS URL) to that location from where it can be downloaded. Note:The server may delete this file to reclaim system resources. You must download this file before it gets deleted by the server. Example
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for exportServices with the location parameter defined:
POST /webadaptor/admin/exportServices HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
location=\\server\share\backup&f=json
Below is a sample POST request for exportServices without the location parameter defined:
POST /webadaptor/admin/exportServices HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
location=&f=json