importkeypair
导入由其他工具产生的 rsa 密钥对的公钥部分。导入密钥对后,我们会为您保管公钥部分,您需要自行妥善保存密钥对的私钥部分。
描述
调用该接口时,您需要注意:
您在每个地域的密钥对数最高为 500 对。
导入的密钥对的必须支持下列任一种加密方式:
rsa
dsa
ssh-rsa
ssh-dss
ecdsa
ssh-rsa-cert-v00@openssh.com
ssh-dss-cert-v00@openssh.com
ssh-rsa-cert-v01@openssh.com
ssh-dss-cert-v01@openssh.com
ecdsa-sha2-nistp256-cert-v01@openssh.com
ecdsa-sha2-nistp384-cert-v01@openssh.com
ecdsa-sha2-nistp521-cert-v01@openssh.com
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?action=importkeypair®ionid=cn-qingdao&publickeybody=xxxxxxxxxxxxxx&keypairname=test&<公共请求参数>
返回示例
xml 格式
<importkeypairresponse> <requestid>473469c7-aa6f-4dc5-b3db-a3dc0de3c83e</requestid> <keypairname>test</keypairname> <keypairfingerprint> 89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:d7</keypairfingerprint></importkeypairresponse>
json 格式
{ "requestid": "473469c7-aa6f-4dc5-b3db-a3dc0de3c83e" "keypairname": "test" "keypairfingerprint": "89:f0:ba:62:ac:b8:aa:e1:61:5e:fd:81:69:86:6d:6b:f0:c0:5a:d7"}
错误码
以下为本接口特有的错误码。更多错误码,请访问 api 错误中心。
以上就是导入由其他工具产生的 rsa 密钥对的公钥部分的详细内容。
