AnsweredAssumed Answered

How to access Analysis result using REST API?

Question asked by leo.deng.transfinder on May 9, 2016

First of all, I set the proxy and get the response

"http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer?f=json"
{"currentVersion":10.4,"serviceDescription":"","tasks":["AggregatePoints","FindHotSpots","CreateBuffers","CreateDriveTimeAreas","DissolveBoundaries","MergeLayers","SummarizeWithin","EnrichLayer","OverlayLayers","ExtractData","FindExistingLocations","DeriveNewLocations","FieldCalculator","InterpolatePoints","CalculateDensity","SummarizeNearby","CreateViewshed","FindSimilarLocations","CreateWatersheds","
FindNearest","PlanRoutes","TraceDownstream","ConnectOriginsToDestinations","ChooseBestFacilities"],"executionType":"esriExecutionTypeAsynchronous","resultMapServerName":"","maximumRecords":10000}

 

Then, I used the CreateBuffers Analysis.

http://localhost/proxy/DotNet/proxy.ashx?https://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/submitJob?f=json&inputLayer={"url":"https://services6.arcgis.com/3xMWKvHmHKRqJGse/arcgis/rest/services/RoutefinderTestData/FeatureServer/0"}&distances=[10.0]&units="Kilometers"&dissolveType="None"&ringType="Rings"&sideType="Full"&endtType="Round"&outputName={"serviceProperties": {"name": "schoolBuffer10"}}

The response is:

{"jobId":"j47f2f17048c7441a8b9f2703935230af","jobStatus":"esriJobSubmitted","results":{},"inputs":{},"messages":[]}

 

While I'm checking the analysis results, http://analysis1.arcgis.com/arcgis/rest/services/tasks/GPServer/CreateBuffers/jobs/j47f2f17048c7441a8b9f2703935230af

then I got an error:

{
  "error" : {
    "code" : 403,
    "message" : "Unable to process this request.",
    "details" : null
  }
}

 

I'm puzzle about the operation and is there anything missed?

Outcomes