All Products
Search
Document Center

Resource Management:BindSecureMobilePhone

Last Updated:Jun 05, 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.

This topic provides an example on how to call the API operation to bind a mobile phone number to the member 138660628348**** for security purposes.

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
VerificationCodestringNo

The verification code.

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

123456
SecureMobilePhonestringNo

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****
InheritSecureMobilePhoneFromstringNo

The object from which the member inherits a mobile phone number.

  • If you leave this parameter empty, the member does not inherit a mobile phone number. This parameter is empty by default.
  • If you set the value to ManagementAccount, the member inherits the mobile phone number of the management account of the resource directory to which the member belongs. In this case, the SecureMobilePhone parameter does not take effect.
Note This parameter is available only at the China site (aliyun.com).
ManagementAccount

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

Response parameters

ParameterTypeDescriptionExample
object
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.You must specify the enterprise name.
409EnterpriseRealNameVerificationErrorThe specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account.The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account.
409EntityAlreadyExists.ResourceDirectoryThe resource directory for the account is already enabled. We recommend that you do not enable the resource directory again.The resource directory for the account is already enabled. We recommend that you do not enable the 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.The secure mobile number of the member already exists.
409CallerIdentityErrorPlease use the RAM user or role of the Management Account.Use the RAM user or role of the management account 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