BindSecureMobilePhone_资源目录_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

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

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

流控信息

请求速率为20/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
resourcemanager:BindSecureMobilePhone
Update
Account
acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}

请求参数

字段名称字段详情
VerificationCodestring

验证码。展开详情

示例值:123456
SecureMobilePhonestring

安全手机号码。展开详情

示例值:xx-13900001234
AccountIdstring

成员 ID。

示例值:138660628348****参考取值来源:
    UpdateAccount
    ListAccounts
    CreateResourceAccount

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:0217AFEB-5318-56D4-B167-1933D83EDF3F

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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.诊断

变更历史

变更时间变更内容概要操作
2023-04-27
变更请求参数VerificationCode
变更请求参数SecureMobilePhone
2023-04-27
删除返回参数

相关示例