所属服务

keypair

Action

CreateKeyPair

Version

2018-02-08

Method

GET

描述

创建秘钥对

请求参数

参数名称说明参数类型是否必填
KeyName秘钥对名称string
ActionCreateKeyPairstring
Version2018-02-08string

返回参数

返回参数被覆盖

错误码

错误码(Code)错误提示(Message)http status code说明
Success处理成功200null
NoQuota超出配额400null
InvalidParameters参数非法400null
DuplicatedSecretKey秘钥已存在400null
InternalServerError服务内部错误500null

请求示例

https://open.cn-east-1.163yun.com/keypair?Action=CreateKeyPair&Version=2018-02-08&KeyName=KeyPairTest9

返回示例

{
    "KeyName":"KeyPairTest9",
    "Fingerprint":"04:5c:1b:1d:67:ec:05:9d:8d:f7:8a:a7:45:17:92:fd",
    "PrivateKey":"-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAjISRtL+Vsp0tpqAf0PnFCbJEkwD92WsA4b1Dy9Bw8BivRHAS
bTk8eFtBxEqGuH0/w/DK2YiIDStcmcgcVkdDUglqo972XwdTS6D1oHSGVm8TbMg5
5X4CgwUPjuRyUY3oWupLViy2Z8C3A689lBF/AvaoVG1AHKFELotZssE6hBoNSObs
g4hFxkvgg1/Uf9/Ctcg49zYYa9HGCC9kZBr19CL+IGhM8A4YkmAbsaO2IOQIoVV6
vIvsi7hVp6LOwtedZXdU4CmlqLU6QyuawIjz30zCCmvxVE/l51JoNuiXuPp8JQRq
0xTv94Vks5aYwovEGN1bibK/NYm4M6nKT4d1IwIDAQABAoIBAAz6bY65JzVhCQdb
wLSHbShxG55MOCXtmR5AYdOgQ94ZGY8DnuARqkEfhJqBm6HMh6gsREAFOTOmLp5R
ejSJznD0R7Is9KpgPdQ9YJJaUNII3k1szNQiaE77l61F8j0QE0baXuztokdA6GZh
uBlF6Go4p+FsWcCLMIXv/u/gouvybP+ezwkXCnAnSxdiwLHKeSHrjBG1wSdN5/Sq
sB6EnTT2CzML38jyNsV9Y1kWduqODRGdzLK0EvMXS+zKzmyEa6UI/ePe4XBpldVM
Xb8VyOpan+e+1hDiRCQ8q1fFdH+DNkL9LmbGQWQ6GWHSZK5bXnCuegcKMvCSpWMV
hGQloNECgYEAwIqQXI/eGz7a7HFUham4UtFMk6kn+zJNBlUajcPR0tt5NT54kv6P
/FmVkjix6C0ks+pXsmfncL/7PPrBXGyQLAe5OkXeegjz4EgrqimyJX3nmvxqxXjT
TTTEI70vH3GfCZ64H+g6ncXNEuvBzYHjkI4H25oBhSp4cnwOmpu01msCgYEAutSX
qnlOv5qcgUIjU7g0FgDKZVjOFpUJyra70gy8hjT9Lgs2G/GpbifzpxmKDzWkMdZL
NTbLEc1rgypgJcXa084hdBnGUJNnmF4gVZu4/VHknOjsqspttU8Bfdk7FjPUf+xK
SdHUb3DM7sadPetvMufh3JQeQleirXk6W31u2ikCgYAgcLg2AD9p08NLByU4iAn4
Wi9OybdkyWrU4E3jCNU3c6cOY4IpMh7MY8OhqU/AUKrYbWltM7h49L+93Hnrupbn
9D0vJkp/wTZl2YMR3oiXbIkzQcgzkVH4tiU96EgiQiCLnGRla9lEb+lHgNVcbMAM
wQFt7JrI9wjoMSK8xfNIFQKBgGWAXEmkkBDumbpryS+RstKFaXA4F/cSz9gPYOkU
PFQZc7dRJft2hlsvX2NYL7ZlqSfeSYvGkfrBBHkFS6kZ3fIWWfxuiFx8SNrxwFVi
PdV6aV6J+RIs2f+XxbKukzhTvk4lfJKwad6FhQDwbLsYLpiUfBPPcMUQQXRHmVnd
Qp1JAoGAExEEvFIWYRAleD0D8CASX3beaqVTJ2BCClqyv17NRE5oMAjdZvi+cTZS
C2HG0EEAgkfffTjqZTnyNzMTf5QCPEN9r53KG5+6djwsV3tY5GmeqftxIe4WYR5G
SohyKCU5EAMTXOGqJSAzKTcuhh3XPooHFJsvPfasWqMCDbIQFLk=
-----END RSA PRIVATE KEY-----
",
    "Message":"处理成功",
    "RequestId":"e778fe47-7de6-4145-aa9b-79f4ecc3b093",
    "PublicKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCMhJG0v5WynS2moB/Q+cUJskSTAP3ZawDhvUPL0HDwGK9EcBJtOTx4W0HESoa4fT/D8MrZiIgNK1yZyBxWR0NSCWqj3vZfB1NLoPWgdIZWbxNsyDnlfgKDBQ+O5HJRjeha6ktWLLZnwLcDrz2UEX8C9qhUbUAcoUQui1mywTqEGg1I5uyDiEXGS+CDX9R/38K1yDj3Nhhr0cYIL2RkGvX0Iv4gaEzwDhiSYBuxo7Yg5AihVXq8i+yLuFWnos7C151ld1TgKaWotTpDK5rAiPPfTMIKa/FUT+XnUmg26Je4+nwlBGrTFO/3hWSzlpjCi8QY3VuJsr81ibgzqcpPh3Uj web_develop02@163.com on @ cloudcomb
",
    "CreateTime":"2018-08-21T02:01:46Z",
    "Id":3634,
    "Code":"Success"
}