Is it possible to add a Server Object Interceptor to a service programmatically? For example, via ArcPy? If so, can anyone point me to some documentation or examples? It would be very convenient to have the process of adding different SOIs to different services automated, rather than doing it manually with ArcGIS Server Manager whenever SOIs are updated..
Solved! Go to Solution.
,
{ "typeName": "NetApplyWatermarkSOI",
"capabilities": "",
"enabled": "true",
"maxUploadFileSize": 0,
"allowedUploadFileTypes": "",
"properties":
{ "supportsREST": "false",
"supportsSOAP": "false",
"supportsInterceptor": "true" }
}
],
"frameworkProperties": {"interceptorOrderList": "NetSimpleLoggerSOI,NetApplyWatermarkSOI"},
"datasets": []
}
yes and in interceptorOrderList you put the order of chain if you have a chain
see your json definition of service ../admin/services//FOLDER/SERVICE_NAME.MapServer?f=pjson
soe and soi can be added in extension rest ( ..instance/admin/services/types/extensions )
here an example Debugging Server Object Extensions (SOEs) in Style · Josh Werts
Thank you, this is useful. What about enabling SOI on a service? The example doesn't show this.
Nevermind, I figured it out:
arcgis/admin/services//FOLDER/SERVICE_NAME.MapServer/edit
,
{ "typeName": "NetApplyWatermarkSOI",
"capabilities": "",
"enabled": "true",
"maxUploadFileSize": 0,
"allowedUploadFileTypes": "",
"properties":
{ "supportsREST": "false",
"supportsSOAP": "false",
"supportsInterceptor": "true" }
}
],
"frameworkProperties": {"interceptorOrderList": "NetSimpleLoggerSOI,NetApplyWatermarkSOI"},
"datasets": []
}
yes and in interceptorOrderList you put the order of chain if you have a chain
see your json definition of service ../admin/services//FOLDER/SERVICE_NAME.MapServer?f=pjson