In your settings.json
file, you'll need to add the following configuration object to the actions
property:
"actions": {
"scp": {
"user": "foo",
"password": "bar",
"hostname": "example:5050",
"target": "/directory/or/file"
}
}
POST /api/v1/actions/scp
curl -X POST -H "Content-Type: application/json" -d '{
"source": "/source/file/or/directory"
"user": "foo",
"password": "bar",
"hostname": "example:port",
"target": "/target/directory/or/file"
}' "http://localhost:6060/api/v1/actions/scp"
name | type | required | description |
---|---|---|---|
source | string |
× | path to the source file or directory to copy |
user | string |
if not in settings.json | user name to connect to the host |
password | string |
if not in settings.json | password to connect to the host |
hostname | string |
if not in settings.json | host to connect to. you can append the port |
target | string |
if not in settings.json | target directory or target file for the copy |