FTP Op - Request
Overview
The FTP Op Request can be used to send a file payload to a remote server.
- Direction: OUTBOUND
- From: IN Tester
- To: External Server
Attributes
The operation attributes are as follows.
| Attribute | Type | Description |
|---|---|---|
type
|
String |
ftp.Request
|
label
|
String |
An optional label for this node if it is to be the target of a branch operation.
|
arguments
|
Object | [Required] The structure of the FTP request to perform. Expressions may be supplied within this structure. |
tests
|
Array of Object |
An array of anonymous Objects. Each Object represents a check to be performed. The associated
Pass/Fail entries will be generated in the test instance check_log. Refer to
the Operation Tests documentation for more information on the
syntext for Operation tests.
|
Example
This is an example entry within the operations array:
{
"type": "ftp.Request",
"arguments": {
"method": "PUT",
"content": "Test content to store in test.txt",
"filename": "test.txt",
"directory": "/tmp"
}
}
Arguments
The following arguments are supported.
| Argument | Type | Notes |
|---|---|---|
method
|
String |
[Required] Outbound method to use when sending the FTP Request to the remote server. Default is PUT.
|
filename
|
String | [Required] The filename of the file to be created on the remote server. |
content
|
String | The content for the file created at the remote server. If no content is provided an empty file will be created. |
directory
|
String | The directory where the file should be created. This field is optional and when not specified the file will be placed in the remote user's default directory. |