SMB Actions

Version: 1.0.8

Server Message Block (SMB) is a network communication protocol for providing shared access to files, printers, and serial ports between nodes on a network.

Connect SMB with LogicHub

  1. Navigate to Automations > Integrations.
  2. Search for SMB Actions.
  3. Click Details, then the + icon. Enter the required information in the following fields.
    • Label: Enter a connection name.
    • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
    • Verify SSL: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
    • Remote Agent: Run this integration using the LogicHub Remote Agent.
    • Server Address: Server address for SMB connection.
    • Server Port (Optional): Port for SMB connection (Default is 445 port).
    • Username: Username for SMB connection.
    • Password: Password for SMB connection.
  4. After you've entered all the details, click Connect.

Actions for SMB

List Files

Retrieve a directory listing of files/folders at the path.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
NETBIOS Name Column NameColumn name from the parent table that contains NETBIOS name of the remote server.Required
Service Name Column NameColumn name from the parent table that contains the name of the shared folder.Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: List of files.
33603360

Download File

Download a file at the path on the service name.

Inputs to this Action:

  • Connection: Choose a connection that you have created.
  • NETBIOS Name Column Name: Column name from the parent table that contains NETBIOS name of the remote server.
  • Service Name Column Name: Column name from the parent table that contains the name of the shared folder.
  • Path Column Name: Column name from the parent table that contains path relative to the service name.

Output of Action:
A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: File Id.
33603360

Upload File

Upload the file at the path on the service name.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
NETBIOS Name Column NameColumn name from the parent table that contains NETBIOS name of the remote server.Required
Service Name Column NameColumn name from the parent table that contains the name of the shared folder.Required
Path Column NameColumn name from the parent table that contains path relative to the service name.Required
File Id Column NameColumn name from the parent table that contains file id.Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.
33603360

Move File

Move a file at old path to new path shared at service name.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
NETBIOS Name Column NameColumn name from the parent table that contains NETBIOS name of the remote server.Required
Service Name Column NameColumn name from the parent table that contains the name of the shared folder.Required
Source Path Column NameColumn name from the parent table that contains source path relative to the service name.Required
Destination Path Column NameColumn name from the parent table that contains the destination path relative to the service name.Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.
33603360

Delete File

Delete a file at path shared at service name.

Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

Input NameDescriptionRequired
NETBIOS Name Column NameColumn name from the parent table that contains NETBIOS name of the remote server.Required
Service Name Column NameColumn name from the parent table that contains the name of the shared folder.Required
Path Column NameColumn name from the parent table that contains path relative to the service name.Required

Output

A JSON object containing multiple rows of result:

  • has_error: True/False
  • error: message/null
  • result: Success/Failure message.
33603360

© 2017-2021 LogicHub®. All Rights Reserved.