5.1

Table Of Contents
Method Returns Description
findDir(string,string):string[]
Array of String Searches recursively and returns
directories that match a pattern. Leaves
an open session. You can disconnect the
session manually.
findFile(string,string):string[
]
Array of String Searches recursively and returns files
that match a pattern. Leaves an open
session. You can disconnect the session
manually.
getFile(string,string):number Number
Copies a file from a remote host to the
Orchestrator server. Leaves an open
session. You can disconnect the session
manually. Returns 0 if successful, -1 if
an error has occured, and -2 if a fatal
error has occured.
listAll(string):string[]
Array of String Lists files and directories in a path.
Leaves an open session. You can
disconnect the session manually.
listDir(string):string[]
Array of String Lists directories in a path. Leaves an
open session. You can disconnect the
session manually.
listFile(string):string[]
Array of String Lists files in a path. Leaves an open
session. You can disconnect the session
manually.
putFile(string,string):number Number
Copies a file from the Orchestrator
server to a remote host. The destination
directory must exist. Returns 0 if
successful, or -1 if an error has occured.
SSHFile Class
The SSHFile class contains attributes for SSH access to files on a remote file system.
The SSHFile class defines the following attributes.
Attribute Returns Description
fileName String
File name
hostname String
SSH host name
name String
File name
path String
Full file path
port Number
SSH port
SSHFolder Class
The SSHFolder class contains attributes for SSH access to folders on a remote file system.
The SSHFolder class defines the following attributes.
Attribute Returns Description
folderName String
Folder name
hostname String
SSH host name
name String
Folder name
Using VMware vCenter Orchestrator Plug-Ins
46 VMware, Inc.