How to access Analysis result using REST API?

1523
0
05-09-2016 08:40 PM
LeoDeng
Occasional Contributor II

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/GPS..."
{"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/GPS...{"url":"https://services6.arcgis.com/3xMWKvHmHKRqJGse/arcgis/rest/services/RoutefinderTestData/FeatureServer..."}&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/j47f2f17048c7441a...

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?

0 Kudos
0 Replies