為資源賬號類型的成員設置安全手機號碼時,調用SendVerificationCodeForBindSecureMobilePhone向安全手機發送驗證碼。

使用說明

為確保系統可以記錄到管理操作的具體操作者,請使用管理賬號下具有資源目錄管理權限(AliyunResourceDirectoryFullAccess)的RAM用戶或RAM角色調用本API。

本文將提供一個示例,為成員138660628348****的安全手機發送驗證碼。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

請求參數

名稱 類型 是否必選 示例值 描述
Action String SendVerificationCodeForBindSecureMobilePhone

要執行的操作。取值:SendVerificationCodeForBindSecureMobilePhone

SecureMobilePhone String xx-13900001234

安全手機號碼。

格式:<國家碼>-<手機號碼>。

說明 僅支持填寫86-<手機號碼>的中國內地手機號碼。
AccountId String 138660628348****

成員的賬號ID。

關于公共請求參數的詳情,請參見公共參數

返回數據

名稱 類型 示例值 描述
RequestId String DCD43660-75DD-5D15-B342-1B83FCA5B913

請求ID。

ExpirationDate String 2021-12-17T07:38:41.747Z

驗證碼過期時間。

示例

請求示例

https://resourcemanager.aliyuncs.com/?Action=SendVerificationCodeForBindSecureMobilePhone
&SecureMobilePhone=xx-13900001234
&AccountId=138660628348****
&公共請求參數

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<SendVerificationCodeForBindSecureMobilePhoneResponse>
    <RequestId>DCD43660-75DD-5D15-B342-1B83FCA5B913</RequestId>
    <ExpirationDate>2021-12-17T07:38:41.747Z</ExpirationDate>
</SendVerificationCodeForBindSecureMobilePhoneResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DCD43660-75DD-5D15-B342-1B83FCA5B913",
  "ExpirationDate" : "2021-12-17T07:38:41.747Z"
}

錯誤碼

HttpCode 錯誤碼 錯誤信息 描述
409 EntityAlreadyExists.ResourceDirectory The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. 賬號已開通資源目錄,請勿重復開通。
409 SendValidateCodeExceedsLimitForAccount For the same account, the number of verification codes sent exceeds the limit. 當前賬號發送的驗證碼每日數量超限。
409 InvalidParameter.MobileCountryCode The current site does not support the country code. 當前站點不支持您輸入的國家碼。
409 NotSupport.AccountInAnotherResourceDirectory Your account is a management account for another resource directory or a member of another resource directory. 您的賬號是另一個資源目錄的管理賬號或是另一個資源目錄內的成員。

訪問錯誤中心查看更多錯誤碼。