All Products
Search
Document Center

Resource Management:BindSecureMobilePhone

Last Updated:Oct 26, 2026

Sets the secure phone number for a member of the resource account type.

Operation description

This API operation is used only for the initial setup of the secure phone number for a resource account and cannot be used to modify an existing secure phone number.

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

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:BindSecureMobilePhone

update

*Account

acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}

None None

Request parameters

Parameter

Type

Required

Description

Example

VerificationCode

string

Yes

The verification code.

You can call the SendVerificationCodeForBindSecureMobilePhone operation to obtain the verification code.

123456

SecureMobilePhone

string

Yes

The secure phone number.

The phone number must be the same as the phone number specified when you call the SendVerificationCodeForBindSecureMobilePhone operation to obtain the verification code.

Format: -.

Note

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

xx-13900001234

AccountId

string

Yes

The ID of the member.

138660628348****

Response elements

Element

Type

Description

Example

object

The returned result.

RequestId

string

The ID of the request.

0217AFEB-5318-56D4-B167-1933D83EDF3F

Examples

Success response

JSON format

{
  "RequestId": "0217AFEB-5318-56D4-B167-1933D83EDF3F"
}

Error codes

HTTP status code

Error code

Error message

Description

400 NotSupport.Site.Action Site does not allow current 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. No enterprise name is specified for the account. Specify an enterprise name for the account.
409 EnterpriseRealNameVerificationError The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account. The account does not pass enterprise real-name verification. Complete the verification for the account first.
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 Invalid.VerificationCode The verification code is invalid. The verification code is invalid.
409 AccountTypeMismatch The type or status of the member account cannot satisfy the current operation. The type or status of the member account cannot satisfy the current operation.
409 AccountSecureMobileAlreadyExists The secure mobile number of the member already exists. A mobile phone number is already bound to the member for security purposes.
409 CallerIdentityError Please use the RAM user or role of the Management Account. Only a RAM user or RAM role within the management account can be used to perform this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.