Results

URL:
https://<job-url>/results
Methods:
GETPOST
Version Introduced:
11.1

Description

The results resource provides all the output parameters of an asynchronous job. Instead of querying each output parameter as the results parameter resource does, this results resource provides all the output parameters in list format. See the jobs resource for more information about an asynchronous geoprocessing job. See Geoprocessing services data types for the syntax of an output parameter.

To query an individual output parameter, see the results parameter resource.

Request parameter

ParameterDetails

f

Description: The response format. The default is html.

Values: html | json | pjson

For a job that does not have a succeeded status, such as a cancelled or failed job, there is no link or relative URL from the jobs resource; however you can construct the request manually in the format of https://machine.domain.com/webadaptor/rest/services/<ServiceName>/GPServer/<TaskName>/jobs/<jobID>/results. The request parameter above still applies.

Request example

For a MailingList task job, you can access the output parameters with the following URL:

Obtain all the outputs for the job with a job ID of jdb4cce48c464424e913c15c4f419b32a.

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/Portland/ESRI_CadastralData_Portland/GPServer/MailingList/jobs/jdb4cce48c464424e913c15c4f419b32a/results

JSON Response syntax

The JSON response is a list of inputs. The syntax of each input is in the results parameter resource.

The response is a list.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
[{
    "paramName" : "<parameter name 1>",
    "dataType" : "<data type 1>",
    "value" : <literal or object 1>
},
{
    "paramName" : "<parameter name 2>",
    "dataType" : "<data type 2>",
    "value" : <literal or object 2>
}]

JSON Response example

A sample response containing a date output and a file output.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[
{
  "paramName": "Output_Date",
  "dataType": "GPDate",
  "value": 1672531201000
 },
{
  "paramName": "Output_File",
  "dataType": "GPDataFile",
  "value": {
    "url": "https://machine.domain.com/webadaptor/rest/directories/arcgisjobs/output_processing_gpserver/jed99e77dd3f34a299156b90702bfb38b/scratch/output2023.pdf"
    }
 }
]

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