调用StartInstance启动一台实例。
接口说明
- 实例状态必须为已停止(Stopped),才可以调用该接口。
- 接口调用成功后实例进入启动中 (Starting) 状态。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID,仅支持启动单个。 | i-instance**** |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 0,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | - |
400 | InstanceNotFound | The input parameter instancdId that is not found. | 指定的InstanceId不存在。 |
400 | NoPermission | Permission denied. | 没有足够的权限,请联系云账号管理员授予您相应权限。 |
400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | 当前实例状态不支持此操作。 |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
访问错误中心查看更多错误码。