最近更新时间:2021-11-18
请求方法:GET
接口描述:使用CreateKeyPair新建密钥对。
Param
名称 | 类型 | 是否必选 | 描述 |
Action | String | 是 | 要执行的操作。取值CreateKeyPair |
RegionId | String | 是 | 区域Id |
Name | String | 是 | 密钥对名称 |
名称 | 类型 | 描述 |
RequestId | String | 请求ID |
instanceId | String | 密钥对ID |
name | String | 名称 |
fingerPrint | String | 指纹 |
regionId | String | 地区ID |
status | String | 状态 |
publicKey | String | 公钥 |
createTime | Long | 创建时间 |
privateKey | String | 私钥 |
GET https://api.unicloud.com/compute/ecs/instances? Action=CreateKeyPair &RegionId=cn-beijing &Name=TestKey &公共请求参数 |
JSON格式
{ "RequestId": "b9de1a62-d09e-4d34-9a61-38f0f56564b6", "instanceId": "kp-hx0rx82c002ob", "name": "TestKey", "fingerPrint": "7f:ed:e4:4a:81:de:a7:6a:21:ff:9a:71:25:12:4e:f5", "userId": "7d0608e1-fdaa-4cdf-96fa-6bd1d0b73710", "regionId": "cn-beijing", "status": "RUNNING", "publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1X5ga3/EvDLGUw7QG5L1FWz1pJKHPsmi8u9wSgNJelJOQjzReEq0Hoi7tV+9HOA3N0g9rx357vA3AV2ms5XIi3+5m/09fc/haG31mtGKDYpVFIrmLvJit/vYG5kFIAGWAo2E7tmX/kO/Ku4+V5mh1LdiUhw8ErO0pPbc+B3FWa/1Y1Or+40cjxG9jM+jp5ZPjs6qxF6oZ5PtBMVy6pXCBbtbt1UlPTRWDtOs/Bkyv2uWhyw9r4JqTjGqLXliHoOyNZdV3CSup16zA7moISdnQwUqMex3spqkUbttFqHjETKJbe9t9hHnAADpTIItkNRfvFxYD5XHhRsYywqw/84cr Generated-by-Moove\n", "createTime": 1594885649734, "privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEogIBAAKCAQEAtV+YGt/xLwyxlMO0BuS9RVs9aSShz7JovLvcEoDSXpSTkI80\nXhKtB6Iu7VfvRzgNzdIP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