新建子账号

更新时间:2022-01-18 14:31:38

描述

新建子账号

请求参数

参数名参数类型是否必填参数说明
Action String

操作方法:CreateIamUser,此参数为公共参数,不必放body里面

UserName String

子账号用户名,用户名格式:1-64个字符,由字母、数字组成,支持._@

DisplayName String

姓名,最大长度12

MobilePhone String

手机号码 15000000000 仅支持中国号码

Password String

密码,base64加密

Comments String

备注,不超过128个字符

Email String

邮箱,长度不超过32个字符

返回参数

名称 类型 说明
UserId Integer 用户id
UserName String 用户名
DisplayName String 姓名
MobilePhone String 手机号码,带区号
Email String 邮箱
CreateDate Long 创建时间

请求示例

post https://api.chinac.com/v2/?Action=CreateIamUser
{
      "UserName": "test",
      "DisplayName": "test",
     '"MobilePhone": "+8615000000000",
      "Password":"XXX"
      "Email": "test@test.com",
      "Comments": "test"
}

返回示例

{
    "code": 10000,
    "message": "",
    "data": {
            "UserId": 1000,
            "UserName": "test",
            "DisplayName": "test",
            "MobilePhone": "+8615000000000",
            "Email": "test@test.com",
            "CreateDate": 1587467268000
     }
}
*
*
*
*