調(diào)用RestartCluster接口,重啟集群。

調(diào)試

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

請求參數(shù)

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

系統(tǒng)規(guī)定參數(shù)。取值:RestartCluster

RegionId String cn-hangzhou

區(qū)域ID

ClusterId String C-D7958B72E59B****

集群ID

RestartWithRollingMode Boolean true

循環(huán)啟動集群

UpgradedHostGroupOnly Boolean true

只升級主機(jī)組

返回?cái)?shù)據(jù)

名稱 類型 示例值 描述
ClusterId String C-D7958B72E59BA**

集群ID

RequestId String BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22

請求ID

示例

請求示例

http(s)://[Endpoint]/?Action=RestartCluster
&RegionId=cn-hangzhou
&ClusterId=C-D7958B72E59B****
&RestartWithRollingMode=true
&UpgradedHostGroupOnly=true
&公共請求參數(shù)

正常返回示例

XML格式

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

<RestartClusterResponse>
    <ClusterId>C-D7958B72E59BA**</ClusterId>
    <RequestId>BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22</RequestId>
</RestartClusterResponse>

JSON格式

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

{
  "ClusterId" : "C-D7958B72E59BA**",
  "RequestId" : "BF4FBAC6-B03E-4BFB-B6DB-EB53C34F2E22"
}

錯誤碼

HttpCode 錯誤碼 錯誤信息 描述
400 RAM.Permission.NotAllow You are not authorized to perform the operation. 沒有權(quán)限執(zhí)行此操作,請聯(lián)系主賬號授權(quán)
400 DB.Fail A database access error occurred. 數(shù)據(jù)庫訪問錯誤,請重試或者提工單
400 InternalError The request processing has failed due to some unknown error. 內(nèi)部錯誤,請?zhí)峁?/td>
400 User.OtherUserResource.NotAllow You are not authorized to operate other users resource. 不能操作其它用戶的資源
403 Params.Illegal The format of the specified parameter is invalid. 參數(shù)格式錯誤

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

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