创建成员账号

最近更新时间:2021-06-01 18:38:21

查看PDF

请求参数

名称 类型 必须 长度限制(字符) 参数格式 描述
Action String 确定值 [a-zA-Z]+ 操作接口名,系统规定参数,取值:CreateAccount
AccountName String 最短6,最长18 ^[a-zA-Z][a-zA-Z0-9_]+ 欲创建的账号名
Password String 最短8,最长32 string 欲创建的账号密码,无空格
Mobile string 最小60,最大900 int 欲创建的账号的手机号,国内手机号码
SecureEmail String 最长64 string 欲创建的账号的安全邮箱

返回元素(调用成功)

名称 类型 描述
CreateAccountResult AccountType 账号信息

错误码(调用不成功)

错误代码(Code) 错误消息(Message) HTTP 状态码 中文描述(语义)
AccountNameAlreadyExists The request was rejected because it attempted to create a AccountName that already exists. 409 账号名已经存在
AccountInvalidParameter The username field is required. 400 参数错误
AccountInternalError Call passport service error. 400 调用Passport服务返回的其他类型错误

示例

请求示例

https://iam.api.ksyun.com/?Action=CreateAccount&Version=2015-11-01&AccountName=test&Password=test123&Mobile=18612345678&[email protected]

返回示例

  • XML格式
<CreateAccountResponse>
    <CreateAccountResult>
        <AccountId>2579651</AccountId>
        <Mobile>185******08</Mobile>
        <AccountName>test</AccountName>
        <SecureEmail>t*[email protected]</SecureEmail>
        <AccessKeyId>lwelsolsdkjf</AccessKeyId>
        <SecretAccessKey>sdfsdfsdfsdf</SecretAccessKey>
    </CreateAccountResult>
    <ResponseMetadata>
        <RequestId>67113f08-24da-41f2-8130-8bbf1eeb4295</RequestId>
    </ResponseMetadata>
</GetUserSessionResponse>
  • JSON示例
{
    "CreateAccountResult": {
        "AccountId":"2579651",
        "Mobile": "185******08",
        "AccountName":"test",
        "SecureEmail":"t*[email protected]",
        "AccessKeyId":"lwelsolsdkjf",
        "SecretAccessKey":"sdfsdfsdfsdf"
    },
    "RequestId": "3c1221a9-debe-45ee-9d92-cc76acd04119"
}

文档内容是否对您有帮助?

根本没帮助
文档较差
文档一般
文档不错
文档很好

在文档使用中是否遇到以下问题

内容不全,不深入
内容更新不及时
描述不清晰,比较混乱
系统或功能太复杂,缺乏足够的引导
内容冗长

更多建议

0/200

评价建议不能为空

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

问题反馈