I wrote an article for IBM developerWorks: Scripting in IBM PureApplication System. It gets you started using scripting capabilities and REST API of IBM PureApplication.
The idea of the article is to get everyone started with scripting possibilities of IBM PureApplication.
Together with the article, there’s also a GitHub repository that has scripts related to PureApp. There’s also script package for Aspera Cargo, a Linux daemon client to connect to Aspera Faspex server.