全部產品
Search
文件中心

Database Gateway - Deprecated:CreateGatewayVerifyCode

更新時間:Feb 28, 2025

調用CreateGatewayVerifyCode產生線下安裝網關時需要的驗證碼。

該驗證碼將與雲上建立的網關相對應。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱 類型 是否必選 樣本值 描述
Action String CreateGatewayVerifyCode

系統規定參數。取值:CreateGatewayVerifyCode

GatewayId String dg-yhss6sdlaff****

網關ID。

返回資料

名稱 類型 樣本值 描述
Code String SYSTEM_ERR

錯誤碼。

Data String O2emaiUwOqSakQhidbbvb4mu8Rpy****

線下安裝網關時需要的驗證碼。

ErrorMsg String Check parameter failure[User not match gateway].

異常資訊。

RequestId String D31DB440-6025-57A6-841C-DD366F1B54C3

請求ID。

Success Boolean true

請求是否成功,傳回值如下:

  • true:請求成功。
  • false:請求失敗。

樣本

請求樣本

http(s)://dg.cn-hangzhou.aliyuncs.com/?Action=CreateGatewayVerifyCode
&GatewayId=dg-yhss6sdlaff****
&公用請求參數

正常返回樣本

XML格式

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

<CreateGatewayVerifyCodeResponse>
    <Code>SYSTEM_ERR</Code>
    <Data>O2emaiUwOqSakQhidbbvb4mu8Rpy****</Data>
    <ErrorMsg>Check parameter failure[User not match gateway].</ErrorMsg>
    <RequestId>D31DB440-6025-57A6-841C-DD366F1B54C3</RequestId>
    <Success>true</Success>
</CreateGatewayVerifyCodeResponse>

JSON格式

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

{
  "Code" : "SYSTEM_ERR",
  "Data" : "O2emaiUwOqSakQhidbbvb4mu8Rpy****",
  "ErrorMsg" : "Check parameter failure[User not match gateway].",
  "RequestId" : "D31DB440-6025-57A6-841C-DD366F1B54C3",
  "Success" : true
}

錯誤碼

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