文档

BindSecureMobilePhone - 设置安全手机号码

更新时间:

调用BindSecureMobilePhone为资源账号类型的成员设置安全手机号码。

接口说明

本 API 仅用于首次设置资源账号安全手机号码,不能用于修改已有的安全手机号码。

为确保系统可以记录到管理操作的具体操作者,请使用管理账号下具有资源目录管理权限(AliyunResourceDirectoryFullAccess)的 RAM 用户或 RAM 角色调用本 API。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
VerificationCodestring

验证码。

您可以调用 SendVerificationCodeForBindSecureMobilePhone 获取验证码。

123456
SecureMobilePhonestring

安全手机号码。

该手机号码必须与 SendVerificationCodeForBindSecureMobilePhone 中获取验证码时设置的手机号码一致。

格式:<国家码>-<手机号码>。

说明 仅支持填写86-<手机号码>的中国内地手机号码。
xx-13900001234
AccountIdstring

成员 ID。

138660628348****

返回参数

名称类型描述示例值
object

返回结果。

RequestIdstring

请求 ID。

0217AFEB-5318-56D4-B167-1933D83EDF3F

示例

正常返回示例

JSON格式

{
  "RequestId": "0217AFEB-5318-56D4-B167-1933D83EDF3F"
}

错误码

HTTP status code错误码错误信息描述
400NotSupport.Site.ActionSite does not allow current action.该操作不支持当前站点。
409NotSupport.AccountInAnotherResourceDirectoryThe specified account is an Alibaba Cloud account or already exists in another resource directory.您的账号是另一个资源目录的管理账号或是另一个资源目录内的成员。
409Invalid.EnterpriseNameYou must specify the enterprise name.账号未设置企业名称,请您先完成企业名称设置。
409EnterpriseRealNameVerificationErrorThe specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account.当前账号未经过企业实名认证。请您先完成企业实名认证。
409EntityAlreadyExists.ResourceDirectoryThe resource directory for the account is already enabled. We recommend that you do not enable the resource directory again.账号已开通资源目录,请勿重复开通。
409Invalid.VerificationCodeThe verification code is invalid.验证码无效。
409AccountTypeMismatchThe type or status of the member account cannot satisfy the current operation.-
409AccountSecureMobileAlreadyExistsThe secure mobile number of the member already exists.成员的安全手机号已经存在。
409CallerIdentityErrorPlease use the RAM user or role of the Management Account.请使用管理账号的RAM用户或角色进行操作。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-04-27OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
    删除错误码:409
2023-04-27OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
    删除错误码:409
  • 本页导读 (1)
文档反馈