MongoDB
Extract data from a MongoDB instance
Setup
The following credentials keys are accepted:
host
(required) -> The hostname / ip of the instanceuser
(required) -> The username to access the instancepassword
(optional) -> The password to access the instanceport
(optional) -> The port of the instance. Default is27017
.tls
(optional — v1.2.7) -> whether to use TLS for connecting (true
/false
).cert_file
(optional — v1.2.7) -> the client certificate to use to access the instance via TLS (file path)cert_key_file
(optional — v1.2.7) -> the client key to use to access the instance via TLS (file path)cert_ca_file
(optional — v1.2.7) -> the client CA certificate to use to access the instance via TLS (file path)
Using sling conns
sling conns
Here are examples of setting a connection named MONGODB
. We must provide the type=mongodb
property:
Environment Variable
Sling Env File YAML
Last updated