为资源账号类型的成员设置安全手机号码时,调用SendVerificationCodeForBindSecureMobilePhone向安全手机发送验证码。
接口说明
为确保系统可以记录到管理操作的具体操作者,请使用管理账号下具有资源目录管理权限(AliyunResourceDirectoryFullAccess)的 RAM 用户或 RAM 角色调用本 API。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SecureMobilePhone |
string |
是 |
安全手机号码。 格式:<国家码>-<手机号码>。 说明
不支持填写 |
xx-13900001234 |
| AccountId |
string |
是 |
成员的账号 ID。 |
138660628348**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| RequestId |
string |
请求 ID。 |
DCD43660-75DD-5D15-B342-1B83FCA5B913 |
| ExpirationDate |
string |
验证码过期时间。 |
2021-12-17T07:38:41.747Z |
示例
正常返回示例
JSON格式
{
"RequestId": "DCD43660-75DD-5D15-B342-1B83FCA5B913",
"ExpirationDate": "2021-12-17T07:38:41.747Z"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 409 | NotSupport.AccountInAnotherResourceDirectory | The specified account is an Alibaba Cloud account or already exists in another resource directory. | |
| 409 | EntityAlreadyExists.ResourceDirectory | The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. | |
| 409 | SendValidateCodeExceedsLimitForAccount | For the same account, the number of verification codes sent exceeds the limit. | |
| 409 | InvalidParameter.MobileCountryCode | The current site does not support the country code. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。