- URL:
- https://<root>/services/<folder>/<ServiceName>.<ServiceType>/jobs/<jobID>
- Methods:
GET- Version Introduced:
- 10.9.1
Access requirements
Required privileges
The Enterprise Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.
Tokens
This API requires token-based authentication. A token is automatically generated for administrators who sign in to the Enterprise Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.
Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generate operation in the Enterprise Directory API. For security reasons, all POST requests made to the Enterprise Administrator API must include a token in the request body.
Description
An individual job resource returns information about an asynchronous job, either currently running or completed, for a geoprocessing service.
Request parameters
| Parameter | Details |
|---|---|
| The response format. The default format is Values: |
Response properties
| Property | Details |
|---|---|
| The unique ID for the job. |
| The time, in milliseconds from epoch, the job was submitted. |
| The time, in milliseconds from epoch, the job was started. |
| The time, in milliseconds from epoch, the job was completed. |
| The URL of the job resource page. |
| The current status of the job. |
| The user who submitted the job. |
Example usage
The following is a sample request URL used to access an individual job resource:
https://organization.example.com/<context>/rest/services/System/PublishingTools.GPServer/jobs/j0550714f334d4114af9f7a5d05cb145e?f=pjsonJSON Response example
{
"status_code": 4,
"job_id": "j0550714f334d4114af9f7a5d05cb145e",
"service_id": "sfbsgf2p3tqnjn3s0h1m8",
"job_created": 1637004585,
"job_execution_start": 1637004590,
"job_execution_end": 1637004594,
"url": "https://organization.example.com/<context>/rest/services/System/PublishingTools/GPServer/jobs/j0550714f334d4114af9f7a5d05cb145e",
"revision": "1351727964",
"status": "Succeeded",
"username": "serviceAdmin"
}