ArcGIS Server version 10.9.1
This is about the ExtractData service of the SpatialAnalysisTools in the system folder.
In a standalone server, admin can allow the system folder in the ArcGIS server Manager to be accessible by everyone or select users. However, if the server is federated and then that option is not available. The only way to access the service is through tokens. That would make sense if the server is a public facing server. In my case. the server resides in an intranet environment behind a firewall. So, here is my first question. Why ESRI decides to make things complicated and not allow the option for the admin to set system folder open for everyone, if the server is not accessible by the pubic.
I tried to use this but it fails without tokens since the url is on a federated service. Has anyone succeeded running the ExtractData service on a federated server?
let url = "https://xyz/rest/services/System/SpatialAnalysisTools/GPServer/ExtractData/submitJob"
var options = {
inputLayers:[{"url":layer.url, "filter":"1=1"}],
dataFormat:"SHAPEFILE",
outSR: 102100,
outputName: {
title: 'TEST'
}
}
esriRequest(
url, options).then ((response) =>{
console.log(response)
})