Package | Description |
---|---|
com.tencentcloudapi.tke.v20220501 | |
com.tencentcloudapi.tke.v20220501.models |
Modifier and Type | Method and Description |
---|---|
StopMachinesResponse |
TkeClient.StopMachines(StopMachinesRequest req)
本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
只有状态为 Running 的实例才可以进行此操作。
接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
支持批量操作。每次请求批量实例的上限为 100。
本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
|
Constructor and Description |
---|
StopMachinesRequest(StopMachinesRequest 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 © 2025. All rights reserved.