GetServiceDatastoreInfo

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. At this time, no options are available or supported.

returnZ

(Optional)

A Boolean that determines if z-values are included as part of the result. If true, z-values will be included in the results if the features have z-values. Otherwise, z-values will not be returned. The default is false.

Values: true | false

returnTrueCurves

(Optional)

A Boolean that specifies whether true curves will be returned in the output geometries (true). When false, curves will be converted to densified polylines or polygons. The default value is false.

Values: true | false

simplifyFeatures

(Optional)

A Boolean that specifies whether geometries should be simplified (true). Simplifying can siginificantly reduce the size of the response while fulfiling the accuracy needs for most analysis, espeically for complex and large geometries. The default value is false.

Values: true | false

context

(Optional)

Additional settings that affect the result of the operation:

  • outSR is the spatial reference of the output geometries.
  • processSR is the spatial reference that the model will use to perform geometry operations.
  • extent will only process features that overlap the specified extent. The output features will have an extent that is the same or larger than the extent value.

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://machine.domain.com/webadaptor/rest/services/System/PublishingTools/GPServer/GetServiceDatastoreInfo/submitJob?serviceName=MapServiceByreference_Egdb&serviceType=MapServer&serviceFolder=&options=&returnZ=false&returnM=false&returnTrueCurves=false&simplifyFeatures=true&context=&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://machine.domain.com/webadaptor/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.