名称 | 类型 | 必须 | 长度限制(字符) | 参数格式 | 描述 |
---|---|---|---|---|---|
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]
<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>
{
"CreateAccountResult": {
"AccountId":"2579651",
"Mobile": "185******08",
"AccountName":"test",
"SecureEmail":"t*[email protected]",
"AccessKeyId":"lwelsolsdkjf",
"SecretAccessKey":"sdfsdfsdfsdf"
},
"RequestId": "3c1221a9-debe-45ee-9d92-cc76acd04119"
}
文档内容是否对您有帮助?
评价建议不能为空
非常感谢您的反馈,我们会继续努力做到更好!