One of the exciting new changes in MOVEit Automation 2018 is the expansion of the API to include REST processing. This is in addition to the existing COM and Java methods. It isn’t just a rewrite of the existing API, but includes new functionality that MOVEit Automation users have wanted for some time.
Please note that you must upgrade to MOVEit Automation 2018 and have the API licensed to enjoy the benefits of the REST API.
What is a REST API?
REST is short for Representational State Transfer – a processing methodology based upon HTTP. Clients initiate requests to the server. Nothing related to the client is stored in between the requests.
In essence, once the client has a URL from its initial connection, it can continue to use that URL in subsequent requests (in a similar way to how COM objects can be reused). Each call must be authorised with the simple passing of a token.
The API makes use of the WebAdmin installation on the Automation server. You will need to install this if you haven’t already (and given that the S3 host is only usable via the webadmin, you should do this anyway). You start with a root URL that you will reference when calling various functions. For example if you are calling the API from on the server you can simply use this (shown in powershell format):
$URI = “https://localhost/webadmin/api/v1”
Note that if using localhost, you will have a certificate error. To avoid this, insert the following line of code into the top of your script:
Here is a ‘bare bones’ script that stops the scheduler, waits for all tasks to complete, then stops the automation service itself. This is perfect for automating server reboots. This script does not contain error handling, nor is there a limit on how long to wait before giving up on stopping tasks:
We are certified Progress MOVEit Titanium Partners and our team includes the UK’s leading MOVEit expert. See our range of support and consultancy services to help you get the most out of your MOVEit solution.