| Package | Description | 
|---|---|
| com.tencentcloudapi.cvm.v20170312 | |
| com.tencentcloudapi.cvm.v20170312.models | 
| Modifier and Type | Method and Description | 
|---|---|
AssociateInstancesKeyPairsResponse | 
CvmClient.AssociateInstancesKeyPairs(AssociateInstancesKeyPairsRequest req)
本接口 (AssociateInstancesKeyPairs) 用于将密钥绑定到实例上。
 将密钥的公钥写入到实例的`SSH`配置当中,用户就可以通过该密钥的私钥来登录实例。
 如果实例原来绑定过密钥,那么原来的密钥将失效。
 如果实例原来是通过密码登录,绑定密钥后无法使用密码登录。
 支持批量操作。每次请求批量实例的上限为100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。 
 | 
| Constructor and Description | 
|---|
AssociateInstancesKeyPairsResponse(AssociateInstancesKeyPairsResponse 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 © 2024. All rights reserved.