Ga6 5 1 Api Guide
Ga6 5 1 Api Guide
API Guide
for GoAnywhere MFT versions 6.5.1 and later
Copyright Terms and Conditions
The content in this document is protected by the Copyright Laws of the United States of America and other countries worldwide. The
unauthorized use and/or duplication of this material without express and written permission from HelpSystems is strictly prohibited.
Excerpts and links may be used, provided that full and clear credit is given to HelpSystems with appropriate and specific direction to the
original content. HelpSystems and its trademarks are properties of the HelpSystems group of companies. All other marks are property of
their respective owners.
202006110101
Table of Contents
Welcome 10 CLI 29
GoAnywhere Command Web Services Import Admin User 31
Installation Requirements 10
REST 31
GoAnywhere Command Installation
SOAP 31
Requirements 10
CLI 32
Admin User Permissions 10
Promote Admin User 33
REST 11
REST 33
Attaching Files to REST Requests 12
SOAP 33
SOAP 13
CLI 35
Attaching Files to SOAP Requests 13
GoAnywhere Workflow Commands 36
GoAnywhere Command Administration 15
Activate Encrypted Folder 36
Installation 15
REST 36
Upgrade 18
SOAP 37
Uninstall 19
CLI 39
Executing GoAnywhere Command 19
Cancel Job 41
Admin User Permissions 19
REST 41
Windows® 19
SOAP 41
Linux, Unix, AIX, Mac OS X 20
CLI 42
Character Encoding 23
Deactivate Encrypted Folder 42
listCommands 23
REST 42
commandHelp 23
SOAP 43
GoAnywhere Admin User Commands 25
CLI 44
Delete Admin User 26
Delete Cloud Connector 45
REST 26
REST 45
SOAP 26
SOAP 46
CLI 27
CLI 46
Export Admin User 27
Delete Monitor 47
REST 27
REST 47
SOAP 29
GoAnywhere Command Web Services use BASIC authentication with the User ID and Password of
an Admin User in GoAnywhere.
REST URI
The base URI to send HTTP REST Requests to a your GoAnywhere Server is http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/. The [Server URL] and [port] place holders used throughout
this guide must be replaced with the URL and port numbers of your GoAnywhere installation.
The command name or parameter for each action is listed in the commands sections in the
subsequent chapters of this guide.
EXAMPLE:
POST http://10.1.2.1:8000/goanywhere/rest/gacmd/v1/jobs/123456789012/cancel is the
REST request used to cancel a job.
Some items in your GoAnywhere installation, such as Triggers, Web Groups, or Resources, may
have names that contain spaces. When using this name in a REST URI, the spaces must be encoded
using '+' or '%20'. For example, an SFTP Resource is named "Trading Partner SFTP" in
GoAnywhere. To export this Resource using a REST request, the spaces must be encoded in the
URI:
EXAMPLE:
Using '%20': POST
http://10.1.2.1:8000/goanywhere/rest/gacmd/v1/resources/sftp/Trading%20Partner%20SF
TP
EXAMPLE:
Using '+': POST
http://10.1.2.1:8000/goanywhere/rest/gacmd/v1/resources/sftp/Trading+Partner+SFTP
When making any REST requests to a GoAnywhere server, the content type must be
'application/json'. Specific special characters within the JSON fields must be escaped. The following
table contains a list of escape characters and examples of how they are used:
{
"importParameters" :
{
"file":"Z29hbnl3aGVyZQ==",
"domain":"Chicago Campus",
"ignoreCompileErrors":"true",
"replaceProject":"true",
"createTargetFolder":"false",
"targetFolder" : "/Incoming"
}
}
The URL to make a SOAP request on the GoAnywhere server is: http://[server URL]:
[port]/goanywhere/soap/gacmd/v1/GoAnywhereCommand. The [server URL] and [port] place
holders used throughout this guide must be replaced with the URL and port numbers of your
GoAnywhere installation.
SOAP WSDL
The SOAP WSDL can be found using the following URL on your server: http://[server URL]:
[port]/goanywhere/soap/gacmd/v1/GoAnywhereCommand?wsdl.
SOAP Authentication
GoAnywhere Command Web Services use BASIC authentication with User and Password of an
Admin User in GoAnywhere.
SOAP Envelope
Each SOAP request contains a unique XML formatted body. Examples of the SOAP Envelope are
contained in each command example found in the later sections of this guide.
For a non-MTOM enabled request, the input file can be a Base64 encoded string and supplied in
the <inputFile> field.
Example:
<inputFile>Z29hbnl3aGVyZQ==</inputFilefile>
MTOM Request
For an MTOM enabled request, specify a CID using the <inc> XML name space which points to
another MIME part on the same request that contains the file.
Example:
<inputFile>
<inc:Include xmlns:inc="http://www.w3.org/2004/08/xop/include" href="cid:123456"/>
</inputFilefile>
If your application automatically replaces Content ID references with the <inc> XML name space,
then only the CID is required.
Example:
<inputFile>cid:123456</inputFilefile>
GoAnywhere Command
Administration
The Administration section outlines the installation and maintenance of the GoAnywhere Command
application.
Installation
GoAnywhere Command can be installed on any computer running Microsoft® Windows®, Linux,
UNIX, AIX®, and Mac OS X. Download the appropriate installation file from the GoAnywhere
Customer Portal at https://my.goanywhere.com.
Follow the instructions below to install the GoAnywhere Command application:
Windows Installation
Step 1 - Launch the Installation Package
Locate and double-click the installation file on your computer (the default file name is
"gacmdwindows.exe"). If a Security Warning opens, click the Run button to confirm you wish to
install the GoAnywhere Command application.
For parameters for silent install on Windows, see the Silent Install Parameters on the next page.
1. Download or copy the GoAnywhere Command installation file to a location on the target
computer.
2. From a command prompt, navigate to the folder where the file was placed.
3. Type chmod 777 gacmdunix.sh and then press Enter.
4. Type ./gacmdunix.sh and then press Enter.
5. Respond to the screen prompts to finish installing the oAnywhere Command application.
1. Copy the GoAnywhere Command UNIX installer file to the UNIX server.
2. Execute the downloaded installer file using the following command:
[installer_filename].sh -q
For parameters for silent install on Linux, Unix, AIX, or Mac OS X, see the Silent Install Parameters
on the next page.
Upgrade
The installer used to install GoAnywhere Command is also used to upgrade GoAnywhere
Command. The install file recognizes any existing installations and offers to either upgrade in the
same folder or install it in a different location.
Uninstall
Windows
The GoAnywhere Command uninstalls using the Programs and Features option in the Windows
Control Panel. Follow the instructions below to uninstall the GoAnywhere Command:
Windows®
The default installation directory on Windows is C:\Program Files\HelpSystems\GoAnywhere
Command. In a Command or DOS window, navigate to the install folder and type:
gacmd.exe [-parameter] <value> [-command] <value>
l http://10.1.4.1:8000/goanywhere
l https://10.1.4.1:8001/goanywhere
l http://10.1.4.1:8000/goanywhere,
http://10.1.4.2:8000/goanywhere
user The User name for logging in to Yes None
GoAnywhere.
password The password for the User account. Yes* None
passwordPrompt You will be prompted to specify the Yes* None
password when the command is
executed.
passwordVariabl The password is stored in an Yes* None
e environment/user variable in the
system. Specify the variable name as the
parameter, which is case sensitive.
passwordFile The password is stored in a file. Specify Yes* None
the full path to the file.
passwordIsEncry Specifies that a password is encrypted. No None
pted Valid options are true or false.
NOTE:
To encrypt a password, you can use the password encryption tool from the
GoAnywhere server by logging in to GoAnywhere and then specify the following page
in your browser:
http://[server name]:[port]/goanywhere/admin/debug/AESEncrypt.xhtml
Character Encoding
Special characters in parameter values need to be encoded. The following table contains a list of
invalid characters, the replacement encoded value, and an example.
listCommands
Display a list of possible commands using listCommands.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-listCommands
commandHelp
For help with using a command, you can display the command description and command parameters
using commandHelp.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-commandHelp cancelJob
NOTE:
You cannot delete the system root or administrator user accounts.
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/adminusers/
[userName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteAdminUser>
<userName>jsmith</userName>
</web:deleteAdminUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting an Admin User.
CLI
The following table lists the available options when deleting an Admin User in GoAnywhere
Command using the deleteAdminUser command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteAdminUser -userName kharris
NOTE:
You cannot delete the system default root or administrator user accounts.
NOTE:
You cannot export the system root or administrator user accounts.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/adminusers/
[userName]
<createdOn>1425500848000</createdOn>
<name>kharris</name>
<email>kharris@example.com</email>
<homeDirectory>*DOCROOT/*USER</homeDirectory>
<enabled>true</enabled>
<loginMethodName>GoAnywhere</loginMethodName>
<roles>
<role>
<name>Agent Manager</name>
</role>
<role>
<name>Auditor</name>
</role>
<role>
<name>Dashboard Manager</name>
</role>
<role>
<name>File Manager</name>
</role>
<role>
<name>Job Manager</name>
</role>
<role>
<name>Key Manager</name>
</role>
<role>
<name>Product Administrator</name>
</role>
<role>
<name>Project Designer</name>
</role>
<role>
<name>Project Executor</name>
</role>
<role>
<name>Resource Manager</name>
</role>
<role>
<name>Secure Forms Manager</name>
</role>
<role>
<name>Secure Mail Manager</name>
</role>
<role>
<name>Security Officer</name>
</role>
<role>
<name>Trigger Manager</name>
</role>
<role>
<name>Web User Device Manager</name>
</role>
<role>
<name>Web User Manager</name>
</role>
</roles>
<groups>
<group>
<name>All Admin Users</name>
</group>
</groups>
<domains>
<domain>
<name>Default</name>
</domain>
</domains>
</user>
</users>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportAdminUser>
<userName>kharris</userName>
</web:exportAdminUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when running exporting an Admin User.
CLI
The following table lists the available options when exporting an Admin User in GoAnywhere
Command using the exportAdminUser command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportAdminUser -userName "kharris" -userOutputFile
"C:\adminUsers\kharris.xml"
NOTE:
You cannot export the system default root or administrator user accounts.
NOTE:
You cannot import the system root or administrator user accounts.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/adminusers
Body Sample:
{
"importParameters" :
{
"file":"Z29hbnl3aGVyZQ=="
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importAdminUser>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
</web:importAdminUser>
</soapenv:Body>
</soapenv:Envelope>
</S:Body>
</S:Envelope>
The following table lists the available options when importing an Admin User.
CLI
Import an Admin User from an XML file in GoAnywhere Command using the importAdminUser
command. Prior to importing the Admin User from a file, you must export the Admin User from the
source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importAdminUser -file "C:\temp\AdminUsers.xml"
NOTE:
You cannot import the system default root or administrator user accounts.
NOTE:
You cannot promote the system root or administrator user accounts.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/adminusers/
[userName]/promote
Body Sample:
{
"targetServer" : "http://10.1.5.1:9000/goanywhere",
"targetUser" : "root",
"targetPassword" : "goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteAdminUser>
<targetServer>http//:10.1.5.1:9000/
goanywhere</targetServer>
<targetUser>root</targetUser>
<targetpassword>goanywhere</targetpassword>
<userName>kharris</userName>
</web:promoteAdminUser>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:promoteAdminUserResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>Admin user 'kharris' was promoted successfully</result>
</ns2:promoteAdminUserResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when promoting an Admin User.
CLI
The following table lists the available options when promoting an Admin User in GoAnywhere
Command using the promoteAdminUser command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteAdminUser -targetServer http://10.1.5.2:8000/goanywhere
-targetUser root -targetPassword goanywhere -userName "kharris"
NOTE:
You cannot promote the system default root or administrator user accounts.
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/encryptedfolders
Body Sample
{
"activateParameters" :
{
"folderPath" : "/mftsystem/encrypted",
"createFolder" : "true",
"createBackup" : "true",
"backupFolderPath" : "/mftsystem/backups"
}
}
{
"data" :
[
{
"encryptionKey" : "jlVoGGIeA0yYZYJ7SMLa9...",
"seedUUID" : "abb1b909-04b3-3a01-a578-65be3cb3609b"
}
]
}
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:activateEncryptedFolder>
<folderPath>/mftsystem/encrypted</folderPath>
<createFolder>true</createFolder>
<createBackup>true</createBackup>
<backupFolderPath>/mftsystem/backups</backupFolderPath>
</web:activateEncryptedFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when activating an encrypted folder.
CLI
The following table lists the available options when activating an encrypted folder in GoAnywhere
Command using the activateEncryptedFolder command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command activateEncryptedFolder -folderPath "C:\users\kharris\encrypted" -createFolder
true -createBackup true -backupFolderPath C:\users\kharris\backups
Cancel Job
Cancel a job using the cancelJob command. The job will be canceled and logged in the job log.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/jobs/
[jobId]/cancel
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:cancelJob>
<jobId>1347033630762</jobId>
</web:cancelJob>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when canceling a job.
CLI
The following table lists the available options when canceling a job in GoAnywhere Command using
the cancelJob command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command cancelJob -jobId 1347033630762
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/encryptedfolders
Body Sample
{
"deactivateParameters" :
{
"folderPath" : "/mftsystem/encrypted",
"createBackup" : "true",
"backupFolderPath" : "/mftsystem/backups"
}
}
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deactivateEncryptedFolder>
<folderPath>/mftsystem/encrypted</folderPath>
<backupFolderPath>/mftsystem/backup</backupFolderPath>
</web:deactivateEncryptedFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deactivating an encrypted folder.
CLI
The following table lists the available options when deactivating an encrypted folder in
GoAnywhere Command using the deactivateEncryptedFolder command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deactivateEncryptedFolder -folderPath "C:\users\kharris\encrypted"
-decryptContents true -createbackup true -backupFolderPath C:\users\kharris\backups
REST
Method & URL
DELETE http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/cloudConnectors/[cloudConnectorName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteCloudConnector>
<cloudConnectorName>Jira Cloud Connector</cloudConnectorName>
</web:deleteCloudConnector>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Cloud Connector.
CLI
The following table lists the available options when deleting a Cloud Connector in GoAnywhere
Command using the deleteCloudConnector command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteCloudConnector -cloudConnectorName "Jira Cloud Connector"
Delete Monitor
Delete a Monitor using the deleteMonitor command.
NOTE:
The Monitor must be deactivated from the GoAnywhere GUI before it can be deleted using a
REST or SOAP command.
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/monitors/
[monitorType]/[monitorName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteMonitor>
<monitorName>SFTP Upload Folder</monitorName>
<monitorType>sftp</monitorType>
</web:deleteMonitor>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Monitor.
CLI
The following table lists the available options when deleting a Monitor in GoAnywhere Command
using the deleteMonitor command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteMonitor -monitorName "SFTP Upload Folder" -monitorType "sftp"
Delete Project
Delete a Project using the deleteProject command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/projects
Body Sample:
{
"deleteParameters" :
{
"project":"/DailyTransfers/TestProject",
"domain":"Chicago Campus"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteProject>
<project>/DailyTransfers/TestProject</project>
<domain>Chicago Campus</domain>
</web:deleteProject>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteProject>
<project>/DailyTransfers/TestProject</project>
<domain>Chicago Campus</domain>
</web:deleteProject>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a project.
CLI
The following table lists the available options when deleting a project in GoAnywhere Command
using the deleteProject command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteProject -project "/DailyTransfers/TestProject" -domain "Chicago Campus"
Delete Resource
Delete a Resource using the deleteResource command.
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/resources/
[resourceType]/[resourceName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteResource>
<resourceType>as2</resourceType>
<resourceName>Partner AS2</resourceName>
</web:deleteResource>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Resource.
l as2 l icap
l as400 l mailbox
l azureblob l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
CLI
The following table lists the available options when deleting a Resource in GoAnywhere Command
using the deleteResource command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteResource -resourceType "as2" -resourceName "Partner AS2"
l azureblob l icap
l as2 l mailbox
l as400 l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
Delete Schedule
Delete a workflow Schedule using the deleteSchedule command.
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/schedules/
[scheduleName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteSchedule>
<scheduleName>Daily EDI Transfer</scheduleName>
</web:deleteSchedule>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a schedule.
CLI
The following table lists the available options when deleting a schedule in GoAnywhere Command
using the deleteSchedule command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteSchedule -scheduleName "Daily EDI Transfer"
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/forms/
[secureFormName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteSecureForm>
<secureFormName>Employee Survey</secureFormName>
</web:deleteSecureForm>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Secure Form.
CLI
The following table lists the available options when deleting a Secure Form in GoAnywhere
Command using the deleteSecureForm command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteSecureForm -secureFormName "Employee Survey"
Delete Trigger
Delete a Trigger using the deleteTrigger command.
REST
Method & URL
DELETE http://[server URL]:[port]//rest/gacmd/v1/triggers/[eventType]/
[triggerName]
Response Body
SOAP
Envelope Example
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteTrigger>
<triggerName>Deny GoDrive Upload</triggerName>
<eventType>before_godrive_upload</eventType>
</web:deleteTrigger>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Trigger.
Event Types
l account_disabled l delete_folder_failed
l as2_mdn_receive_failed l delete_folder_successful
l as2_mdn_receive_successful l disconnect
l as2_message_receive_failed l download_failed
l as2_message_receive_successful l download_successful
l before_as2_mdn_send l invitation_failed
l before_godrive_upload l invitation_successful
l before_secure_mail_send l ip_address_blacklisted
l change_password_failed l login_failed
l change_password_successful l login_successful
l checksum_failed l registration_failed
l checksum_successful l registration_successful
l connect l rename_file_failed
l connection_rejected l rename_file_successful
l create_folder_failed l rename_folder_failed
l create_folder_successful l rename_folder_successful
l delete_file_failed l upload_failed
l delete_file_successful l upload_successful
CLI
The following table lists the available options when deleting a Trigger in GoAnywhere Command
using the deleteTrigger command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteTrigger -triggerName "Deny GoDrive Upload" -eventType "before_godrive_
upload"
Export Certificate
Export a Certificate from a Key Vault.
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/kms/certificates
Body Sample:
{
"exportParameters" :
{
"keyName":"myCert",
"keyVault":"My Vault",
"exportType":"head",
"domain": "Chicago Campus"
}
}
MIIEGDCCAwCgAw...
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportCertificate>
<keyName>myCert</keyName>
<keyVault>My Vault</keyVault>
<exportType>head</exportType>
<domain>Chicago Campus</domain>
</web:exportCertificate>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Certificate from a Key Vault.
CLI
The following table lists the available options when exporting a Certificate from a Key Vault in
GoAnywhere Command using the exportCertificate command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportCertificate -certificateOutputFile "C:\users\kharris\trustedCertificates.crt"
-keyName trustedCertificate -exportType headCertificate
REST
Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/cloudConnectors/[cloudConnectorName]
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportCloudConnector>
<cloudConnectorName>Jira Cloud Connector</cloudConnectorName>
</web:exportCloudConnector>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Cloud Connector.
CLI
The following table lists the available options when exporting a Cloud Connector in GoAnywhere
Command using the exportCloudConnector command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportCloudConnector -cloudConnectorName "Jira Cloud Connector"
-cloudConnectorOutputFile "C:\CloudConnectors\JiraCloudConnector.xml"
Export Monitor
Export a Monitor to an XML file using the exportMonitor command.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/monitors/
[monitorType]/[monitorName]
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportMonitor>
<monitorName>Trading Partner FTP</monitorName>
<monitorType>ftp</monitorType>
</web:exportMonitor>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Monitor.
CLI
The following table lists the available options when exporting a Monitor in GoAnywhere Command
using the exportMonitor command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportMonitor -monitorName "Trading Partner FTP" -monitorType "ftp"
-monitorOutputFile "C:\monitors\TradingPartnerFTP.xml"
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/kms/pgpkeys
Body Sample:
{
"exportParameters" :
{
"keyName":"myPGPKey",
"keyVault":"My Vault",
"keyType":"keyPair",
"domain": "Chicago Campus"
}
}
QOsBFpFGJIBCA...
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportPGPKey>
<keyName>myPGPKey</keyName>
<keyVault>My Vault</keyVault>
<keyType>keyPair</keyType>
<domain>Chicago Campus</domain>
</web:exportPGPKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a PGP Key from a Key Vault.
CLI
The following table lists the available options when exporting a PGP Key from a Key Vault in
GoAnywhere Command using the exportPGPKey command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportPGPKey -keyType public -ascOutputFile
Export Project
Export a Project to an XML file using the exportProject command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/projects
{
"exportParameters" :
{
"project":"Demo/Test",
"domain":"Chicago Campus"
}
}
<module name="Main">
<print version="1.0">
<![CDATA[The project executed successfully. ]]>
</print>
</module>
</project>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportProject>
<project>/Demo/Test</project>
<domain>Chicago Campus</domain>
</web:exportProject>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Project.
CLI
The following table lists the available options when exporting a Project in GoAnywhere Command
using the exportProject command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportProject -project "/Demo/Test" -projectOutputfile "C:\temp\test.xml" -
domain "Chicago Campus"
Export Resource
Export a Resource to an XML file using the exportResource command.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/resources/
[resourceType]/[resourceName]
<passwordIsEncrypted>true</passwordIsEncrypted>
<passwordIsRecoverable>false</passwordIsRecoverable>
<passive>false</passive>
<dataConnectionStartPort>3000</dataConnectionStartPort>
<dataConnectionEndPort>4000</dataConnectionEndPort>
<timeout>30</timeout>
<connectionRetryAttempts>5</connectionRetryAttempts>
<connectionRetryInterval>10</connectionRetryInterval>
<initialRemoteDirectory />
<controlEncoding />
<throttleBandwidth>false</throttleBandwidth>
<listParser>windows</listParser>
<dateFormat>mm/dd/yyyy</dateFormat>
<recentDateFormat>mm/dd/yyyy</recentDateFormat>
<proxyType>http</proxyType>
<proxyHost>12.5.6.23</proxyHost>
<alternateProxyHost>12.5.6.24</alternateProxyHost>
<proxyPort>8000</proxyPort>
<proxyUser>admin</proxyUser>
<proxyPassword>R2czGWrj3rb66id1JZwYDA==</proxyPassword>
<proxyPasswordIsEncrypted>true</proxyPasswordIsEncrypted>
<proxyPasswordIsRecoverable>false</proxyPasswordIsRecoverable>
<resolveAtProxy>false</resolveAtProxy>
</resource>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportResource>
<resourceType>ftp</resourceType>
<resourceName>Trading Partner FTP</resourceName>
</web:exportResource>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Resource.
l as2 l icap
l as400 l mailbox
l azureblob l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
CLI
The following table lists the available options when exporting a Resource in GoAnywhere Command
using the exportResource command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportResource -resourceType "ftp" -resourceName "Trading Partner FTP"
-resourceOutputFile "C:\resources\TradingPartnerFTP.xml"
l azureblob l icap
l as2 l mailbox
l as400 l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
Export Schedule
Export a Schedule to an XML file using the Export Schedule command.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/schedules/
[scheduleName]
<domain>Default</domain>
<description></description>
<onSuccessAttachJobLog>false</onSuccessAttachJobLog>
<onFailureAttachJobLog>false</onFailureAttachJobLog>
<calendarName></calendarName>
<triggerState>I</triggerState>
<runUser>root</runUser>
<runPriority>5</runPriority>
<projectLocation>/Projects/Daily Transfer</projectLocation>
<onSuccessEmails></onSuccessEmails>
<onFailureEmails></onFailureEmails>
<queuePriority>5</queuePriority>
<passwordIsEncrypted>true</passwordIsEncrypted>
<jobName></jobName>
<jobQueue></jobQueue>
<jobData />
</scheduledJob>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportSchedule>
<scheduleName>Daily Transfer</scheduleName>
</web:exportSchedule>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Schedule.
CLI
The following table lists the available options when exporting a Schedule in GoAnywhere
Command using the Export Schedule command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportSchedule -scheduleName "Daily Transfer" -scheduleOutputFile
"C:\schedules\DailyTransfer.xml"
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/forms/
[secureFormName]
<modifiedOn>1489181523000</modifiedOn>
<projectLocation>/Call Agent Project</projectLocation>
<runUser>root</runUser>
<userPassword>goanywhere</userPassword>
<jobName/>
<componentSequence>6</componentSequence>
<componentVersion>1</componentVersion>
<webClientEnabled>true</webClientEnabled>
<soapEnabled>true</soapEnabled>
<restEnabled>true</restEnabled>
<allowEmbeddingFrom>0</allowEmbeddingFrom>
<webGroups/>
<webUsers/>
<components>
<row id="1002-0">
<column id="1002-1">
<textfield autocomplete="true" defaultValue="" id="1002-2" label="test"
placeholder=""required="false" showToolTip="mouseenter" tooltip=""
variableName="test" width="50"/>
</column>
</row>
<row id="1002-3">
<column id="1002-4">
<textfield autocomplete="true" defaultValue="test 2" id="1002-5"
label="test 2" placeholder=""required="false" showToolTip="mouseenter"
tooltip="" variableName="test 2" width="50"/>
</column>
</row>
</components>
</secureForm>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportSecureForm>
<secureFormName>Daily Transfer</secureFormName>
</web:exportSecureForm>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Secure Form.
CLI
The following table lists the available options when exporting a Secure Form in GoAnywhere
Command using the exportSecureForm command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportSecureForm -secureFormName "Ballot" -secureFormOutputFile
"C:\secureForms\Ballot.xml"
The following table lists the available options when exporting a Secure Form:
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/kms/sshkeys
Body Sample:
{
"exportParameters" :
{
"keyName":"myRSAKey",
"keyVault":"My Vault",
"keyType":"public",
"domain": "Chicago Campus"
}
}
AAAAB3NzaC1yc2EA...
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportSSHKey>
<keyName>myRSAKey</keyName>
<keyVault>My Vault</keyVault>
<keyType>public</keyType>
<domain>Chicago Campus</domain>
</web:exportSSHKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a SSH Key from a Key Vault.
CLI
The following table lists the available options when exporting a SSH Key from a Key Vault in
GoAnywhere Command using the exportSSHKey command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportSSHKey -keyOutputFile "C:\users\kharris\temp\tradingPartner.pub"
-keyName tradingPartner -keyType private
Export Trigger
Export a Trigger to an XML file using the exportTrigger command.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/triggers/
[eventType]/[triggerName]
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportTrigger>
<triggerName>Upload Failed</triggerName>
<eventType>upload_failed</eventType>
</web:exportTrigger>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Trigger.
Event Types
l account_disabled l delete_folder_failed
l as2_mdn_receive_failed l delete_folder_successful
l as2_mdn_receive_successful l disconnect
l as2_message_receive_failed l download_failed
l as2_message_receive_successful l download_successful
l before_as2_mdn_send l invitation_failed
l before_godrive_upload l invitation_successful
l before_secure_mail_send l ip_address_blacklisted
l change_password_failed l login_failed
l change_password_successful l login_successful
l checksum_failed l registration_failed
l checksum_successful l registration_successful
l connect l rename_file_failed
l connection_rejected l rename_file_successful
l create_folder_failed l rename_folder_failed
l create_folder_successful l rename_folder_successful
l delete_file_failed l upload_failed
l delete_file_successful l upload_successful
CLI
The following table lists the available options when exporting a Trigger in GoAnywhere Command
using the exportTrigger command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportTrigger -triggerName "Upload Failed" -eventType "upload_failed"
-triggerOutputFile "C:\triggers\uploadFailed.xml"
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/jobs/[jobId]
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:getJobLog>
<jobId>1347033630762</jobId>
</web:getJobLog>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when using the getJobLog command.
CLI
The following table lists the available options when using the getJobLog command in GoAnywhere
Command using the getJobLog command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command getJobLog -jobId 1347033630762 -jobLogOutputFile "C:\temp\Joblog.txt"
NOTE:
The getJobStatus command is supported in GoAnywhere MFT version 6.4.0 and later.
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/jobs/
[jobId]/status[?jobStatusFormat=[jobStatusFormat]]
{
"jobStatusCode": "S",
"jobStatusMessage": "Successful"
}
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:getJobStatus>
<jobId>1000000008041</jobId>
<jobStatusFormat>XML</jobStatusFormat>
</web:getJobStatus>
</soapenv:Body>
</soapenv:Envelope>
</jobStatus>
</result>
</ns2.getJobStatusResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when using the getJobStatus command.
CLI
The following table lists the available options for the getJobStatus command in GoAnywhere
Command. The job can be in the following status: Q (queued), A (active), P (paused), S (successful), F
(failed), or C (canceled). The following table lists the available options when using the getJobStatus
command.
NOTE:
The getJobStatus command is supported in GoAnywhere MFT version 6.4.0 and later.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command getJobStatus -jobId 1347033630762 -jobStatusFormat TEXT -responseoutputfile
"c:\temp\jobStatusResponse.txt"
Import Certificate
Import a Certificate from a CERT, BCFKS, JKS, PEM, or PKCS12 file into a Key Vault.
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/kms/certificates
Body Sample:
{
"importParameters" :
{
"keyName":"myCert",
"keyVault":"My Vault",
"fileFormat":"certificate",
"file":"Z29hbnl3aGVyZQ==",
"domain": "Chicago Campus"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importCertificate>
<keyName>myCert</keyName>
<keyVault>My Vault</keyVault>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<domain>Chicago Campus</domain>
</web:importCertificate>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Certificate into a Key Vault.
CLI
The following table lists the available options when importing a Certificate into a Key Vault in
GoAnywhere Command using the importCertificate command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importCertificate -file "C:\gamft\userdata\keys\x509\trustedCertificates.cert" -
keyName trustedCertificate -domain PROD01
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/cloudConnectors
Body Sample:
{
"file":"Z29hbnl3aGVyZQ==",
"replaceConnector":"true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importCloudConnector>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<replaceConnector>true</replaceConnector>
</web:importCloudConnector>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Cloud Connector.
CLI
The following table lists the available options when importing a Cloud Connector in GoAnywhere
Command using the importCloudConnector command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importCloudConnector -file "C:\CloudConnectors\JiraConnector.XML"
-ignoreCompileErrors true -replaceConnector true
Import Monitor
Import a Monitor from an XML file.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/monitors/
Body Sample:
{
"file":"Z29hbnl3aGVyZQ==",
"updateExistingMonitor": "true",
"domain" : "Chicago Campus"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importMonitor>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<updateExistingMonitor>true</updateExistingMonitor>
<domain>Chicago Campus</domain>
</web:importMonitor>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Monitor.
CLI
The following table lists the available options when importing a Monitor in GoAnywhere Command
using the importMonitor command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importMonitor -file "C:\Monitors\FTPMonitor.XML" -updateExistingMonitor true
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/kms/pgpkeys
Body Sample:
{
"importParameters" :
{
"keyVault":"My Vault",
"ascFile":"Z29hbnl3aGVyZQ==",
"domain": "Chicago Campus"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importPGPKey>
<keyVault>My Vault</keyVault>
<ascFile>Z29hbnl3aGVyZQ==</ascFile>
<domain>Chicago Campus</domain>
</web:importPGPKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a PGP Key into a Key Vault.
CLI
The following table lists the available options when importing a PGP Key into a Key Vault in
GoAnywhere Command using the importPGPKey command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importPGPKey -publicKeyRingFile "C:\gamft\userdata\keys\pgp\pubring.pkr" -
domain PROD01
Import Project
Import a Project from an XML file by using the importProject command.
REST
Method & URL
{
"importParameters" :
{
"file":"Z29hbnl3aGVyZQ==",
"domain":"Chicago Campus",
"ignoreCompileErrors":"true",
"replaceProject":"true",
"createTargetFolder":"false",
"targetFolder" : "/Incoming"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importProject>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<targetFolder>/Incoming</targetFolder>
<replaceProject>true</replaceProject>
<createTargetFolder>false</createTargetFolder>
<ignoreCompileErrors>true</ignoreCompileErrors>
<domain>Chicago Campus</domain>
</web:importProject>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a project.
CLI
The following table lists the available options when importing a project in GoAnywhere Command
using the importProject command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importProject -file "C:\Temp\ProcessFiles.XML"
-targetFolder "/Incoming" - replaceProject true -domain "Chicago Campus"
REST
Method & URL
{
"importZipParameters" :
{
"file":"Z29hbnl3aGVyZQ==",
"domain":"Chicago Campus",
"ignoreCompileErrors":"true",
"targetFolder":"/RestFolder",
"createTargetFolder":"true",
"maintainDirectoryStructure":"true",
"overwriteFolderDescription":"true",
"overwriteDuplicateFolderVariables":"true",
"replaceProjects":"true"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importProjectsFromZip>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<targetFolder>/Incoming</targetFolder>
<createTargetFolder>false</createTargetFolder>
<ignoreCompileErrors>true</ignoreCompileErrors>
<domain>Chicago Campus</domain>
<maintainDirectoryStructure>true</maintainDirectoryStructure>
<overwriteFolderDescription>true</overwriteFolderDescription>
<overwriteDuplicateFolderVariables>true</overwriteDuplicate
FolderVariables>
</web:importProjectsFromZip>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing projects.
CLI
The following table lists the available options when importing projects in GoAnywhere Command
using the importProjectsFromZip command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importProjectsFromZip -file "C:\Temp\ProcessFiles.Zip"
-targetFolder "/Incoming" - replaceProjects true -domain "Chicago Campus"
Import Resource
Import a Resource from an XML file. Prior to importing the Resource from a file, you must export
the Resource from the source GoAnywhere server.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/resources/
Body Sample:
{
"file":"Z29hbnl3aGVyZQ==",
"replaceResource": "true",
"domain" : "Chicago Campus"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importResource>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<replaceResource>true</replaceResource>
<domain>Chicago Campus</domain>
</web:importResource>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Resource.
CLI
The following table lists the available options when importing a Resource in GoAnywhere Command
using the importResource command. Prior to importing the Resource from a file, you must export
the Resource from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importResource -file "C:\Archive\database.xml" -replaceResource true
Import Schedule
Import a Schedule from an XML file. Prior to importing the Schedule from a file, you must export
the Schedule from the source GoAnywhere server.
REST
Method & URL
{
"file":"Z29hbnl3aGVyZQ==",
"replaceSchedule": "true",
"domain" : "Chicago Campus"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importSchedule>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<replaceSchedule>true</replaceSchedule>
<domain>Chicago Campus</domain>
</web:importSchedule>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Schedule.
CLI
The following table lists the available options when importing a Schedule in GoAnywhere Command
using the importSchedule command. Prior to importing the Schedule from a file, you must export
the Schedule from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importSchedule -file "C:\Schedules\DailyTransfers.XML" -replaceSchedule true
REST
Method & URL
{
"file":"Z29hbnl3aGVyZQ==",
"replaceSecureForm": "true",
"ignoreWebUsers": "true",
"ignoreWebGroups": "true",
"domain" : "default"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importSecureForm>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<replaceSecureForm>false</replaceSecureForm>
<ignoreWebUsers>true</ignoreWebUsers>
<ignoreWebGroups>true</ignoreWebGroups>
<domain>default</domain>
</web:importSecureForm>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Schedule.
CLI
The following table lists the available options when importing a Schedule in GoAnywhere Command
using the importSecureForm command. Prior to importing the Secure Form from a file, you must
export the Secure Form from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importSecureForm -file "C:\forms\Ballot.xml" -replaceSecureForm true
-ignoreWebUsers true -ignoreWebGroups true
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/kms/sshkeys
Body Sample:
{
"importParameters" :
{
"keyName":"myRSAKey",
"keyVault":"My Vault",
"file":"Z29hbnl3aGVyZQ==",
"keyType" : "public",
"domain": "Chicago Campus"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importSSHKey>
<keyName>myCert</keyName>
<keyVault>My Vault</keyVault>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<keyType>public</keyType>
<domain>Chicago Campus</domain>
</web:importSSHKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a SSH Key into a Key Vault.
CLI
The following table lists the available options when importing a SSH Key into a Key Vault in
GoAnywhere Command using the importSSHKey command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importSSHKey -file "C:\gamft\userdata\keys\SSH\tradingPartner.pub" -keyName
tradingPartner -keyType public -domain PROD01
Import Trigger
Import a Trigger using an XML file. Prior to importing the Trigger from a file, you must export the
Trigger from the source GoAnywhere server.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/triggers
Body Sample:
{
"file":"Z29hbnl3aGVyZQ==",
"replaceTrigger": "true",
"domain" : "Chicago Campus"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importTrigger>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<replaceTrigger>true</replaceTrigger>
<domain>Chicago Campus</domain>
</web:importTrigger>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Trigger.
CLI
The following table lists the available options when importing a Trigger in GoAnywhere Command
using the importTrigger command. Prior to importing the Trigger from a file, you must export the
Trigger from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importTrigger -file "C:\Triggers\EDI_Trigger.XML" - replaceTrigger true
Pause Job
Pause a GoAnywhere job using the pauseJob command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/jobs/
[jobId]/pause
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:pauseJob>
<jobId>1347033630762</jobId>
</web:pauseJob>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when pausing a job.
CLI
The following table lists the available options when pausing a job in GoAnywhere Command using
the pauseJob command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command pauseJob -jobId 1347033630762
REST
Method & URL
POST http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/cloudConnectors/
[cloudConnectorName]/promote
Body Sample:
{
"targetServer":"http://10.1.4.1:9000/goanywhere",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"replaceConnector" : "true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteCloudConnector>
<cloudConnectorName>Jira Cloud Connector</cloudConnectorName>
<targetServer>http://10.1.4.1:9000/goanywhere</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
</web:promoteCloudConnector>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Cloud Connector.
CLI
The following table lists the available options when promoting a Cloud Connector in GoAnywhere
Command using the promoteCloudConnector command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteCloudConnector -targetServer http://10.1.4.2:8000/goanywhere
-targetUser root -targetPassword goanywhere -cloudConnectorName "Jira Cloud Connector"
-replaceConnector true
Promote Monitor
Promote a Monitor from one GoAnywhere server to another GoAnywhere server.
NOTE:
The Project called by the Monitor must already exist on the target server. Use the Promote
Project command to promote the Project.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/monitors/
[monitorType]/[monitorName]/promote
Body Sample:
{
"updateExistingMonitor":"true",
"targetDomain": "Chicago Campus",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:9000/goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteMonitor>
<targetServer>http://10.1.4.1:9000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
<monitorName>FTP Monitor</monitorName>
<monitorType>ftp</monitorType>
<updateExistingMonitor>true</updateExistingMonitor>
<targetDomain>Chicago Campus</targetDomain>
</web:promoteMonitor>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Monitor.
CLI
The following table lists the available options when promoting a Monitor in GoAnywhere Command
using the promoteMonitor command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteMonitor -targetServer http://10.1.4.2:8000/goanywhere -targetUser
root
-targetPassword goanywhere -monitorName "FTP Monitor" -monitorType ftp
-updateExistingMonitor true
Promote Project
Promote a Project from one GoAnywhere server to another GoAnywhere server.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/projects
Body Sample:
{
"promoteParameters" :
{
"projectName":"XML to Database",
"projectFolder":"/Incoming/Database Tasks",
"domain":"Chicago Campus",
"createTargetFolder":"false",
"replaceProject":"true",
"targetDomain": "New York Campus",
"targetFolder" : "/Incoming/Database Tasks",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:9000/goanywhere"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteProject>
<targetServer>http://10.1.4.1:9000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
<projectName>XML to Database</projectName>
<projectFolder>/Incoming/Database Tasks
</projectFolder>
<targetFolder>/Incoming/Database Tasks
</targetFolder>
<replaceProject>true</replaceProject>
<createTargetFolder>false</createTargetFolder>
<domain>Chicago Campus</domain>
<targetDomain>New York Campus</targetDomain>
</web:promoteProject>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Project.
CLI
The following table lists the available options when promoting a Project in GoAnywhere Command
using the promoteProject command.
EXAMPLE:
This examples replaces an existing Project.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteProject -targetServer http://10.1.4.2:8000/goanywhere -targetUser root
-targetPassword goanywhere -projectName "XML to Database"
-projectFolder "/Incoming/Database Tasks" -targetFolder "/Incoming/Database Tasks"
-replaceProject true
EXAMPLE:
This examples creates a new Project in a new folder.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteProject -targetServer http://10.1.4.2:8000/goanywhere -targetUser root
-targetPassword goanywhere -projectName "XML to Database"
-projectFolder "/Incoming/Database Tasks" -targetFolder "/Incoming/Database Tasks"
-createTargetFolder true
Promote Resource
Promote a Resource from one GoAnywhere server to another GoAnywhere server.
REST
Method & URL
{
"replaceResource":"true",
"targetDomain": "Chicago Campus",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:9000/goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteResource>
<targetServer>http://10.1.4.1:9000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere
</targetPassword>
<resourceName>MySQL</resourceName>
<resourceType>database</resourceType>
<replaceResource>true</replaceResource>
<targetDomain>Chicago Campus
</targetDomain>
</web:promoteResource>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Resource.
l as2 l icap
l as400 l mailbox
l azureblob l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
CLI
The following table lists the available options when promoting a Resource in GoAnywhere
Command using the promoteResource command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteResource -targetServer http://10.1.4.2:8000/goanywhere
-targetUser root -targetPassword goanywhere -resourceName "MySQL"
-resourceType database -replaceResource true
l azureblob l icap
l as2 l mailbox
l as400 l mq
l cc l pgpKeyRing
l database l rest
l ftp l s3
l ftps l smb
l gamft l snmp
l ghttps l smtp
l gofast l soap
l http l ssh
l https l webdav
Promote Schedule
Promote a Schedule from one GoAnywhere server to another GoAnywhere server.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/schedules/
[scheduleName]/promote
Body Sample:
{
"replaceSchedule":"true",
"targetDomain": "Chicago Campus",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:9000/goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteSchedule>
<targetServer>http://10.1.4.1:9000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
<scheduleName>Daily Transfer</scheduleName>
<replaceSchedule>true</replaceSchedule>
<targetDomain>Chicago Campus</targetDomain>
</web:promoteSchedule>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:promoteScheduleResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>'Schedule' named 'Daily Transfer' was promoted successfully</result>
</ns2:promoteScheduleResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when promoting a Schedule.
CLI
The following table lists the available options when promoting a Schedule in GoAnywhere
Command using the promoteSchedule command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteSchedule -targetServer http://10.1.4.2:8000/goanywhere -targetUser
root
-targetPassword goanywhere -scheduleName "Daily Transfer" -replaceSchedule true
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/forms/
[secureFormName]/promote
Body Sample:
{
"replaceSecureForm":"true",
"targetDomain": "Chicago Campus",
"ignoreWebUsers": "true",
"ignoreWebGroups": "true",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:9000/goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteSecureForm>
<targetServer>http://10.1.4.1:9000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
<secureFormName>New Hire Onboarding</secureFormName>
<replaceSecureForm>true</replaceSecureForm>
<targetDomain>default</targetDomain>
<ignoreWebUsers>true</ignoreWebUsers>
<ignoreWebGroups>true</ignoreWebGroups>
</web:promoteSchedule>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Schedule.
CLI
The following table lists the available options when promoting a Schedule in GoAnywhere
Command using the promoteSecureForm command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteSecureForm -targetServer http://10.1.4.2:8000/goanywhere
-targetUser root -targetPassword goanywhere -SecureFormName "Ballot.xml"
-replaceSecureForm true -ignoreWebUsers true -ignoreWebGroups true
Promote Trigger
Promote a Trigger from one GoAnywhere server to another GoAnywhere server.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/triggers/
[eventType]/[triggerName]/promote
Body Sample
{
"replaceTrigger":"true",
"targetDomain": "Chicago Campus",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetServer" : "http://10.1.4.1:8000/goanywhere"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteTrigger>
<triggerName>Daily Transfers</triggerName>
<targetServer>http://10.1.4.1:8000/goanywhere
</targetServer>
<targetUser>root</targetUser>
<targetPassword>goanywhere</targetPassword>
<eventType>login_failed</eventType>
<replaceTrigger>true</replaceTrigger>
<targetDomain>Chicago Campus</targetDomain>
</web:promoteTrigger>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Trigger.
Event Types
l account_disabled l delete_folder_failed
l as2_mdn_receive_failed l delete_folder_successful
l as2_mdn_receive_successful l disconnect
l as2_message_receive_failed l download_failed
l as2_message_receive_successful l download_successful
l before_as2_mdn_send l invitation_failed
l before_godrive_upload l invitation_successful
l before_secure_mail_send l ip_address_blacklisted
l change_password_failed l login_failed
l change_password_successful l login_successful
l checksum_failed l registration_failed
l checksum_successful l registration_successful
l connect l rename_file_failed
l connection_rejected l rename_file_successful
l create_folder_failed l rename_folder_failed
l create_folder_successful l rename_folder_successful
l delete_file_failed l upload_failed
l delete_file_successful l upload_successful
CLI
The following table lists the available options when promoting a Trigger in GoAnywhere Command
using the promoteTrigger command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteTrigger -targetServer http://10.1.4.2:8000/goanywhere -targetUser
root
-targetPassword goanywhere -triggerName "Daily Transfers" -eventType login_failed
-replaceTrigger true
Resume Job
Resume a paused GoAnywhere job using the resumeJob command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/jobs/
[jobId]/resume
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:resumeJob>
<jobId>1347033630762</jobId>
</web:resumeJob>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when resuming a paused Job.
CLI
The following table lists the available options when resuming a paused job in GoAnywhere
Command using the resumeJob command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command resumeJob -jobId 1347033630762
Run Project
Start a GoAnywhere Project using the runProject command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/projects
Body Sample:
{
"runParameters" :
{
"project":"/Data Translation",
"domain":"Chicago Campus",
"jobName" : "Script Transfer",
"jobQueue" : "SFTP",
"mode" : "batch",
"priority" : 10,
"variables" :
[
{
"key" : "CustomerName",
"value" : "example"
},
{
"key" : "CustomerLocation",
"value" : "Chicago"
}
]
}
}
Response Body
If successful, the response body will contain the job number of the executed Project.
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:runProject>
<project>/Data Translation</project>
<mode>batch</mode>
<jobName>Script Transfer</jobName>
<jobQueue>SFTP</jobQueue>
<priority>10</priority>
<variables>
<!--Zero or more repetitions:-->
<variable>
<!--Optional:-->
<variableName>CustomerName
</variableName>
<!--Optional:-->
<variableValue>example
</variableValue>
</variable>
</variables>
<domain>Chicago Campus</domain>
</web:runProject>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when running a Project.
CLI
The following table lists the available options when running a Project in GoAnywhere Command
using the runProject command.
EXAMPLE:
This command runs the Project in interactive mode.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command runProject -project /Test
EXAMPLE:
This command runs the Project in batch mode.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command runProject -project /Test -mode batch -jobQueue SFTP -jobName "Script Transfer"
-priority 10 -variables erroremail control@example.com loglocation /logs/errors/ -domain
"Chicago Campus"
Run Schedule
Execute a Scheduled Job immediately using the runSchedule command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/schedules/
[scheduleName]/run
Response Body
If successful, the response body will contain the job number of the executed Schedule.
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:runSchedule>
<scheduleName>Daily Transfer</scheduleName>
</web:runSchedule>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when running a Project.
CLI
The following table lists the available options when running a Schedule in GoAnywhere Command
using the runSchedule command.
EXAMPLE:
This command runs the Schedule.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command runSchedule -scheduleName Test
Add Contact
Add a contact to GoAnywhere using the addContact command. A contact can be added with as little
information as an email address.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/addressBooks/
[addressBookName]/addContact
Body Sample:
{
"email":"kharris@example.com",
"name" : "Kathy Harris",
"organization" : "Support",
"officePhone" : "4024444242",
"replace" : "yes"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addContact>
<email>kharris@example.com</email>
<name>Kathy Harris</name>
<organization>Support</name>
<officePhone>4024444242</officePhone>
</web:addContact>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a contact.
CLI
The following table lists the available options when adding a contact in GoAnywhere Command
using the addContact command. A contact can be added with as little information as an email
address. The following table lists the available options when adding a contact.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addcontact -addressbook Support -email kharris@example.com
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/sshkeys/
Body Sample:
{
"keyName": "sshkey123",
"keyType" : "private",
"keyPassword" : "password01",
"storeKeyPassword" : "False",
"domain" : "Chicago Campus",
"keyVault" : "IT",
"file" : "Z29hbnl3aGVyZQ=="
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addSSHKey>
<keyName>sshkey123</keyName>
<keyType>private</keyType>
<keyPassword>password01</keyPassword>
<storeKeyPassword>False</storeKeyPassword>
<domain>Chicago Campus</domain>
<keyVault>IT</keyVault>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
</web:addSSHKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a SSH key.
CLI
The following table lists the available options when adding a SSH key in GoAnywhere Command
using the addSSHKey command. To associate public SSH keys to a Web User, log in as a User with
Key Manager role.
EXAMPLE:
The following command will add a public SSH key.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addsshkey -keyname sshkey123 -keytype public -inputFile c:\file.pub
EXAMPLE:
The following command will add a private SSH key to a Key Vault.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addsshkey -keyname sshkey123 -keytype private -inputFile c:\file.pvk
-keyPassword keyp -keyVault "Trading Partner"
EXAMPLE:
The following command will associate an SSH key to a specified Web User.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addsshkey -keyname sshkey123 -username jsmith
EXAMPLE:
The following command will add a public SSH key and associate it to a specified Web User.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addsshkey -keyname sshkey123 -inputFile c:\file.pub -username jsmith
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/sshkeys/[keyName]
Body Sample:
{
"action" : "add",
"keyVault" : "IT"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addSSHKey>
<keyName>sshKey123</keyName>
<userName>jsmith</userName>
</web:addSSHKey>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a SSH key.
CLI
The following table lists the available options when adding an SSH key in GoAnywhere Command
using the add SSH Key association command. To associate public SSH keys to a Web User, log in as
a User with Web User Manager role.
EXAMPLE:
The following command will associate an SSH key to a specified Web User. gacmd.exe -server
http://10.1.4.1:8000/goanywhere -user root -password goanywhere -command addsshkey -
keyname sshkey123 -username jsmith
EXAMPLE:
The following command will add a public SSH key and associate it to a specified Web User.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere -
command addsshkey -keyname sshkey123 -inputFile c:\file.pub -username jsmith
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfiles
Body Sample:
{
"action" : "add",
"virtualPath" : "/Inbound/Invoices/Qtr1.csv",
"physicalPath" : "${homeDirectory}/Inbound/Invoices/Qtr1.csv",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addVirtualFile>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices/Qtr1.csv
</virtualPath>
<physicalPath>${homeDirectory}/Inbound
/Invoices/Qtr1.csv</physicalPath>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:addVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a virtual file.
n download
n overwrite
n append
n checksum
n share
CLI
The following table lists the available options for adding a virtual file in GoAnywhere Command
using the addVirtualFile command.
To add a virtual file to a Web User profile, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will add a virtual file using a relative path with permissions to a Web
User:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addVirtualFile -userName kharris -virtualPath "/Inbound/Invoices/Qtr1.csv"
-physicalPath "${homeDirectory}/Inbound/Invoices/Qtr1.csv" -permissions download
overwrite
n download
n overwrite
n append
n checksum
n share
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfiles
Body Sample:
{
"action" : "add",
"virtualPath" : "/Inbound/Invoices/Qtr1.csv",
"physicalPath" : "${homeDirectory}/Inbound/Invoices/Qtr1.csv",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addVirtualFile>
<groupName>Trading Partners</groupName>
<virtualPath>/Inbound/Invoices/Qtr1.csv
</virtualPath>
<physicalPath>${homeDirectory}/Inbound
/Invoices/Qtr1.csv</physicalPath>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:addVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a virtual file.
n download
n overwrite
n append
n checksum
n share
CLI
The following table lists the available options for adding a virtual file in GoANywhere Command
using the addVirtualFile command.
To add a virtual file to a Web User profile, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will add a virtual file using a relative path with permissions to a Web
User Group:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addVirtualFile -groupName HTTPSUsers -virtualPath
"/Inbound/Invoices/Qtr1.csv"
-physicalPath "${homeDirectory}/Inbound/Invoices/Qtr1.csv" -permissions download
overwrite
n download
n overwrite
n append
n checksum
n share
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfolders
Body Sample:
{
"action" : "add",
"virtualPath" : "/Inbound/Invoices",
"physicalPath" : "${homeDirectory}/Inbound/
Invoices",
"diskQuota" : "10MB",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addVirtualFolder>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices
</virtualPath>
<physicalPath>${homeDirectory}/Inbound
/Invoices</physicalPath>
<diskQuota>10MB</diskQuote>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:addVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a virtual folder.
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
CLI
Add a virtual folder to a Web User profile using the addVirtualFolder command.
To add a virtual folder to a Web User profile or Web User Group, authenticate as an Admin User
with the Web User Manager role.
EXAMPLE:
The following command will add a virtual folder using a relative path with permissions to a
Web User:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addVirtualFolder -username kharris -virtualPath "/Inbound/Invoices"
-physicalPath "${homeDirectory}/Inbound/Invoices" -diskQuota 10MB -permissions
download overwrite
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfolders
Body Sample:
{
"action" : "add",
"virtualPath" : "/Inbound/Invoices",
"physicalPath" :
"${homeDirectory}/Inbound/Invoices",
"diskQuota" : "10MB",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addVirtualFolder>
<groupName>Trading Partners</groupName>
<virtualPath>/Inbound/Invoices
</virtualPath>
<physicalPath>${homeDirectory}/Inbound
/Invoices</physicalPath>
<diskQuota>10MB</diskQuota>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:addVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a virtual folder.
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
CLI
The following table lists the available options for adding a virtual folder in GoAnywhere Command
using the addVirtualFolder command.
To add a virtual folder to a Web User Group, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will add a virtual folder using a relative path with permissions to a Web
User Group:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addVirtualFolder -groupName HTTPSUsers -virtualPath "/Inbound/Invoices"
-physicalPath "${homeDirectory}/Inbound/Invoices" -diskQuota 100MB -permissions
download overwrite
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers
Body Sample:
{
"addParameters" :
{
"userName":"jsmith",
"template" : "Trading Partners",
"firstName" : "John",
"lastName" : "Smith",
"email" : "jsmith@example.com"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addWebUser>
<template>Trading Partners</template>
<userName>jsmith</userName>
<firstName>John</firstName>
<lastName>Smith</lastName>
<email>jsmith@example.com</email>
</web:addWebUser>
</soapenv:Body>
</soapenv:Envelope>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body><ns2:addWebUserResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>Web user 'jsmith' was added successfully.</result>
</ns2:addWebUserResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when adding a Web User.
CLI
The following table lists the available options when adding a Web User in GoAnywhere Command
using the addWebUser command. A Web User can be added with as little information as a Web
User Template and a user name.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addwebuser -webusertemplate "Web User Template" -username jsmith
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/ip
Body Sample:
{
{
"action":"add",
"ipAddress" : "10.1.2.77"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addWebUserIP>
<userName>jsmith</userName>
<ipAddress>10.1.2.77</ipAddress>
</web:addWebUserIP>
</soapenv:Body>
</soapenv:Envelope>
CLI
The following table lists the available options when adding IP filter entries for a Web User in
GoAnywhere Command using the addWebUserIP command. The filter type to indicate if this IP
entry should be whitelisted or blacklisted is determined on the Web User account.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addWebUserIP -userName kharris -ipAddress 10.1.2.77
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/groups
Body Sample:
{
"action" : "add",
"groupName" : "Trading Partners",
"createVirtualFolders" : "true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:addWebUserToGroup>
<userName>kharris</userName>
<groupName>Trading Partners</groupName>
<createVirtualFolders>true</createVirtualFolders>
</web:addWebUserToGroup>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when adding a Web User to a Web User Group:
CLI
The following table lists the available options when adding a Web User to a Web User Group in
GoAnywhere Command using the addWebUserToGroup command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command addWebUserToGroup -userName jsmith -groupName "Trading Partners"
-createVirtualFolders true
Delete Contact
Delete a contact to GoAnywhere using the deleteContact command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/addressBooks/
[addressBookName]/deleteContact
Body Sample:
{
"currentEmail":"kharris@example.com",
"noFail":"true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteContact>
<currentEmail>kharris@example.com</currentEmail>
<noFail>true</noFail>
</web:deleteContact>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a contact.
CLI
The following table lists the available options when deleting a contact in GoAnywhere Command
using the deleteContact command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deletecontact -addressbook Support -currentemail kharris@example.com
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteWebUser>
<userName>jsmith</userName>
</web:deleteWebUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when deleting a Web User.
CLI
The following table lists the available options when deleting a Web User in GoAnywhere Command
using the deleteWebUser command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deletewebuser -username jsmith
REST
Method & URL
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:deleteWebUserGroup>
<groupName>Trading Partners</groupName>
</web:deleteWebUserGroup>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:deleteWebUserGroupResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>Web User Group 'Trading Partners' deleted successfully.</result>
</ns2:deleteWebUserGroupResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when deleting a Web User Group.
CLI
The following table lists the available options when deleting a Web User Group in GoAnywhere
Command using the deleteWebUserGroup command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command deleteWebUserGroup -groupName "Security Group"
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]
<webUsers class="com.linoma.dpa.commandcenter.codec.WebUserVOListCodec">
<webUser>
<secureMailPermissions>1</secureMailPermissions>
<goDriveDiskQuotaOption>B</goDriveDiskQuotaOption>
<secureFormPermission>true</secureFormPermission>
<secureFolderPermission>true</secureFolderPermission>
<viewActivityPermission>false</viewActivityPermission>
<goDriveDiskSpaceUnit>G</goDriveDiskSpaceUnit>
<passwordExpirationInterval>-1</passwordExpirationInterval>
<lastLoginDate>1496325688000</lastLoginDate>
<gftpesAuthType>P</gftpesAuthType>
<as2SignatureAlias></as2SignatureAlias>
<gsftpAuthType>P</gsftpAuthType>
<ipFilterEnabled>false</ipFilterEnabled>
<loginAttempts>0</loginAttempts>
<createdOn>1494515644000</createdOn>
<loginMethod>0</loginMethod>
<createdBy>root</createdBy>
<limitTime>0</limitTime>
<as2WhenFileExist>-1</as2WhenFileExist>
<gas2AuthType>P</gas2AuthType>
<ipFilterType>A</ipFilterType>
<ghttpsAuthType>P</ghttpsAuthType>
<limitDays>0</limitDays>
<as2RequireSignature></as2RequireSignature>
<limitDaysOfWeek>0</limitDaysOfWeek>
<as2Id></as2Id>
<goFastAuthType>P</goFastAuthType>
<inactiveDays>-1</inactiveDays>
<approved>true</approved>
<gftpsAuthType>P</gftpsAuthType>
<modifiedBy>root</modifiedBy>
<servicePermissions>11</servicePermissions>
<modifiedOn>1502216397000</modifiedOn>
<goDrivePermission>false</goDrivePermission>
<goDriveAccess>F</goDriveAccess>
<goDriveDiskSpace>5</goDriveDiskSpace>
<pastExpiration>false</pastExpiration>
<maxSessions>-1</maxSessions>
<inviteUserPermission>false</inviteUserPermission>
<passwordHashAlgorithm>5</passwordHashAlgorithm>
<ghttpsTwoFactorAuthTypeCode></ghttpsTwoFactorAuthTypeCode>
<password>7tE6npb...</password>
<forcePasswordChange>false</forcePasswordChange>
<name>kharris</name>
<domain>Default</domain>
<loginMethodName>GoAnywhere</loginMethodName>
<firstName>Kathy</firstName>
<lastName>Harris</lastName>
<email>kharris@example.com</email>
<phone></phone>
<organization></organization>
<as2MdnApprovalAutomatic></as2MdnApprovalAutomatic>
<as2RequireEncryption></as2RequireEncryption>
<as2RequireAuthentication></as2RequireAuthentication>
<changePasswordPermission>false</changePasswordPermission>
<description></description>
<passwordIsEncrypted>true</passwordIsEncrypted>
<enabled>true</enabled>
<webGroups />
<ipFilterEntries />
<virtualFile>
<applyToSubfolders>true</applyToSubfolders>
<folderPermissions>8191</folderPermissions>
<filePermissions>0</filePermissions>
<diskQuotaOption>B</diskQuotaOption>
<diskQuotaUnit>M</diskQuotaUnit>
<diskQuotaSize>100</diskQuotaSize>
<type>D</type>
<description>This is the login directory</description>
<virtualFiles>
<virtualFile>
<applyToSubfolders>false</applyToSubfolders>
<folderPermissions>0</folderPermissions>
<alias>ExportResource.txt</alias>
<filePermissions>3</filePermissions>
<diskQuotaOption>B</diskQuotaOption>
<diskQuotaUnit>M</diskQuotaUnit>
<diskQuotaSize>0</diskQuotaSize>
<type>F</type>
<path>${homeDirectory}/ExportResource.txt</path>
</virtualFile>
</virtualFiles>
<secureForms>
<secureForm>
<name>New Hire Onboarding</name>
</secureForm>
</secureForms>
</webUser>
</webUsers>
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportWebUser>
<userName>kharris</userName>
</web:exportWebUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Web User.
CLI
The following table lists the available options when exporting a Web User in GoAnywhere
Command using the Export Web User command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportWebUser -userName "kharris" -webUserOutputFile
"C:\webUsers\kharris.xml"
REST
Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:exportWebUserGroup>
<groupName>Trading Partners</groupName>
</web:exportWebUserGroup>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when exporting a Web User Group.
CLI
The following table lists the available options when exporting a Web User Group in GoAnywhere
Command using the exportWebUserGroup command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command exportWebUserGroup -groupName "Trading Partners"
-webUserGroupOutputFile "C:\webUserGroups\TradingPartners.xml"
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers
Body Sample:
{
"importParameters" :
{
"file":"Z29hbnl3aGVyZQ==",
"domain" : "Chicago Campus"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importWebUser>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<domain>Chicago Campus</domain>
</web:importWebUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when importing a Web User.
CLI
The following table lists the available options when importing a Web User in GoAnywhere
Command using the importWebUser command. Prior to importing the Web User(s) from a file, you
must export the Web User(s) from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importWebUser -file "C:\temp\WebUsers.xml"
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups
Body Sample:
{
"file":"Z29hbnl3aGVyZQ==",
"domain" : "Chicago Campus",
"ignoreWebUsers" : "true",
"ignoreSecureForms" : "true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:importWebUserGroup>
<inputFile>Z29hbnl3aGVyZQ==</inputFile>
<ignoreWebUsers>true</ignoreWebUsers>
<ignoreSecureForms>true</ignoreSecureForms>
<domain>Chicago Campus</domain>
</web:importWebUserGroup>
</soapenv:Body>
</soapenv:Envelope>
</ns2:importWebUserGroupResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when importing a Web User Group.
CLI
The following table lists the available options when importing a Web User Group in GoAnywhere
Command using the importWebUserGroup command. Prior to importing the Web User Group from
a file, you must export the Web User Group from the source GoAnywhere server.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command importWebUserGroup -file "C:\Archive\TradingPartners.XML" -ignoreWebUsers
true
-ignoreSecureForms true
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/promote
Body Sample:
{
"targetServer" : "http://10.1.5.1:9000/goanywhere",
"targetUser" : "kharris",
"targetPassword" : "goanywhere",
"targetDomain": "Chicago Campus"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:promoteWebUser>
<targetServer>http://10.1.5.1:9000/
goanywhere</targetServer>
<targetUser>kharris</targetUser>
<targetpassword>goanywhere</targetpassword>
<userName>goanywhere</userName>
<targetDomain>Trading Partners</targetDomain>
</web:promoteWebUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when promoting a Web User.
CLI
The following table lists the available options when promoting a Web User in GoAnywhere
Command using the promoteWebUser command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command promoteWebUser -targetServer http://10.1.5.2:8000/goanywhere -targetUser
root
-targetPassword goanywhere -username "kharris"
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/promote
Body Sample:
{
"targetServer" : "http://10.1.3.1:9000/goanywhere",
"targetUser" : "root",
"targetPassword" : "goanywhere",
"targetDomain": "Chicago Campus",
"ignoreWebUsers" : "true",
"ignoreSecureForms" : "true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Header/>
<soapenv:Body>
<web:promoteWebUserGroup>
<targetServer>http://10.1.3.1:9000/
goanywhere</targetServer>
<targetUser>root</targetUser>
<targetpassword>goanywhere</targetpassword>
<groupName>Trading Partners</groupName>
<ignoreWebUsers>true</ignoreWebUsers>
<ignoreSecureForms>true</ignoreSecureForms>
<targetDomain>Chicago Campus</targetDomain>
</web:promoteWebUserGroup>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:promoteWebUserGroupResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>'Web User Group' named 'Trading Partners' was promoted successfully</result>
</ns2:promoteWebUserGroupResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when promoting a Web User Group.
CLI
The following table lists the available options when promoting a Web User Group in GoAnywhere
Command using the promoteWebUserGroup command.
EXAMPLE:
gacmd.exe -server http://10.1.3.1:8000/goanywhere -user root -password goanywhere
-command promoteWebUserGroup -targetServer http://10.1.5.2:8000/goanywhere
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/sshkeys/
[keyType]/[keyName]
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/sshkeys/
[keyType]/[keyName]
{
"domain" : "Chicago Campus",
"keyVault" : "IT"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeSSHKey>
<keyName>sshkey123</keyName>
<keyType>private</keyType>
<domain>Chicago Campus</domain>
<keyVault>IT</keyVault>
</web:removeSSHKey>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:removeSSHKeyResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>SSH public key 'SFTP' was successfully removed.</result>
</ns2:removeSSHKeyResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when removing an SSH key from GoAnywhere.
CLI
The following table lists the available options when removing an SSH key from GoAnywhere in
GoAnywhere Command using the removeSSHKey command. To remove public and private SSH
keys, log in as a User with the Key Manager role.
EXAMPLE:
The following command removes the public and private versions of a specified SSH key. The
public and private keys well be removed from all associated Web Users.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removesshkey -keyname sshkey123
EXAMPLE:
The following command removes a public SSH key. The public key will be removed from all
associated Web Users.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removesshkey -keyname sshkey123 -keytype public
EXAMPLE:
The following command removes a private SSH key from a Key Vault.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removesshkey -keyname sshkey123 -keytype private -keyVault "Trading Partner"
REST
Method & URL
DELETE http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/sshkeys/[keyName]
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/sshkeys/[keyName]
{
"action" : "delete",
"keyVault" : "IT"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeSSHKey>
<keyName>sshkey123</keyName>
<userName>jsmith</userName>
</web:removeSSHKey>
</soapenv:Body>
</soapenv:Envelope>
<ns2:removeSSHKeyResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>SSH public key 'sshkey123' was successfully unassociated with web user
'kharris'.</result>
</ns2:removeSSHKeyResponse>
</S:Body>
</S:Envelope>
The following table lists the available options when removing an SSH key.
CLI
The following table lists the available options when removing an SSH key association in
GoAnywhere Command using the removeSSHKey command. To remove a public SSH key
association from a Web User, log in as a User with Web User Manager role.
EXAMPLE:
The following command will remove a public SSH key association from a specified Web User.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removesshkey -keyname sshkey123 -username jsmith
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfiles
Body Sample:
{
"action" : "remove",
"virtualPath" : "/Inbound/Invoices/Qtr1.csv"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeVirtualFile>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices/Qtr1.csv
</virtualPath>
</web:removeVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
</ns2:removeVirtualFileResponse>
</S:Body>
</S:Envelope>
The following table lists the available options for removing a virtual file.
CLI
The following table lists the available options for removing a virtual file in GoAnywhere Command
using the removeVirtualFile command.
To remove a virtual file from a Web User profile, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will remove a virtual file from a Web User:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeVirtualFile -username kharris -virtualPath "/Inbound/Invoices/Qtr1.csv"
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfiles
Body Sample:
{
"action" : "remove",
"virtualPath" : "/Inbound/Invoices/Qtr1.csv"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeVirtualFile>
<groupName>Trading Partners</groupName>
<virtualPath>/Inbound/Invoices/Qtr1.csv
</virtualPath>
</web:removeVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
<S:Body>
<ns2:removeVirtualFileResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>Virtual file 'Qtr1.csv' successfully removed from web user group 'Trading
Partners'.</result>
</ns2:removeVirtualFileResponse>
</S:Body>
</S:Envelope>
The following table lists the available options for removing a virtual file.
CLI
The following table lists the available options for removing a virtual file in GoAnywhere Command
using the removeVirtualFile command.
To remove a virtual file from a Web User Group, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will remove a virtual file from a Web User Group:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeVirtualFile -groupName HTTPSUsers -virtualPath
"/Inbound/Invoices/Qtr1.csv"
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfolders
Body Sample:
{
"action" : "remove",
"virtualPath" : "/Inbound/Invoices"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeVirtualFolder>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices
</virtualPath>
</web:removeVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for removing a virtual folder.
CLI
The following table lists the available options for removing a virtual folder in GoAnywhere
Command using the removeVirtualFolder command.
To remove a virtual folder from a Web User profile, log in as a User with the Web User Manager
role.
EXAMPLE:
The following command will remove a virtual folder from a Web User:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeVirtualFolder -username kharris -virtualPath "/Inbound/Invoices"
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfolders
Body Sample:
{
"action" : "remove",
"virtualPath" : "/Inbound/Invoices"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeVirtualFolder>
<groupName>Trading Partners</groupName>
<virtualPath>/Inbound/Invoices</virtualPath>
</web:removeVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
<ns2:removeVirtualFolderResponse xmlns:ns2="http://webservice.goanywhere.com/">
<result>Virtual folder 'Invoices' successfully removed from web user group 'Trading
Partners'. </result>
</ns2:removeVirtualFolderResponse>
</S:Body>
</S:Envelope>
The following table lists the available options for removing a virtual folder.
CLI
The following table lists the available options for removing a virtual folder in GoAnywhere
Command using the removeVirtualFolder command.
To remove a virtual folder from a Web User Group, log in as a User with the Web User Manager
role.
EXAMPLE:
The following command will remove a virtual folder from a Web User Group:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeVirtualFolder -groupName HTTPSUsers -virtualPath "/Inbound/Invoices"
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/groups
Body Sample:
{
"action" : "remove",
"groupName" : "Trading Partners"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeWebUserFromGroup>
<userName>kharris</userName>
<groupName>Trading Partners</groupName>
</web:removeWebUserFromGroup>
</soapenv:Body>
</soapenv:Envelope>
</S:Envelope>
The following table lists the available options when removing a Web User from a Web User Group.
CLI
The following table lists the available options when removing a Web User from a Web User Group
in GoAnywhere Command using the removeWebUserFromGroup command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeWebUserFromGroup -userName jsmith -groupName "Trading Partners"
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/ip
Body Sample:
{
{
"action":"remove",
"ipAddress" : "10.1.2.77"
}
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:removeWebUserIP>
<userName>jsmith</userName>
<ipAddress>10.1.2.77</ipAddress>
</web:removeWebUserIP>
</soapenv:Body>
</soapenv:Envelope>
CLI
The following table lists the available options when removing IP filter entries for a Web User in
GoAnywhere Command using the removeWebUserIP command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command removeWebUserIP -userName kharris -ipAddress 10.1.2.77
NOTE:
The resetWebUserPassword command can only be used when the Web User's Login Method is
GoAnywhere. No other Login Methods are supported.
Response Body
REST
Method & URL
POST http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/resetpassword
Body Sample:
{
"generatePassword":"false",
"userPassword" : "a2w4f6l09",
"forcePasswordChange" : "true",
"displayPassword" : "false",
"emailPassword" : "true"
}
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:resetWebUserPassword>
<userName>kharris</userName>
<generatePassword>false</generatePassword>
<userPassword>a2w4f6l09</userPassword>
<forcePasswordChange>true
</forcePasswordChange>
<displayPassword>false</displayPassword>
<emailPassword>true</emailPassword>
</web:resetWebUserPassword>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for resetting a Web User’s password.
CLI
The following table lists the available options for resetting a Web User’s password in GoAnywhere
Command using the resetWebUserPassword command.
To manage Web User passwords, log in as a User with the Web User Manager role.
NOTE:
The resetWebUserPassword command can only be used when the Web User's Login Method is
GoAnywhere. No other Login Methods are supported.
EXAMPLE:
The following command will reset a Web User password with a password generated by
GoAnywhere.
EXAMPLE:
The following command will reset a Web User password with the password 'xyz' supplied from
within the command.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command resetwebuserpassword -username jsmith -userpassword xyz -displaypassword true
-emailpassword true
Update Contact
Update a contact to GoAnywhere using the updateContact command.
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/addressBooks/
[addressBookName]/updateContact
Body Sample:
{
"currentEmail":"kharris@example.com",
"newEmail":"kharris@support.com"
"newName" : "Kathy Harris",
"newOrganization" : "Support",
"newOfficePhone" : "4024444242",
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateContact>
<currentEmail>kharris@example.com</currentEmail>
<newEmail>kharris@support.com</newEmail>
<newName>Kathy Harris</newName>
<newOrganization>Support</newOrganization>
<newOfficePhone>4024444242</newOfficePhone>
</web:updateContact>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options when updating a contact.
CLI
The following table lists the available options when updating a contact in GoAnywhere Command
using the updateContact command.
EXAMPLE:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command updatecontact -addressbook Support -currentemail kharris@example.com -
neworganization Support
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfiles
Body Sample:
{
"virtualPath" : "/Inbound/Invoices/Qtr1.csv",
"physicalPath" : "${homeDirectory}/Inbound/Qtr1.csv",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateVirtualFile>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices/Qtr1.csv
</virtualPath>
<physicalPath>${homeDirectory}/Inbound
/Qtr1.csv</physicalPath>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:updateVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for updating a virtual file.
n download
n overwrite
n append
n checksum
n share
CLI
The following table lists the available options for updating a virtual file in GoAnywhere Command
using the updateVirtualFile command.
To update a virtual file in a Web User profile, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will update the permissions on a virtual file in a Web User's profile:
n download
n overwrite
n append
n checksum
n share
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfiles
Body Sample:
{
"virtualPath" : "/Inbound/Invoices/Qtr1.csv",
"physicalPath" : "${homeDirectory}/
Inbound/Qtr1.csv",
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateVirtualFile>
<groupName>Trading Partners</groupName>
<virtualPath>/Inbound/Invoices/
Qtr1.csv</virtualPath>
<physicalPath>${homeDirectory}/Inbound/
Qtr1.csv</physicalPath>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:updateVirtualFile>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for updating a virtual file.
n download
n overwrite
n append
n checksum
n share
CLI
The following table lists the available options for updating a virtual file in GoAnywhere Command
using the updateVirtualFile command.
To update a virtual file in a Web User Group, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will update the permissions on a virtual file in a Web User Group:
n download
n overwrite
n append
n checksum
n share
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]/virtualfolders
Body Sample:
{
"virtualPath" : "/Inbound/Invoices",
"physicalPath" : "${homeDirectory}/Inbound",
"diskQuota" : "10MB"
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateVirtualFolder>
<userName>kharris</userName>
<virtualPath>/Inbound/Invoices
</virtualPath>
<physicalPath>${homeDirectory}
/Inbound</physicalPath>
<diskQuota>10MB</diskQuota>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:updateVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for updating a virtual folder.
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
CLI
The following table lists the available options for updating a virtual folder in GoAnywhere
Command using the updateVirtualFolder command. To update a virtual folder in a Web User
profile, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will update the permissions of a virtual folder in a Web User's profile:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command updateVirtualFolder -username kharris -virtualPath "/Inbound/Invoices"
-permissions list download
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webgroups/
[groupName]/virtualfolders
Body Sample:
{
"virtualPath" : "/Inbound/Invoices",
"physicalPath" : "${homeDirectory}/Inbound",
"diskQuota" : "10MB"
"permissions" : ["download","overwrite"]
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateVirtualFolder>
<groupName>Administrators</groupName>
<virtualPath>/Inbound
/Invoices</virtualPath>
<physicalPath>${homeDirectory}
/Inbound</physicalPath>
<diskQuota>10MB</diskQuota>
<permissions>
<!--Zero or more repetitions:-->
<permission>download</permission>
<permission>overwrite</permission>
</permissions>
</web:updateVirtualFolder>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for updating a virtual folder.
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
CLI
The following table lists the available options for updating a virtual folder in GoAnywhere
Command using the updateVirtualFolder command.
EXAMPLE:
The following command will update the permissions of a virtual folder in a Web User Group:
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command updateVirtualFolder -groupName HTTPSUsers -virtualPath "/Inbound/Invoices"
-permissions list download
n list
n download
n upload
n overwrite
n renameFiles
n deleteFiles
n checksum
n share
n createSubfolders
n renameSubfolders
n deleteSubfolders
n shareSubfolders
n applyToSubfolders
n append
*You must specify either a userName or groupName parameter with this command.
REST
Method & URL
PUT http://[server URL]:[port]/goanywhere/rest/gacmd/v1/webusers/
[userName]
Body Sample:
{
"firstName" : "Kathy",
"lastName" : "Harris",
"email" : "kharris@example.com",
"phoneNumber" : "4029444242",
"description" : "Web User",
"servicePermissions" : ['ftp','sftp'],
"enabled" : "true"
}
Response Body
SOAP
Envelope Sample
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://webservice.goanywhere.com/">
<soapenv:Header/>
<soapenv:Body>
<web:updateWebUser>
<userName>kharris</userName>
<firstName>Kathy</firstName>
<lastName>Harris</lastName>
<email>kharris@example.com</email>
<description>Web User</description>
<organization>IT</organization>
<phone>4029444242</phone>
<servicePermissions>
<!--Zero or more repetitions:-->
<servicePermission>gofast</servicePermission>
<servicePermission>as2</servicePermission>
</servicePermissions>
<enabled>true</enabled>
</web:updateWebUser>
</soapenv:Body>
</soapenv:Envelope>
The following table lists the available options for updating a Web User.
CLI
The updateWebUser command allows you to edit Web User profile information. Web User
accounts can also be enabled or disabled using this command. Only values specified will be updated.
The following table lists the available options for updating a Web User in GoAnywhere Command.
To update Web User profiles, log in as a User with the Web User Manager role.
EXAMPLE:
The following command will enable a Web User.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command updateWebUser -username jsmith -enabled true
EXAMPLE:
The following command updates Web User profile information.
gacmd.exe -server http://10.1.4.1:8000/goanywhere -user root -password goanywhere
-command updateWebUser -username jsmith -firstName John -lastName Smith -organization
"acme inc" -phoneNumber "402-555-0011" -servicePermissions AS2 FTP FTPS GoFast
HTTPS
Active Jobs
Returns details for the active Jobs in the queue.
To retrieve active job details, authenticate as an Admin User with the Job Manager or Project
Executor role.
REST Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/activity/jobs/active
JSON Output Sample:
{
"data":
[
{
"jobNumber": 10000000000110,
"startTime" : "03-21-17 03:03:11 PM",
"project" : "Daily Transfer"
}
]
}
The following table lists the available query parameters when getting Active Sessions.
{
"data:"
[
{
"service": "https",
"userName": "kharris",
"remoteAddress": "0:0:0:0:0:0:0:1",
"gateway": true,
"localAddress": "0:0:0:0:0:0:0:1",
"localPort": 443,
"bytesSent": 0,
"bytesReceived": 0
}
]
}
The following table lists the available query parameters when getting sessions summary details.
l 1 - HTTPS
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - AS2
l 32 - GoFast
l 64 - Agent
l 128 - Admin
{
"data:"
[
{
"sessionCount": "1",
"serviceName": "HTTPS"
}
]
}
Cluster Information
Returns the status of all nodes in a cluster.
To retrieve cluster details, authenticate as an Admin User with the Product Administrator role.
REST Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/system/cluster
{
"data":
[
{
"name":"prod_01",
"role" : "Participant",
"address" : "10.1.2.43",
"port" : "8006",
"status" : "Active",
"statusLastUpdated" : "04-19-2012 02:47:50 PM"
}
]
}
l Active
l Inactive
The following table lists the available query parameters when getting the Completed Jobs
Summary.
l 2 - success
l 4 - failed
l 8 - canceled
{
"data" :
[
{
"label":"0",
"count" : 50
}
]
}
To retrieve expiring OpenPGP key details, authenticate as an Admin User with the Key Manager
role.
REST Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/system/pgpkeys/expiring
The following table lists the available query parameters when getting Expiring OpenPGP keys.
l 1 - today
l 2 - tomorrow
l 7 - next 7 days
l 30 - next 30 days (default value)
l 90 - next 90 days
l 180 - next 180 days
l 365 - next 365 days
{
"data" :
[
{
"keyID":"3121459703709493829",
"userName" : "File Encryption
\u003ckharris@example.com\u003e",
"expiresOn" : "06-01-2017 11:59:58 PM"
}
]
}
To retrieve expiring SSL Certificate details, authenticate as an Admin User with the Key Manager
role.
REST Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/system/certificates/expiring
The following table lists the available query parameters when getting expiring SSL Certificates.
l 1 - today
l 2 - tomorrow
l 7 - next 7 days
l 30 - next 30 days (default value)
l 90 - next 90 days
l 180 - next 180 days
l 365 - next 365 days
{
"data" :
[
{
"alias":"secure file transfer",
"subject" : "www.example.com",
"expiresOn" : "06-01-2017 11:59:58 PM"
}
]
}
The following table lists the available query parameters when getting File Transfer statistics.
l 1 - AS2
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - GoFast
l 32 - GoDrive
l 64 - Projects
l 128 - Secure Folders
l 256 - Secure Forms
l 512 - Triggers
l 1024 - Secure Mail
date_range The scope of the statistics based on date and time. No Today
Valid values are:
l 1 - today
l 2 - yesterday
l 7 - last 7 days
l 30 - last 30 days
l 90 - last 90 days
l 180 - last 180 days
l 365 - last 365 days
{
"data" :
[
{
"label":"0",
"count" : 100
}
]
}
Gateway Information
Returns information about GoAnywhere Gateway.
To retrieve Gateway details, authenticate as an Admin User with the Product Administrator role.
REST Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/system/gateway
{
"data:"
[
{
"enabled": "true",
"address" : "10.1.2.43",
"status": "CONNECTED",
"activeProxies": 4
}
]
}
l CONNECTING
l CONNECTED
l DISCONNECTING
l DISCONNECTED
l RETRYING
Job Statistics
Returns the number of active, completed, failed, or canceled jobs for the specified date range.
To retrieve Job Statistic details, authenticate as an Admin User with the Auditor, Job Manager, or
Project Executor role.
REST Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/activity/jobs/statistics
The following table lists the available query parameters when getting Job Statistics.
{
"data:"
[
{
"activeCount": 400,
"successfulCount": 1000000,
"failedCount": 0,
"canceledCount": 15
}
]
}
The following table lists the available query parameters when getting Recent Blacklisted
IP Addresses.
l 1 - today
l 2 - yesterday
l 7 - last 7 days (default value)
l 30 - last 30 days
max_rows The number of records that will be returned. No 5
{
"data:"
[
{
"remoteAddress": "10.1.1.205",
"reason": "Brute-force",
"date": "02-28-17 08:40:10 AM"
}
]
}
The following table lists the available query parameters when getting recently completed Jobs.
l 2 - success
l 4 - failed
l 8 - canceled
max_rows The number of records that will be No 5
returned.
{
"data:"
[
{
"jobNumber": "100000000016",
"status": "S",
"project": "Call Agent Project",
"userName": "root",
"endTime": "3/28/17 4:02:00 PM"
}
]
}
The following table lists the available query parameters when getting recent file activity.
l 2 - success
l 4 - failed
l 8 - warning
l 1 - AS2
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - GoFast
l 32 - GoDrive
l 64 - Projects
l 128 - Secure Folders
l 256 - Secure Forms
l 512 - Triggers
l 1024 - Secure Mail
max_rows The number of records that will be returned. No 5
{
"data:"
[
{
"filePath": "W:\\gamft\\userdata\\packages\\2017-04-12
\\3f8a0d00-63ca-4a57-b272-dcb1283b8539\\image001.png",
"status": "Successful",
"activity": "Download Attachment",
"moduleName": "Secure Mail",
"userName": "kharris",
}
]
}
l Warning
l Failed
l Successful
The following table lists the available query parameters when getting recent Secure Mail activity.
{
"data:"
[
{
"userName": "kharris",
"date": "04-12-2017 01:50:08 PM",
"toAddress": "tim@example.com",
"ccAddress": "mhatfield@example.com",
"bccAddress": "kathy.harris@goanywhere.com",
"status": "Active"
}
]
}
Recent Triggers
Returns recent Trigger activity and the status of the Trigger event.
To retrieve recent Trigger details, authenticate as an Admin User with the Auditor or Trigger
Manager role.
The following table lists the available query parameters when getting Recent Triggers.
l 1 - active
l 2 - success
l 4 - failed
max_rows The number of records that will be No 5
returned.
{
"data:"
[
{
"name": "File Upload Trigger",
"date": "04-19-2017 02:50:15 PM",
"event": "Upload Successful",
"status": "S"
}
]
}
l A - Active
l S - Successful
l F - Failed
The following table lists the available query parameters when getting recent Web User activity.
l 2 - success
l 4 - failed
l 8 - warning
module Specify the GoAnywhere modules that will be No All
included in the Web User statistics. Valid values
are:
l 1 - AS2
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - GoFast
l 32 - GoDrive
l 128 - Secure Folders
l 256 - Secure Forms
l 1024 - Secure Mail
max_rows The number of records that will be returned. No 5
{
"data:"
[
{
"userName": "kharris",
"date": "04-19-2017 02:50:15 PM",
"activity": "Upload",
"module": "Secure Folders",
"status": "Successful"
}
]
}
l Warning
l Failed
l Successful
The following table lists the available query parameters when getting recent Web User logins.
l 2 - success
l 4 - failed
l 8 - warning
l 1 - HTTPS
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - AS2
l 32 - GoFast
max_rows The number of records that will be returned. No 5
{
"data:"
[
{
"userName": "kharris",
"firstName": "Kathy",
"lastName": "Harris,
"status": "S",
"service": "HTTPS",
"loggedOn": "04-13-2017 02:33:33 PM"
}
]
}
l W - Warning
l F - Failed
l S - Successful
The following table lists the available query parameters when getting service statistics.
l 1 - HTTPS
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - AS2
l 32 - GoFast
{
"data:"
[
{
"uploads": 260,
"downloads": "3000"
}
]
}
Service Status
Returns the status and active sessions for each file transfer service.
To retrieve service details, authenticate as an Admin User with the Product Administrator role.
REST Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/services/status
The following table lists the available query parameters when getting service information.
l 1 - HTTPS
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - AS2
l 32 - GoFast
{
"data:"
[
{
"service": "https",
"status": "STARTED",
"activeSessions": "1"
}
]
}
l STARTING
l STOPPING
l STARTED
l STOPPED
System Information
Returns system information and GoAnywhere license details.
To retrieve system and license information, authenticate as an Admin User with the Product
Administrator role.
REST Method & URL
GET http://[server URL]:[port]/goanywhere/rest/gacmd/v1/system/info
{
"data:"
[
{
"productVersion": "5.5.0",
"operatingSystem": "Windows",
"javaVersion": "1.7.0_60",
"licenseInfo": {
"licenseType": "PERM",
"createdOn": "03-22-2017 12:00:00 AM",
"expiresOn": "03-22-2018 12:00:00 AM",
"activatedOn": "03-22-2017 12:00:00 AM",
"activatedBy": "Sample User",
"serverID": "ZZZZ-ZZZZ-ZZZZ-ZZZZ",
"features":
[
{ "name": "Advanced Workflows",
"description": "GoAnywhere Advanced
Workflow tasks"
}
]
}
}
]
}
System Status
Returns system memory use information. All memory statistics are in megabytes (MB).
{
"data:"
[
{
"heapMemoryUsed": 191,
"heapMemoryCommitted": 415,
"heapMemoryInitial": 253,
"heapMemoryMaximum": 1820,
"nonHeapMemoryUsed": 83,
"nonHeapMemoryCommitted": 83,
"nonHeapMemoryInitial": 23,
"nonHeapMemoryMaximum": 432,
"activeThreadCount": 82,
"peakThreadCount": 87
}
]
}
The following table lists the available query parameters when getting top GoDrive users by disk
usage.
{
"data:"
[
{
"userName": "kharris",
"firstName": "Kathy",
"lastName": "Harris",
"diskUsage": "2.62 GB"
}
]
}
The following table lists the available query parameters when getting the top Secure Mail Packages
by size.
{
"data:"
[
{
"userName": "kharris",
"toAddress": "jsmith@example.com",
"ccAddress": "mhatfield@example.com",
"bccAddress": "kathy.harris@goanywhere.com",
"status": "Active",
"size": "71.13 MB"
}
]
}
The following table lists the available query parameters when getting the top Secure Packages by
disk usage.
{
"data:"
[
{
"userName": "kharris",
"firstName": "Kathy",
"lastName": "Harris",
"diskUsage": "90.87 MB"
}
]
}
The following table lists the available query parameters when getting the top Web Users by
transfer.
l 1 - upload
l 2 - download
l 1 - AS2
l 2 - FTP
l 4 - FTPS
l 8 - SFTP
l 16 - GoFast
l 32 - GoDrive
l 64 - Projects
l 128 - Secure Folders
l 256 - Secure Forms
l 512 - Triggers
l 1024 - Secure Mail
date_range The scope of the statistics based on date and time. No Today
Valid values are:
l 1 - today
l 2 - yesterday
l 7 - last 7 days
l 30 - last 30 days
l 90 - last 90 days
l 180 - last 180 days
l 365 - last 365 days
summarize_ Determines how the statistics are summarized. No Number
by Valid values are: of
Transfers
l 1 - Number of Transfers (default value)
l 2 - Bytes Transferred
max_rows The number of records that will be returned. No 5
"data:"
[
{
"userName": "kharris",
"firstName": "Kathy",
"lastName": "Harris",
"transfers": 41
}
]
}
Unresolved Jobs
Returns the failed or canceled Jobs that have not been marked Resolved from the Completed Jobs
page.
To retrieve unresolved Job details, authenticate as an Admin User with the Auditor, Job Manager,
or Project Executor role.
REST Method & URL
GET http://[server URL]:
[port]/goanywhere/rest/gacmd/v1/activity/jobs/unresolved
The following table lists the available query parameters when getting unresolved Jobs.
l 4 - failed
l 8 - canceled
l 1 - today
l 2 - yesterday
l 7 - last 7 days (default value)
l 30 - last 30 days
l 90 - last 90 days
l 180 - last 180 days
l 365 - last 365 days
max_rows The number of records that will be returned. No 5
{
"data:"
[
{
"jobNumber": 1000000000011,
"status": "F",
"project": "Daily Transfer",
"userName": "root",
"endTime": "3/21/17 3:03:11 PM"
}
]
}
l F - Failed
l C - Canceled