- URL:
- https://<root>/services/<serviceName>.<serviceType>/jobs/query
- Methods:
GET
- Required Capability:
- Access allowed with either the "Update", "Delete", "Security and Infrastructure", or "Servers" privileges
- Version Introduced:
- 10.6.1
Description
The query
operation allows you to query the current jobs for a geoprocessing service, with a range of parameters to find jobs that meet specific conditions.
Request parameters
Parameter | Details |
---|---|
(Required) | The earliest time to query. Time is specified in Unix format. Example
|
(Optional) | The most recent time to query. If unspecified, the present time will be used. If you specify a value for this parameter, you must also specify a value for Example
|
(Optional) | Filter's jobs by current their current status. Values: |
(Optional) | This parameter filters jobs by the ArcGIS Server user who submitted the job. If the service is anonymous, this parameter will be specified as Example
|
(Optional) | This parameter filters jobs by machine name. Only one machine name is allowed per query. Example
|
(Optional) | The number of jobs to display in the response. Example
|
(Optional) | The order number of the job with which to begin the query results page. This is intended to be used when the total number of jobs exceeds the value you specify for the Example
|
(Required) | The response format. The default value is Values: |
Response properties
JSON property | Details |
---|---|
| The total number of jobs found by the query. |
| The number of jobs specified for |
| The parameters specified by your query request. |
| The order number of the job with which the response begins. If you did not specify a value for this parameter in your request, this value will be 1. |
| The order number of the job that will be first on the next response page if the query returns more jobs than you specified for the |
| The jobs found by the query and included on this response page. The |
Example usage
The following is a sample request URL for the query
operation:
https://machine.domain.com/webadaptor/admin/services/System/CachingControllers.GPServer/jobs/query?startTime=1566379810000&endTime=1566423010000&jobStatus=esriJobSucceeded&userName=user1&machineName=MACHINE.DOMAIN.COM&number=10&&start=1&f=pjson
JSON Response example
{
"total": 3,
"num": 10,
"query": {
"status": [
"esriJobSucceeded"
],
"startTime": 1566379810000,
"endTime": 1566423010000,
"userName": user1,
"machineName": MACHINE.DOMAIN.COM
},
"start": 1,
"nextStart": 11,
"results": [
{"j290c2d4e60364xx2a0c735fb9b68428a": "esriJobSucceeded"},
{"j507e8581758440xx85214fb2f138ed05": "esriJobSucceeded"},
{"jcef2dd14cda047xx8317a3641c35df2e": "esriJobSucceeded"}
]
}