ebs.py 308 B

123456789101112
  1. # -*- encoding:utf-8 -*-
  2. from kscore.exceptions import ClientError
  3. from kscore.session import get_session
  4. from pprint import pprint
  5. if __name__ == "__main__":
  6. s = get_session()
  7. client = s.create_client("ebs", "cn-beijing-6", use_ssl=False)
  8. result = client.describe_volumes()
  9. print(result)