public class DisassociateInstancesKeyPairsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DisassociateInstancesKeyPairsRequest() | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Boolean | getForceStop()Get 是否强制关机,默认值为 false。常规场景下,建议手动关机后解绑密钥。取值范围:
true:先执行强制关机,再解绑密钥。
false:不执行强制关机,仅支持对已关机状态实例进行解绑操作。 | 
| String[] | getInstanceIds()Get 一个或多个待操作的实例ID,每次请求批量实例的上限为100。 可以通过以下方式获取可用的实例ID: 通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。 通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。 | 
| String[] | getKeyIds()Get 密钥对ID列表,列表长度上限为100。可以通过以下方式获取可用的密钥ID:
通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。
通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的 `KeyId` 获取密钥对ID。 | 
| void | setForceStop(Boolean ForceStop)Set 是否强制关机,默认值为 false。常规场景下,建议手动关机后解绑密钥。取值范围:
true:先执行强制关机,再解绑密钥。
false:不执行强制关机,仅支持对已关机状态实例进行解绑操作。 | 
| void | setInstanceIds(String[] InstanceIds)Set 一个或多个待操作的实例ID,每次请求批量实例的上限为100。 可以通过以下方式获取可用的实例ID: 通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。 通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。 | 
| void | setKeyIds(String[] KeyIds)Set 密钥对ID列表,列表长度上限为100。可以通过以下方式获取可用的密钥ID:
通过登录[控制台](https://console.cloud.tencent.com/cvm/sshkey)查询密钥ID。
通过调用接口 [DescribeKeyPairs](https://cloud.tencent.com/document/api/213/15699) ,取返回信息中的 `KeyId` 获取密钥对ID。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DisassociateInstancesKeyPairsRequest()
public DisassociateInstancesKeyPairsRequest(DisassociateInstancesKeyPairsRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds - 一个或多个待操作的实例ID,每次请求批量实例的上限为100。public String[] getKeyIds()
public void setKeyIds(String[] KeyIds)
KeyIds - 密钥对ID列表,列表长度上限为100。可以通过以下方式获取可用的密钥ID:
public Boolean getForceStop()
public void setForceStop(Boolean ForceStop)
ForceStop - 是否强制关机,默认值为 false。常规场景下,建议手动关机后解绑密钥。取值范围:
Copyright © 2025. All rights reserved.