创建密钥

最近更新时间:2018-07-06 18:13:51

CreateKey(创建密钥)

Request Parameters(请求参数)

KeyName

  • 用户定义的密钥名称
  • 类型:String
  • 是否必填:否
  • 缺省值:Ksc_key
  • 格式:2-128个字符,支持中英文数字特殊符号

Response Elements(返回值)

RequestId

  • 请求接口时传递过来的,用户跟踪问题
  • 类型:String

PrivateKey

  • 用户的公钥信息
  • 类型:String

Key

  • 密钥对的信息
  • 类型:Key

返回OpenAPI列表

Examples(举例)

Sample Request(请求)
http://sks.api.ksyun.com/?Version=2015-11-01
&Action=CreateKey
Sample Response(返回)
<DeleteKeyResponse>
    <RequestId>fe78467d-cd0d-4fd2-b335-1d5ad597b217</RequestId>
    <PrivateKey>-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQCatBXiriDc9kUQWBrb6kaIM/G0qSsKum3xFuNT5QVihkaaa5c3
LrnRUOcUqFf1+2EXTdTc8iEz67tQD+0WUHeaXX84kdC/GLSBMkdFxPagBxBjbVH7
TUwBC49LqfVvGYLr6n5HaTyBA+I9OVbxK9ucR+PSs9omhPMsslJTiI2KawIDAQAB
AoGAUz141Sp6VkpQaPXvJctNvjWs5Vds6G3dgC6fjOGa3yN+09H2YGPM6dqNK+lU
wu9Kk552XZgO04AQnoijOjF72ISHBNyhg/ULh7Wkw5YxyvouMX6bWwF2cRpR+5qZ
l6a9xjtO5COub+J8hhEDRGfvTWWNY2o3dAMVhYHdWe4Ou+kCQQDhe9mIesq2RGRx
M4YtL9smIjssgLbQggbxRWV6n3WFhPt1gkToLH3m4dlkwlTSZZM7v85vUpe97R5W
Hw1xRNAfAkEAr6P33vU8dlzEVFKo2w6RC1kCJBs18pFRYYVDNtOS4SUzOz1WPbPa
XW2/H/pJm9p8YkWQa3MtkNGQXVsJbtMMNQJATiGxNgZ+eXvnZgZZhwzfHi6cXIZZ
UpTLvQyz5jKc8WAsFgLGx8Cq+7bksnJYG/OQehKzgIWZCPnCGkt2R/p1NwJAdlz0
XJ89aLJpaD3wJvdxDYmlJLnlqBsAEc0hl6AK+oj8Nm7GYHyEqrObuiwMUOhzLDKe
+Zo72b0wIYmJGNNHBQJAI/lkPWvqe5kabFQ81VF2iSj4ZHF/y8wY9vgSpmi/bI++
DXo8WwrWGL3ILMFZ8cF3vcQocTCnRSyZSlw8LOjjVg==
-----END RSA PRIVATE KEY-----
</PrivateKey>
    <Key>
        <KeyId>9348505e-4320-47d0-86a1-403bccdf7965</KeyId>
        <PublicKey>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCatBXiriDc9kUQWBrb6kaIM/G0qSsKum3xFuNT5QVihkaaa5c3LrnRUOcUqFf1+2EXTdTc8iEz67tQD+0WUHeaXX84kdC/GLSBMkdFxPagBxBjbVH7TUwBC49LqfVvGYLr6n5HaTyBA+I9OVbxK9ucR+PSs9omhPMsslJTiI2Kaw== root
</PublicKey>
    </Key>
</DeleteKeyResponse>

金山云,开启您的云计算之旅

注册有礼