Hello friends: I was wondering if anyone had a Terremark libcloud authentication example, similar to the ones indicated here for Amazon EC2 and Rackspace:
http://libcloud.apache.org/getting-started.html I've tried a few variations of the examples provided in the above link for the Terremark case (a vCloud API implementation), but received an "Invalid Credentials with the provider" Exception in each case. So far I've tried passing Authentication using the three (3) variations shown below (commented out) for "conn = Driver()". Thank you in advance! ############################################### #! /usr/bin/env python3 import libcloud.compute.types import libcloud.compute.providers import base64 # TERREMARK_USERNAME = "[email protected]" TERREMARK_PASSWORD = "some-password" TERREMARK_B64AUTH = base64.b64encode(bytes(TERREMARK_USERNAME + ":" + TERREMARK_PASSWORD, encoding='utf-8')) # Driver = libcloud.compute.providers.get_driver(libcloud.compute.providers.Provider.TERREMARK) #conn = Driver(TERREMARK_USERNAME, TERREMARK_PASSWORD) #conn = Driver(TERREMARK_B64AUTH) #conn = Driver(TERREMARK_USERNAME + ":" + TERREMARK_PASSWORD) [ ... snip ... ] #########################################
