Skip to main content

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​

What mongosh printed.