- URL:
 - https://<root>/System/PublishingTools/GPServer/GetServiceDatastoreInfo/submitJob
 - Methods:
 GETPOST- Version Introduced:
 - 11.4
 
Description
The Get operation lists the data stores a service uses, and how specifically the service uses the data stores. This operation only supports checking the data stores of a map service. The Get operation should be performed as the first step in moving a map service from one organization to another. For more information on this workflow, and supported service types, see the Export Service documentation.
Request parameters
| Parameter | Details | 
|---|---|
 (Required)  | The service's name.  | 
 (Required)  | The service type. The only supported value is   | 
 (Optional)  | The name of the folder the service is located in.  | 
 (Optional)  | A set of additional options for the request. At this time, no options are available or supported.  | 
 (Optional)  | A Boolean that determines if z-values are included as part of the result. If  Values:   | 
 (Optional)  | A Boolean that specifies whether true curves will be returned in the output geometries ( Values:   | 
 (Optional)  | A Boolean that specifies whether geometries should be simplified ( Values:   | 
 (Optional)  | Additional settings that affect the result of the operation: 
  | 
  | The response format. The default format is  Values:   | 
Example usage
The following are sample requests (GET and POST) for the Get operation:
https://organization.example.com/<context>/rest/services/System/PublishingTools/GPServer/GetServiceDatastoreInfo/submitJob?serviceName=MapServiceByreference_Egdb&serviceType=MapServer&serviceFolder=&options=&returnZ=false&returnM=false&returnTrueCurves=false&simplifyFeatures=true&context=&f=pjsonJSON Response example
The tabbed sections below outline the workflow to obtain data store information for a service.
When the Get job request is submitted, the following JSON response is returned:
{
  "jobId": "j5f3aa768e0a24dcfbdff45f379870553",
  "jobStatus": "esriJobSubmitted"
}The value for job can be appended to a modified version of the request URL (shown below) to access the job resource:
https://organization.example.com/<context>/rest/services/System/PublishingTools/GPServer/GetServiceDatastoreInfo/jobs/j5f3aa768e0a24dcfbdff45f379870553?f=pjson