I need to grant access to a role in MongoDB to allow it to run getCommand({ping:1})
.
What kind of action/resource is it?
Asked
Active
Viewed 44 times
0

Phil Dunphy
- 3
- 3
-
`db.getMongo()` or `db.hello()` may work better. Another solution could be this one: https://stackoverflow.com/questions/37839365/simple-http-tcp-health-check-for-mongodb/63790795#63790795 – Wernfried Domscheit Dec 27 '22 at 13:49