URL:
https://<root>/System/PublishingTools/GPServer/GetServiceDatastoreInfo/submitJob
Methods:
GETPOST
Version Introduced:
11.4

Description

The GetServiceDatastoreInfo 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 GetServiceDatastoreInfo 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

ParameterDetails

serviceName

(Required)

The service's name.

Use dark colors for code blocksCopy
1
serviceName=MapServiceByreference_Egdb

serviceType

(Required)

The service type. The only supported value is MapServer.

serviceFolder

(Optional)

The name of the folder the service is located in.

Use dark colors for code blocksCopy
1
serviceFolder=TestFolder

options

(Optional)

A set of additional options for the request:

  • keepDeprecatedProperties: Introduced at ArcGIS Enterprise 12.2. When set as true, this JSON response will include deprecated response properties.

returnZ

(Optional)

returnTrueCurves

(Optional)

simplifyFeatures

(Optional)

context

(Optional)

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following are sample requests (GET and POST) for the GetServiceDatastoreInfo operation:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/rest/services/System/PublishingTools/GPServer/GetServiceDatastoreInfo/submitJob?serviceName=MapServiceByreference_Egdb&serviceType=MapServer&serviceFolder=&options={"keepDeprecatedProperties": true}&f=pjson

JSON Response example

The tabbed sections below outline the workflow to obtain data store information for a service.

When the GetServiceDatastoreInfo job request is submitted, the following JSON response is returned:

Use dark colors for code blocksCopy
1
2
3
4
{
  "jobId": "j5f3aa768e0a24dcfbdff45f379870553",
  "jobStatus": "esriJobSubmitted"
}

The value for jobId can be appended to a modified version of the request URL (shown below) to access the job resource:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/rest/services/System/PublishingTools/GPServer/GetServiceDatastoreInfo/jobs/j5f3aa768e0a24dcfbdff45f379870553?f=pjson

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