All Products
Search
Document Center

Resource Management:BindSecureMobilePhone

Last Updated:Jan 16, 2025

Binds a mobile phone number to a member of the resource account type in a resource directory for security purposes.

Operation description

You can call this API operation only to bind a mobile phone number to a member of the resource account type. You cannot call this API operation to change the mobile phone number that is bound to a member of the resource account type.

To ensure that the system can record the operators of management operations, you must use a RAM user or RAM role to which the AliyunResourceDirectoryFullAccess policy is attached within the management account of your resource directory to call this API operation.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
resourcemanager:BindSecureMobilePhoneupdate
*Account
acs:resourcemanager::{#accountId}:account/{#ResourceDirectoryPath}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
VerificationCodestringYes

The verification code.

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

123456
SecureMobilePhonestringYes

The mobile phone number that you want to bind to the member for security purposes.

The mobile phone number you specify must be the same as the mobile phone number that you specify when you call the SendVerificationCodeForBindSecureMobilePhone operation to obtain a verification code.

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.
xx-13900001234
AccountIdstringYes

The Alibaba Cloud account ID of the member.

138660628348****

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400NotSupport.Site.ActionSite does not allow current action.Site does not allow current action.
409NotSupport.AccountInAnotherResourceDirectoryThe specified account is an Alibaba Cloud account or already exists in another resource directory.-
409Invalid.EnterpriseNameYou must specify the enterprise name.No enterprise name is specified for the account. Specify an enterprise name for the account.
409EnterpriseRealNameVerificationErrorThe 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.
409EntityAlreadyExists.ResourceDirectoryThe 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.
409Invalid.VerificationCodeThe verification code is invalid.The verification code is invalid.
409AccountTypeMismatchThe 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.
409AccountSecureMobileAlreadyExistsThe secure mobile number of the member already exists.A mobile phone number is already bound to the member for security purposes.
409CallerIdentityErrorPlease 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.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-04-27The Error code has changedView Change Details
2023-04-27The Error code has changedView Change Details