I'm attempting to authenticate to and use the Admin Geoevent API, and I'm so far failing.
Documentation on usage is sparse without examples:
- GeoEvent Server REST API documentation—Administer(10.7.1) | ArcGIS Enterprise
- GeoEvent Server administration—Administer(10.7.1) | ArcGIS Enterprise
Authenticating via browser works and I'm able to make API requests through there, but I want to perform this programmatically from a server.
Here are the steps to successfully using the admin API through the browser:
- Create a token here: https://myserver.org:6443/arcgis/tokens
- Set the restriction to "Referrer URL" with a url of https://myserver.org:6143/geoevent/admin .
- Then pasting the provided token here gets it working in the browser: https://myserver.org:6143/geoevent/admin/
However doing it programmatically I am getting a 403 forbidden response. I've attempted to adapt one of the only examples of Geovent admin API authorization I've found. This example is strange as I've found no documentation anywhere about passing your API token in your HTTP headers as "GeoEventAuthorization": Using the GeoEvent Admin API with Python
My own adaptation with small tweaks fails with a 403 forbidden error, as does the original: gist:2c973bd88532376567625703fe915e9c · GitHub
Anyone else successfully make Geoevent admin API calls?