The createDataSource takes a template name. This must match one of the defined resource-adapters in the server (i.e., file, google, etc.). This is how teiid knows to create the resource-adapter versus a jdbc data source.
Its been long time, welcome back.
If you got .RAR file, you can use "deploy" method to deploy resource-adapter. The template name in this case would be name of the RAR file.