Geographic Information Systems Asked on August 10, 2020
In an external system, I plan to invoke an HTTP GET request.
I would like the HTTP GET request to be routed through a Python function on it’s way to/from AGOL.
Steps:
Question:
Is there a mechanism in AGOL (or ArcGIS Hub) where the Python function could be stored/accessed via HTTP?
Neither ArcGIS Online nor ArcGIS hub allow you to run Python code in this fashion. The only thing close to this would be either:
I’d look into Azure Functions. There is a slight learning curve but you can write and publish Python code that responds to an HTTPTrigger. IE it creates a URL that functions as a RESTful API that you trigger by sending HTTP requests too. I’ve found the Azure pricing very reasonable. If you want to get a sense of what’s involved, you can browse the code I wrote that works on a TimerTrigger (ie run at a given interval). This code makes requests to AGOL and based on the response sends an email. From my understanding of your project, not terribly different.
Answered by KHibma on August 10, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP