Run mongosh code
POST/plugin-api/databases/:hostId/connections/:connId/mongo/console
Runs the code with mongosh on the host, with db set to the chosen database, and returns what it printed. Needs edit access to the host and a connection that is not read only, and is written to the audit log.
Request
Responses
- 200
- 403
What mongosh printed.
No edit access, or the connection is read only.