调用BindSecureMobilePhone为资源账号类型的成员设置安全手机号码。
接口说明
本 API 仅用于首次设置资源账号安全手机号码,不能用于修改已有的安全手机号码。
为确保系统可以记录到管理操作的具体操作者,请使用管理账号下具有资源目录管理权限(AliyunResourceDirectoryFullAccess)的 RAM 用户或 RAM 角色调用本 API。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| VerificationCode |
string |
是 |
验证码。 您可以调用 SendVerificationCodeForBindSecureMobilePhone 获取验证码。 |
123456 |
| SecureMobilePhone |
string |
是 |
安全手机号码。 该手机号码必须与 SendVerificationCodeForBindSecureMobilePhone 中获取验证码时设置的手机号码一致。 格式:<国家码>-<手机号码>。 说明
不支持填写 |
xx-13900001234 |
| AccountId |
string |
是 |
成员 ID。 |
138660628348**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
0217AFEB-5318-56D4-B167-1933D83EDF3F |
示例
正常返回示例
JSON格式
{
"RequestId": "0217AFEB-5318-56D4-B167-1933D83EDF3F"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NotSupport.Site.Action | Site does not allow current action. | |
| 409 | NotSupport.AccountInAnotherResourceDirectory | The specified account is an Alibaba Cloud account or already exists in another resource directory. | |
| 409 | Invalid.EnterpriseName | You must specify the enterprise name. | |
| 409 | EnterpriseRealNameVerificationError | The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account. | |
| 409 | EntityAlreadyExists.ResourceDirectory | The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. | |
| 409 | Invalid.VerificationCode | The verification code is invalid. | |
| 409 | AccountTypeMismatch | The type or status of the member account cannot satisfy the current operation. | |
| 409 | AccountSecureMobileAlreadyExists | The secure mobile number of the member already exists. | |
| 409 | CallerIdentityError | Please use the RAM user or role of the Management Account. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。