Job (GP Service Jobs)

URL:
https://<root>/services/<folder>/<ServiceName>.<ServiceType>/jobs/<jobID>
Methods:
GET
Required Capability:
Access allowed with either the "Feature layer" or "Geoprocessing" privileges, or the Publisher role
Version Introduced:
10.9.1

Description

An individual job resource returns information about an asynchronous job, either currently running or completed, for a geoprocessing service.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails

job_id

The unique ID for the job.

job_created

The time, in milliseconds from epoch, the job was submitted.

job_execution_start

The time, in milliseconds from epoch, the job was started.

job_execution_end

The time, in milliseconds from epoch, the job was completed.

url

The URL of the job resource page.

status

The current status of the job.

userName

The user who submitted the job.

Example usage

The following is a sample request URL used to access an individual job resource:

Use dark colors for code blocksCopy
1
https://organization.domain.com/context/rest/services/System/PublishingTools.GPServer/jobs/j0550714f334d4114af9f7a5d05cb145e?f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
{
  "status_code": 4,
  "job_id": "j0550714f334d4114af9f7a5d05cb145e",
  "service_id": "sfbsgf2p3tqnjn3s0h1m8",
  "job_created": 1637004585,
  "job_execution_start": 1637004590,
  "job_execution_end": 1637004594,
  "url": "https://organization.domain.com/context/rest/services/System/PublishingTools/GPServer/jobs/j0550714f334d4114af9f7a5d05cb145e",
  "revision": "1351727964",
  "status": "Succeeded",
  "username": "serviceAdmin"
}

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