為資源賬號類型的成員設置安全手機號碼時,調用SendVerificationCodeForBindSecureMobilePhone向安全手機發送驗證碼。
接口說明
為確保系統可以記錄到管理操作的具體操作者,請使用管理賬號下具有資源目錄管理權限(AliyunResourceDirectoryFullAccess)的 RAM 用戶或 RAM 角色調用本 API。
調試
您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。
授權信息
當前API暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
SecureMobilePhone | string | 是 | 安全手機號碼。 格式:<國家碼>-<手機號碼>。 說明
僅支持填寫 86-<手機號碼> 的中國內地手機號碼。
| xx-13900001234 |
AccountId | string | 是 | 成員的賬號 ID。 | 138660628348**** |
返回參數
示例
正常返回示例
JSON
格式
{
"RequestId": "DCD43660-75DD-5D15-B342-1B83FCA5B913",
"ExpirationDate": "2021-12-17T07:38:41.747Z"
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
409 | NotSupport.AccountInAnotherResourceDirectory | The specified account is an Alibaba Cloud account or already exists in another resource directory. | 您的賬號是另一個資源目錄的管理賬號或是另一個資源目錄內的成員。 |
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. | 當前站點不支持您輸入的國家碼。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|
暫無變更歷史