通过新创建的管理账号开通资源目录时,调用SendVerificationCodeForEnableRD向新管理账号的安全手机发送验证码。

使用说明

每个阿里云账号每天最多发送100次验证码。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String SendVerificationCodeForEnableRD

要执行的操作。取值:SendVerificationCodeForEnableRD

SecureMobilePhone String xx-13900001234

新创建的管理账号的安全手机号码。置空表示采用当前登录账号的安全手机号码。

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

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

关于公共请求参数的详情,请参见公共参数

返回数据

名称 类型 示例值 描述
RequestId String EC2FE94D-A4A2-51A1-A493-5C273A36C46A

请求ID。

示例

请求示例

https://resourcemanager.aliyuncs.com/?Action=SendVerificationCodeForEnableRD
&SecureMobilePhone=xx-13900001234
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<SendVerificationCodeForEnableRDResponse>
    <RequestId>EC2FE94D-A4A2-51A1-A493-5C273A36C46A</RequestId>
</SendVerificationCodeForEnableRDResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "EC2FE94D-A4A2-51A1-A493-5C273A36C46A"
}

错误码

HttpCode 错误码 错误信息 描述
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. 当前站点不支持您输入的国家码。

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