123 lines
4.2 KiB
JSON
123 lines
4.2 KiB
JSON
{
|
|
"documentationUrl": "https://docs.airbyte.com/integrations/sources/mongodb-v2",
|
|
"changelogUrl": "https://docs.airbyte.com/integrations/sources/mongodb-v2",
|
|
"connectionSpecification": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "MongoDb Source Spec",
|
|
"type": "object",
|
|
"required": ["database"],
|
|
"additionalProperties": true,
|
|
"properties": {
|
|
"instance_type": {
|
|
"type": "object",
|
|
"title": "MongoDb Instance Type",
|
|
"description": "The MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default.",
|
|
"order": 0,
|
|
"oneOf": [
|
|
{
|
|
"title": "Standalone MongoDb Instance",
|
|
"required": ["instance", "host", "port"],
|
|
"properties": {
|
|
"instance": {
|
|
"type": "string",
|
|
"const": "standalone"
|
|
},
|
|
"host": {
|
|
"title": "Host",
|
|
"type": "string",
|
|
"description": "The host name of the Mongo database.",
|
|
"order": 0
|
|
},
|
|
"port": {
|
|
"title": "Port",
|
|
"type": "integer",
|
|
"description": "The port of the Mongo database.",
|
|
"minimum": 0,
|
|
"maximum": 65536,
|
|
"default": 27017,
|
|
"examples": ["27017"],
|
|
"order": 1
|
|
},
|
|
"tls": {
|
|
"title": "TLS Connection",
|
|
"type": "boolean",
|
|
"description": "Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href=\"https://docs.airbyte.com/integrations/sources/mongodb-v2\">documentation</a>.",
|
|
"default": false,
|
|
"order": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Replica Set",
|
|
"required": ["instance", "server_addresses"],
|
|
"properties": {
|
|
"instance": {
|
|
"type": "string",
|
|
"const": "replica"
|
|
},
|
|
"server_addresses": {
|
|
"title": "Server Addresses",
|
|
"type": "string",
|
|
"description": "The members of a replica set. Please specify `host`:`port` of each member separated by comma.",
|
|
"examples": ["host1:27017,host2:27017,host3:27017"],
|
|
"order": 0
|
|
},
|
|
"replica_set": {
|
|
"title": "Replica Set",
|
|
"type": "string",
|
|
"description": "A replica set in MongoDB is a group of mongod processes that maintain the same data set.",
|
|
"order": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "MongoDB Atlas",
|
|
"additionalProperties": true,
|
|
"required": ["instance", "cluster_url"],
|
|
"properties": {
|
|
"instance": {
|
|
"type": "string",
|
|
"const": "atlas"
|
|
},
|
|
"cluster_url": {
|
|
"title": "Cluster URL",
|
|
"type": "string",
|
|
"description": "The URL of a cluster to connect to.",
|
|
"order": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"database": {
|
|
"title": "Database Name",
|
|
"type": "string",
|
|
"description": "The database you want to replicate.",
|
|
"order": 1
|
|
},
|
|
"user": {
|
|
"title": "User",
|
|
"type": "string",
|
|
"description": "The username which is used to access the database.",
|
|
"order": 2
|
|
},
|
|
"password": {
|
|
"title": "Password",
|
|
"type": "string",
|
|
"description": "The password associated with this username.",
|
|
"airbyte_secret": true,
|
|
"order": 3
|
|
},
|
|
"auth_source": {
|
|
"title": "Authentication Source",
|
|
"type": "string",
|
|
"description": "The authentication source where the user information is stored.",
|
|
"default": "admin",
|
|
"examples": ["admin"],
|
|
"order": 4
|
|
}
|
|
}
|
|
},
|
|
"supported_destination_sync_modes": []
|
|
}
|