2021-09-15 02:50:55 +00:00
|
|
|
{
|
2022-01-27 05:25:16 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/manifest.schema.json",
|
2021-09-15 02:50:55 +00:00
|
|
|
"title": "Elastic search datasource",
|
|
|
|
|
"description": "A schema defining elastic search datasource",
|
2022-01-17 07:08:17 +00:00
|
|
|
"type": "database",
|
2021-09-22 05:13:12 +00:00
|
|
|
"source": {
|
|
|
|
|
"name": "Elasticsearch",
|
|
|
|
|
"kind": "elasticsearch",
|
|
|
|
|
"exposedVariables": {
|
2022-02-08 03:14:38 +00:00
|
|
|
"isLoading": false,
|
2021-09-22 05:13:12 +00:00
|
|
|
"data": {},
|
|
|
|
|
"rawData": {}
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
2022-01-27 05:25:16 +00:00
|
|
|
"host": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"type": "string"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"type": "string",
|
|
|
|
|
"encrypted": true
|
2022-05-25 06:52:49 +00:00
|
|
|
},
|
|
|
|
|
"ca_cert": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"client_key": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"client_cert": {
|
|
|
|
|
"encrypted": true
|
|
|
|
|
},
|
|
|
|
|
"root_cert": {
|
|
|
|
|
"encrypted": true
|
2022-01-27 05:25:16 +00:00
|
|
|
}
|
2021-09-22 05:13:12 +00:00
|
|
|
}
|
|
|
|
|
},
|
2021-11-22 08:22:32 +00:00
|
|
|
"defaults": {
|
2022-02-08 03:14:38 +00:00
|
|
|
"host": {
|
|
|
|
|
"value": "localhost"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"value": 9200
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"value": ""
|
|
|
|
|
},
|
|
|
|
|
"ssl_enabled": {
|
|
|
|
|
"value": true
|
2022-05-25 06:52:49 +00:00
|
|
|
},
|
|
|
|
|
"ssl_certificate":{
|
|
|
|
|
"value": "none"
|
2022-02-08 03:14:38 +00:00
|
|
|
}
|
2021-11-22 08:22:32 +00:00
|
|
|
},
|
2021-09-15 02:50:55 +00:00
|
|
|
"properties": {
|
2022-05-25 06:52:49 +00:00
|
|
|
"ssl_certificate": {
|
|
|
|
|
"label": "SSL Certificate",
|
|
|
|
|
"key": "ssl_certificate",
|
|
|
|
|
"type": "dropdown-component-flip",
|
|
|
|
|
"description": "Single select dropdown for choosing certificates",
|
|
|
|
|
"list": [
|
|
|
|
|
{
|
|
|
|
|
"value": "ca_certificate",
|
|
|
|
|
"name": "CA certificate"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "client_certificate",
|
|
|
|
|
"name": "Client certificate"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"value": "none",
|
|
|
|
|
"name": "None"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"commonFields":{
|
|
|
|
|
"host": {
|
|
|
|
|
"label": "Host",
|
|
|
|
|
"key": "host",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter host"
|
|
|
|
|
},
|
|
|
|
|
"port": {
|
|
|
|
|
"label": "Port",
|
|
|
|
|
"key": "port",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter port"
|
|
|
|
|
},
|
|
|
|
|
"ssl_enabled": {
|
|
|
|
|
"label": "SSL",
|
|
|
|
|
"key": "ssl_enabled",
|
|
|
|
|
"type": "toggle",
|
|
|
|
|
"description": "Toggle for ssl_enabled"
|
|
|
|
|
},
|
|
|
|
|
"username": {
|
|
|
|
|
"label": "Username",
|
|
|
|
|
"key": "username",
|
|
|
|
|
"type": "text",
|
|
|
|
|
"description": "Enter username"
|
|
|
|
|
},
|
|
|
|
|
"password": {
|
|
|
|
|
"label": "Password",
|
|
|
|
|
"key": "password",
|
|
|
|
|
"type": "password",
|
|
|
|
|
"description": "Enter password"
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
},
|
2022-05-25 06:52:49 +00:00
|
|
|
"ca_certificate":{
|
|
|
|
|
"ca_cert": {
|
|
|
|
|
"label": "CA Cert",
|
|
|
|
|
"key": "ca_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter ca certificate"
|
|
|
|
|
}
|
2022-01-27 10:31:39 +00:00
|
|
|
},
|
2022-05-25 06:52:49 +00:00
|
|
|
"client_certificate":{
|
|
|
|
|
"client_key": {
|
|
|
|
|
"label": "Client Key",
|
|
|
|
|
"key": "client_key",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter client key"
|
|
|
|
|
},
|
|
|
|
|
"client_cert": {
|
|
|
|
|
"label": "Client Cert",
|
|
|
|
|
"key": "client_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter client certificate"
|
|
|
|
|
},
|
|
|
|
|
"root_cert": {
|
|
|
|
|
"label": "Root Cert",
|
|
|
|
|
"key": "root_cert",
|
|
|
|
|
"type": "textarea",
|
|
|
|
|
"encrypted": true,
|
|
|
|
|
"description": "Enter root certificate"
|
|
|
|
|
}
|
2021-09-15 02:50:55 +00:00
|
|
|
}
|
|
|
|
|
},
|
2022-01-27 05:25:16 +00:00
|
|
|
"required": [
|
|
|
|
|
"scheme",
|
2022-01-27 10:31:39 +00:00
|
|
|
"ssl_enabled",
|
2022-01-27 05:25:16 +00:00
|
|
|
"host",
|
|
|
|
|
"port",
|
|
|
|
|
"password"
|
|
|
|
|
]
|
2022-02-08 03:14:38 +00:00
|
|
|
}
|