Last Updated: Jul 03, 2017
from aliyunsdkcore import client
from aliyunsdkram.request.v20150501 import CreateUserRequest
# Construct an Aliyun Client for initiating a request
# Set AccessKeyID and AccessKeySevcret when constructing the Aliyun Client
# RAM is a Global Service, and its API ingress is located in the East China 1 (Hangzhou) region. Enter "cn-hangzhou" in "Region"
clt = client.AcsClient('<access-key-id>','<access-key-secret>','cn-hangzhou')
# Construct a "CreateUser" request
request = CreateUserRequest.CreateUserRequest()
# Set the UserName parameter
# Initiate a request and obtain the response
response = clt.do_action(request)
Thank you! We've received your feedback.