FTP adapter request and response with a dynamic target


The following figure shows an XML sample of the adapter request for the FTP adapter with a dynamic target.

XML sample of the FTP adapter request with a dynamic target


<ftp-request>
  <targets>
    <target>
      <host>10.128.248.23</host>
      <user-name>root</user-name>
      <password>root@123</password>
    </target>
  </targets>
 <commands>
     <pwd/>
 </commands>
</ftp-request>
Warning

Note

For requests with dynamic targets, you must set <data-transfer-mode> to 'PASSIVE' to support an IPv6 address.

The following figure shows an XML sample of the adapter response for the FTP adapter with a dynamic target.

XML sample of the FTP adapter response with a dynamic target


<ftp-command-output>
  <response-metadata>
    <status>success</status>
  </response-metadata>
  <targets-output>
    <target-output host="10.128.248.23">
      <target-metadata>
        <status>success</status>
      </target-metadata>
      <commands-output>
        <command-output>
<ftp-command-output>
  <response-metadata>
    <status>success</status>
  </response-metadata>
  <targets-output>
    <target-output host="10.128.248.23">
      <target-metadata>
        <status>success</status>
      </target-metadata>
      <commands-output>
        <command-output>
            <metadata>
            <id>1</id>
            <command>pwd</command>
            <execution-milliseconds>0</execution-milliseconds>
            <status>success</status>
          </metadata>           
          <output>
            <pwd>/root</pwd>
          </output>
        </command-output>
      </commands-output>
    </target-output>
  </targets-output>
</ftp-command-output>

 

Warning

Note

The following sections describe the adapter requests using the named target approach for each of the commands available for the FTP adapter.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 20.19.01