All Products
Search
Document Center

Resource Management:BindSecureMobilePhone

Last Updated:Jun 25, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

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.-
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 changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 409
2023-04-27The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 409