| Package | Description | 
|---|---|
| com.tencentcloudapi.cvm.v20170312 | |
| com.tencentcloudapi.cvm.v20170312.models | 
| Modifier and Type | Method and Description | 
|---|---|
DisassociateInstancesKeyPairsResponse | 
CvmClient.DisassociateInstancesKeyPairs(DisassociateInstancesKeyPairsRequest req)
本接口 (DisassociateInstancesKeyPairs) 用于解除实例的密钥绑定关系。
 仅支持对 Linux 操作系统实例进行解绑操作。
 非强制关机场景下,仅支持对 [STOPPED](https://cloud.tencent.com/document/product/213/15753#InstanceStatus) 状态实例进行解绑操作。
 强制关机场景下,先执行强制关机,再解绑密钥;如实例原状态为 [RUNNING](https://cloud.tencent.com/document/product/213/15753#InstanceStatus),解绑完成后实例会自动开机。
 解绑密钥后,实例可以通过原来设置的密码登录。
 如果原来没有设置密码,解绑后将无法使用 `SSH` 登录。可以调用 [ResetInstancesPassword](https://cloud.tencent.com/document/api/213/15736) 接口来设置登录密码。
 支持批量操作。每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。 
 | 
| 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 © 2025. All rights reserved.