All Products
Search
Document Center

Resource Management:SendVerificationCodeForBindSecureMobilePhone

Last Updated:Sep 10, 2026

Sends a verification code to a secure phone number when you set the secure phone number for a member of the resource account type by calling SendVerificationCodeForBindSecureMobilePhone.

Operation description

To ensure that the system can record the specific operator of management operations, use a Resource Access Management (RAM) user or RAM role under the management account that has the resource directory management permission (AliyunResourceDirectoryFullAccess) to call this API operation.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

resourcemanager:SendVerificationCodeForBindSecureMobilePhone

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

SecureMobilePhone

string

Yes

The secure phone number.

Format: -.

Note

Phone numbers in the Chinese mainland in the format of 86-<Phone number> are not supported.

xx-13900001234

AccountId

string

Yes

The account ID of the member.

138660628348****

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

DCD43660-75DD-5D15-B342-1B83FCA5B913

ExpirationDate

string

The expiration time of the verification code. The time is displayed in ISO 8601 format, in UTC.

2021-12-17T07:38:41.747Z

Examples

Success response

JSON format

{
  "RequestId": "DCD43660-75DD-5D15-B342-1B83FCA5B913",
  "ExpirationDate": "2021-12-17T07:38:41.747Z"
}

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.
409 EntityAlreadyExists.ResourceDirectory The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. 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 number of verification codes that are sent per day by using the account exceeds the upper limit.
409 InvalidParameter.MobileCountryCode The current site does not support the country code. The specified country code is not supported at the current site.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.