Expose more data via the Project Events Atlas API: database user addition
The project events API (described at https://docs.atlas.mongodb.com/reference/api/events-projects-get-one/)
returns less fields that presented in the UI.
For example, after adding a database user via API, I would like to wait for the database user actually added before attempting to use the user. In the web UI, I see 2 events with all the information I need - "MongoDB user added" and "Deployment configuration published".
When querying the project events API, I see both events (event types MONGODBUSERADDED and AUTOMATIONCONFIGPUBLISHED_AUDIT), but there are no additional fields with the new database user.
-
Sepp commented
Hi There, could we add Atlas Network & Security Events in particular "Network Permission Entry Added" to this? I have a customer who wants to monitor when an IP Access List entry was added.
-
Boris commented
Hi Andrew,
Thanks for reaching out.
I am interested in the deploymentDiff.diffs field of AUTOMATION_CONFIG_PUBLISHED_AUDIT, that contains the database user being added or removed.
Thank you in advance,
Boris. -
Hi Boris,
Thanks for pointing this annoying gap out. Out of curiosity, is there a specific field/type of data you'd want added that would add the most value for you for the user added event?
We have iteratively added fields to certain high value even types and can continue to do so for high value gaps.
Cheers
-Andrew