Package | Description |
---|---|
com.tencentcloudapi.cvm.v20170312 | |
com.tencentcloudapi.cvm.v20170312.models |
Modifier and Type | Method and Description |
---|---|
CreateKeyPairResponse |
CvmClient.CreateKeyPair(CreateKeyPairRequest req)
本接口 (CreateKeyPair) 用于创建一个 `OpenSSH RSA` 密钥对,可以用于登录 `Linux` 实例。
开发者只需指定密钥对名称,即可由系统自动创建密钥对,并返回所生成的密钥对的 `ID` 及其公钥、私钥的内容。
密钥对名称不能和已经存在的密钥对的名称重复。
私钥的内容可以保存到文件中作为 `SSH` 的一种认证方式。
腾讯云不会保存用户的私钥,请妥善保管。
|
Constructor and Description |
---|
CreateKeyPairRequest(CreateKeyPairRequest 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 © 2022. All rights reserved.