THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
[Credentials] aws_access_key_id= <cloudstack_api_key> aws_secret_access_key= <cloudstack_secret_key> |
Wiki Markup |
---|
For more details on Boto configuration refer \[1\] |
Code Block | ||
---|---|---|
| ||
import boto import boto.ec2 region = boto.ec2.regioninfo.RegionInfo(name="AmazonEC2", endpoint="<cloudstack_management_server_ip>") conn = boto.connect_ec2(aws_access_key_id="<cloudstack_api_key>", aws_secret_access_key="<cloudstack_secret_key>", is_secure=False, region=region, port=7080, path="/awsapi", api_version="2012-08-15") # list the images images = conn.get_all_images() # list the attribute of the first image dir(images[0]) # list the attribute values of the first image vars(images[0]) |
Wiki Markup |
---|
For a complete list off Boto EC2 API calls refer \[2\] |
...