SMB Actions

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

Integration with LogicHub

Connecting with SMB

To connect to SMB following details are required:

  • Label: 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.
  • 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.

Actions with SMB

List Files

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

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.

Output of Action:
json containing following items:

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

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:
json containing following items:

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

Upload File

Upload the 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.
  • File Id Column Name: Column name from the parent table that contains file id.

Output of Action:
json containing following items:

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

Move File

Move a file at old path to new path shared at 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.
  • Source Path Column Name: Column name from the parent table that contains source path relative to the service name.
  • Destination Path Column Name: Column name from the parent table that contains the destination path relative to the service name.

Output of Action:
json containing following items:

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

Delete File

Delete a file at path shared at 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:
json containing following items:

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

Did this page help you?