全部產品
Search
文件中心

Database Gateway - Deprecated:StopGateway

更新時間:Feb 28, 2025

調用StopGateway停止網關服務。

調試

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

請求參數

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

系統規定參數。取值:StopGateway

GatewayId String dg-yhss6sdlaff****

網關ID。

GatewayInstanceId String dg-node-123

網關執行個體ID。

返回資料

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

響應碼。

Data String test_data

返回的結果。

ErrorMsg String SYSTEM_ERR

異常資訊。

RequestId String CDDAAA07-D806-AG67-BEE8-1E43AAE024DE

請求ID。

Success Boolean true

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

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

樣本

請求樣本

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

正常返回樣本

XML格式

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

<StopGatewayResponse>
    <Code>OK</Code>
    <Data>test_data</Data>
    <ErrorMsg>SYSTEM_ERR</ErrorMsg>
    <RequestId>CDDAAA07-D806-AG67-BEE8-1E43AAE024DE</RequestId>
    <Success>true</Success>
</StopGatewayResponse>

JSON格式

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

{
  "Code" : "OK",
  "Data" : "test_data",
  "ErrorMsg" : "SYSTEM_ERR",
  "RequestId" : "CDDAAA07-D806-AG67-BEE8-1E43AAE024DE",
  "Success" : true
}

錯誤碼

HttpCode 錯誤碼 錯誤資訊 描述
500 Error The requested service is unavailable. Please try again later. 服務異常,請重試

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