Package | Description |
---|---|
com.tencentcloudapi.lighthouse.v20200324 | |
com.tencentcloudapi.lighthouse.v20200324.models |
Modifier and Type | Method and Description |
---|---|
DisassociateInstancesKeyPairsResponse |
LighthouseClient.DisassociateInstancesKeyPairs(DisassociateInstancesKeyPairsRequest req)
本接口(DisassociateInstancesKeyPairs)用于解除实例与指定密钥对的绑定关系。
只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后解绑。
解绑密钥后,实例可以通过原来设置的密码登录。
如果原来没有设置密码,解绑后将无法使用 SSH 登录。可以调用 ResetInstancesPassword 接口来设置登录密码。
支持批量操作。每次请求批量实例的上限为 100。
本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。
|
Constructor and Description |
---|
DisassociateInstancesKeyPairsRequest(DisassociateInstancesKeyPairsRequest 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 © 2023. All rights reserved.