文档

RebootInstance - 重启实例

更新时间:

调用RebootInstance重启一台实例。

接口说明

  • 您只能重启状态为运行中(Running)的 ENS 实例。

  • 接口调用成功后实例进入启动中 (Starting) 状态。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
InstanceIdstring

要重启实例的 ID,仅支持重启单个。

i-instanceid****
ForceStopstring

重启 ENS 实例前是否强制关机策略。

  • true:重启 ENS 实例前强制关机。
  • false(默认):重启 ENS 实例前正常关机。
true

返回参数

名称类型描述示例值
object
Codeinteger

返回的业务码,正常成功为 0。

0
RequestIdstring

请求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "Code": 0,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

错误码

HTTP status code错误码错误信息描述
400MissingParameterThe input parameters that is mandatory for processing this request is not supplied.-
400InstanceIdNotFoundThe input parameter instancdId that is not found.-
400NoPermissionPermission denied.没有足够的权限,请联系云账号管理员授予您相应权限。
400ens.interface.errorFailed to call API.接口调用发生异常。
400IncorrectInstanceStatusThe current status of the instance does not support this operation.当前实例状态不支持此操作。
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈