- URL:
- https://<job-url>/results/<param-name>
- Methods:
GET
POST
- Version Introduced:
- 9.3
Description
The results
resource represents a result parameter for an asynchronous geoprocessing job at the jobs
resource. It provides information about the result parameter name, data type, and value. The syntax will vary based on the data type of the parameter. Some parameters support limited types of output, as mentioned in the Details column in the table below.
Request parameters
Parameter | Details |
---|---|
(Optional) | Description: The response format. The default response format is Values: Default: |
(Optional) | Description: The spatial reference of the output geometries. The spatial reference can be specified as either a well-known ID or a spatial reference JSON object. This parameter is applicable for result parameters that contain geometries. This parameter can be used to return the geometries in a spatial reference that is different than the spatial reference in which the outputs were created. |
(Optional) | Description: If the geoprocessing service is associated with a result map service, the default output for the Values: |
(Optional) | Description: This parameter applies to a result returning Values: Default: |
(Optional) | Description: This parameter applies to results returning Values: Default: |
(Optional) | This parameter was added at 10.6. Description: This parameter applies to results returning Values: Default: |
(Optional) | This parameter was added at 11.0. Description: This parameter applies to results returning Values: Default: |
Example usage
For a 911 Calls Hotspot
task job, you can query a result parameter for the job with an ID of jbcb377968f0d46b980bcbfc75a8e05ef
.
Access the Output_
result parameter.
https://machine.domain.com/webadaptor/rest/services/911CallsHotspot/GPServer/911%20Calls%20Hotspot/jobs/jbcb377968f0d46b980bcbfc75a8e05ef/results/Output_Features
For a display
task job, you can query a result parameter for the job with an ID of jbcb345678f0d46b980bcbfc75a8e05ef
.
Access the Output
result parameter in the JSON format with column names.
https://machine.domain.com/webadaptor/rest/services/mySampleValueTableService/GPServer/displayOutputTask/jobs/jbcb345678f0d46b980bcbfc75a8e05ef/results/OutputValueTable?f=json&returnColumnName=true
JSON Response syntax
The JSON Response includes the name of the parameter, the data type, and its value. The syntax of the value
field can vary based on the data type of the parameter.
The response always has three keys: param
, data
, and value
.
{
"paramName": "<paramName>",
"dataType": "<dataType>",
"value": <valueLiteralOrObject>
}
JSON Response example
The output parameter Output_
with the GPString
data type, and the value of Test
. The request uses f=json
to get a JSON response.
{
"paramName": "Output_String",
"dataType": "GPString",
"value": "TestString"
}
An output parameter Output
showing the column names along with values of the result GPValue
. The request uses f=json&return
to get a JSON response with column names for the result.
{
"paramName":"OutputValueTable",
"dataType":"GPValueTable",
"value":[{
"output long column":563,
"output double column":-657.56700000000001
},
{
"output long column":-87,
"output double column":567.45640000000003
}]
}