Class AssociateInstancesKeyPairsRequest


  • public class AssociateInstancesKeyPairsRequest
    extends AbstractModel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Boolean getForceStop()
      Get 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再绑定密钥。取值范围:
      TRUE:表示在正常关机失败后进行强制关机。
      FALSE:表示在正常关机失败后不进行强制关机。
      默认取值: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形如:`skey-3glfot13`。
      可以通过以下方式获取可用的密钥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 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机,然后再绑定密钥。取值范围:
      TRUE:表示在正常关机失败后进行强制关机。
      FALSE:表示在正常关机失败后不进行强制关机。
      默认取值: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形如:`skey-3glfot13`。
      可以通过以下方式获取可用的密钥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.
    • Constructor Detail

      • AssociateInstancesKeyPairsRequest

        public AssociateInstancesKeyPairsRequest()
      • AssociateInstancesKeyPairsRequest

        public AssociateInstancesKeyPairsRequest​(AssociateInstancesKeyPairsRequest 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.
    • Method Detail

      • getInstanceIds

        public 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。
Returns:
InstanceIds 一个或多个待操作的实例ID,每次请求批量实例的上限为100。
可以通过以下方式获取可用的实例ID:
  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。
  • 通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的`InstanceId`获取实例ID。
  • Parameters:
    InstanceIds - 一个或多个待操作的实例ID,每次请求批量实例的上限为100。
    可以通过以下方式获取可用的实例ID:
  • 通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。
  • 通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的`InstanceId`获取实例ID。