All Products
Search
Document Center

Resource Management:BindSecureMobilePhone

Last Updated:Feb 28, 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.

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

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
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 changedView Change Details