iam.py 353 B

12345678910111213141516
  1. # -*- encoding:utf-8 -*-
  2. from kscore.session import get_session
  3. if __name__ == "__main__":
  4. s = get_session()
  5. client = s.create_client("iam", use_ssl=False)
  6. users = client.list_users()
  7. client.create_user(UserName="test22", RealName=u"刘一辰")
  8. client.update_user(UserName="test22",)
  9. client.delete_user(UserName="test22")