Sends a verification code to the mobile phone number bound to a newly created account when you use the account to enable a resource directory.

Usage notes

Each Alibaba Cloud account can be used to send a maximum of 100 verification codes per day.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SendVerificationCodeForEnableRD

The operation that you want to perform. Set the value to SendVerificationCodeForEnableRD.

SecureMobilePhone String No xx-13900001234

The mobile phone number that is bound to the newly created account. If you leave this parameter empty, the mobile phone number that is bound to the current account is used.

Specify the mobile phone number in the <Country code>-<Mobile phone number> format.

Note Mobile phone numbers in the 86-<Mobile phone number> format in the Chinese mainland are not supported.

For more information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String EC2FE94D-A4A2-51A1-A493-5C273A36C46A

The ID of the request.

Examples

Sample requests

https://resourcemanager.aliyuncs.com/?Action=SendVerificationCodeForEnableRD
&SecureMobilePhone=xx-13900001234
&<Common request parameters>

Sample success responses

XML format

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

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

JSON format

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

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

Error codes

HTTP status code Error code Error message Description
409 NotSupport.AccountInAnotherResourceDirectory The specified account is an Alibaba Cloud account or already exists in another resource directory. The error message returned because the account is the management account or a member of 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. The error message returned because the account has been used to enable a resource directory. Do not use the account to enable a resource directory again.
409 SendValidateCodeExceedsLimitForAccount For the same account, the number of verification codes sent exceeds the limit. The error message returned because the number of verification codes that are sent per day by using the account has exceeded the upper limit.
409 InvalidParameter.MobileCountryCode The current site does not support the country code. The error message returned because the specified country code is not supported at the current site.

For a list of error codes, visit the API Error Center.