Binds a mobile phone number to a resource account in a resource directory for security purposes.
Usage notes
You can call this operation only to bind a mobile phone number to a resource account. You cannot call this operation to modify the mobile phone number that is bound to a resource account.
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 operation.
In this example, a mobile phone number is bound to the resource account 138660628348****
for security purposes.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | BindSecureMobilePhone |
The operation that you want to perform. Set the value to BindSecureMobilePhone. |
VerificationCode | String | Yes | 123456 |
The verification code. You can call the SendVerificationCodeForBindSecureMobilePhone operation to obtain the verification code. |
SecureMobilePhone | String | Yes | xx-13900001234 |
The mobile phone number that you want to bind to the resource account. 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.
|
AccountId | String | Yes | 138660628348**** |
The ID of the resource account. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0217AFEB-5318-56D4-B167-1933D83EDF3F |
The ID of the request. |
Examples
Sample requests
https://resourcemanager.aliyuncs.com/?Action=BindSecureMobilePhone
&VerificationCode=123456
&SecureMobilePhone=xx-13900001234
&AccountId=138660628348****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<BindSecureMobilePhoneResponse>
<RequestId>0217AFEB-5318-56D4-B167-1933D83EDF3F</RequestId>
</BindSecureMobilePhoneResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0217AFEB-5318-56D4-B167-1933D83EDF3F"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
409 | Invalid.EnterpriseName | You must specify the enterprise name. | The error message returned because 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 error message returned because the account does not pass enterprise real-name verification. Complete enterprise real-name verification 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 error message returned because 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 error message returned because the verification code is invalid. |
409 | AccountTypeMismatch | The type or status of the member account cannot satisfy the current operation. | The error message returned because the type or status of the member does not meet the requirements for the current operation. |
409 | AccountSecureMobileAlreadyExists | The secure mobile number of the member already exists. | The error message returned because a mobile phone number has been bound to the member for security purposes. |
409 | CallerIdentityError | Please use the RAM user or role of the Management Account. | The error message returned because only a RAM user or RAM role within the management account of the resource directory can be used to call this operation. |
409 | NotSupport.AccountInAnotherResourceDirectory | Your account is a management account for another resource directory or a member of another resource directory. | The error message returned because your account is the management account or a member of another resource directory. |
For a list of error codes, visit the API Error Center.