import boto
import time
import sys
import logging
import boto.s3.connection
import ConfigParser
host = '192.168.9.230'
s3 = boto.connect_s3(
host = host,
is_secure = false,
calling_format = boto.s3.connection.OrdinaryCallingFormat(),
)
buckets = s3.get_all_buckets() 1
// List buckets
for bucket in buckets: 2
print (str(bucket.name) + " " + str(bucket.creation_date)) 3
// List objects
for key in bucket.list(): 4
print "{name}\t{size}\t{modified}".format(
name = key.name,
size = key.size
) 5
1 Get a list of all of the Vaults.
2 Iterate through the list of Vaults.
3 Display the Vault name and creation date.
4 Iterate throug the list of Objects in the current Vault.
5 Display the Object name, size and date modified.