Package | Description |
---|---|
com.tencentcloudapi.cvm.v20170312 | |
com.tencentcloudapi.cvm.v20170312.models |
Modifier and Type | Method and Description |
---|---|
ResetInstanceResponse |
CvmClient.ResetInstance(ResetInstanceRequest req)
本接口 (ResetInstance) 用于重装指定实例上的操作系统。
如果指定了`ImageId`参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。
系统盘将会被格式化,并重置;请确保系统盘中无重要文件。
`Linux`和`Windows`系统互相切换时,该实例系统盘`ID`将发生变化,系统盘关联快照将无法回滚、恢复数据。
密码不指定将会通过站内信下发随机密码。
目前只支持[系统盘类型](https://cloud.tencent.com/document/api/213/9452#SystemDisk)是`CLOUD_BASIC`、`CLOUD_PREMIUM`、`CLOUD_SSD`类型的实例使用该接口实现`Linux`和`Windows`操作系统切换。
目前不支持境外地域的实例使用该接口实现`Linux`和`Windows`操作系统切换。
实例操作结果可以通过调用 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728#.E7.A4.BA.E4.BE.8B3-.E6.9F.A5.E8.AF.A2.E5.AE.9E.E4.BE.8B.E7.9A.84.E6.9C.80.E6.96.B0.E6.93.8D.E4.BD.9C.E6.83.85.E5.86.B5) 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
Constructor and Description |
---|
ResetInstanceRequest(ResetInstanceRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Copyright © 2022. All rights reserved.