How to access ArcGIS Server Directories from REST SOE

07-26-2016 02:27 PM
Occasional Contributor

Hello Everyone,

I have a REST SOE developed on .NET for ArcGIS for Server 10.3.1. Now, from SOE, I want to write couple of files to ArcGIS Server server directories (a custom server directory OR arcgisoutput OR arcgisjob ). How to access these directories?

Inside  interfaces ESRI.Arcgis.Server.IServerObjectManager and ESRI.Arcgis.Server.IServerEnvironmentExt there is a method GetServerDirectoryInfos() which returns the info that I need but I could not yet figure out how to use these interfaces.

Note: I can get the server directories path by digging into the registry for AGS installation drive and then by appending "/arcgisserver/directories/...". But, it would be neat if I can get IServerDirectoryInfo which gives the directory url as well.

Any suggestions?



0 Kudos
0 Replies