scp-sink/kamelet.json

162 lines
12 KiB
JSON
Raw Permalink Normal View History

2026-10-12 02:36:23 +00:00
{
"apiVersion": "camel.apache.org/v1",
"kind": "Kamelet",
"metadata": {
"name": "scp-sink",
"annotations": {
"camel.apache.org/kamelet.support.level": "Stable",
"camel.apache.org/catalog.version": "4.22.1",
"camel.apache.org/kamelet.icon": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAyMjEuMSAzMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDIyMS4xIDMwMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4NCgkuc3Qwe2ZpbGw6IzgzMkVBQjt9DQoJLnN0MXtmaWxsOiNCQUJBQkE7fQ0KCS5zdDJ7ZmlsbDpub25lO30NCgkuc3Qze2ZpbGw6IzhEQzYzRjt9DQoJLnN0NHtmaWxsOiMwRjlCRDc7fQ0KCS5zdDV7ZmlsbDojRkZGRkZGO30NCgkuc3Q2e2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6I0ZGRkZGRjt9DQoJLnN0N3tmaWxsOiMxREExRjI7fQ0KCS5zdDh7ZmlsbDojM0Q1QTk4O30NCgkuc3Q5e2ZpbGw6IzIzMUYyMD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LjgtM
"camel.apache.org/provider": "Apache Software Foundation",
"camel.apache.org/kamelet.group": "SCP",
"camel.apache.org/kamelet.namespace": "File"
},
"labels": {
"camel.apache.org/kamelet.type": "sink"
}
},
"spec": {
"definition": {
"title": "SCP Sink",
"description": "Send file to an FTP Server through Secure Copy Protocol",
"required": [
"serverName",
"serverPort"
],
"type": "object",
"properties": {
"serverName": {
"title": "Hostname",
"description": "The hostname of the FTP server",
"type": "string"
},
"serverPort": {
"title": "Port",
"description": "The port of the FTP server",
"type": "string"
},
"username": {
"title": "Username",
"description": "Username for accessing FTP Server",
"type": "string"
},
"password": {
"title": "Password",
"description": "Password for accessing FTP Server",
"type": "string",
"format": "password",
"x-descriptors": [
"urn:camel:group:credentials"
]
},
"privateKeyFile": {
"title": "Private Key File",
"description": "Set the private key file so that the SCP endpoint can do private key verification.",
"type": "string"
},
"privateKeyPassphrase": {
"title": "Private Key Passphrase",
"description": "Set the private key file passphrase so that the SCP endpoint can do private key verification.",
"type": "string",
"format": "password",
"x-descriptors": [
"urn:camel:group:credentials"
]
},
"strictHostKeyChecking": {
"title": "Strict Host Checking",
"description": "Sets whether to use strict host key checking.",
"type": "string",
"default": false
},
"useUserKnownHostsFile": {
"title": "Use User Known Hosts File",
"description": "If knownHostFile has not been explicit configured then use the host file from System.getProperty(user.home)/.ssh/known_hosts.",
"type": "boolean",
"default": true
}
}
},
"dependencies": [
"camel:core",
"camel:jsch",
"camel:kamelet"
],
"template": {
"from": {
"uri": "kamelet:source",
"steps": [
{
"to": {
"uri": "scp:{{serverName}}:{{serverPort}}",
"parameters": {
"username": "{{?username}}",
"password": "{{?password}}",
"privateKeyFile": "{{?privateKeyFile}}",
"privateKeyPassphrase": "{{?privateKeyPassphrase}}",
"strictHostKeyChecking": "{{?strictHostKeyChecking}}",
"useUserKnownHostsFile": "{{?useUserKnownHostsFile}}"
}
}
}
]
}
}
},
"propertiesSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "SCP Sink",
"description": "Send file to an FTP Server through Secure Copy Protocol",
"required": [
"serverName",
"serverPort"
],
"properties": {
"serverName": {
"type": "string",
"title": "Hostname",
"description": "The hostname of the FTP server"
},
"serverPort": {
"type": "string",
"title": "Port",
"description": "The port of the FTP server"
},
"username": {
"type": "string",
"title": "Username",
"description": "Username for accessing FTP Server"
},
"password": {
"type": "string",
"title": "Password",
"description": "Password for accessing FTP Server",
"format": "password"
},
"privateKeyFile": {
"type": "string",
"title": "Private Key File",
"description": "Set the private key file so that the SCP endpoint can do private key verification."
},
"privateKeyPassphrase": {
"type": "string",
"title": "Private Key Passphrase",
"description": "Set the private key file passphrase so that the SCP endpoint can do private key verification.",
"format": "password"
},
"strictHostKeyChecking": {
"type": "string",
"title": "Strict Host Checking",
"description": "Sets whether to use strict host key checking.",
"default": false
},
"useUserKnownHostsFile": {
"type": "boolean",
"title": "Use User Known Hosts File",
"description": "If knownHostFile has not been explicit configured then use the host file from System.getProperty(user.home)/.ssh/known_hosts.",
"default": true
}
}
}
}