跳到主要内容

掛載金鑰對

描述​

繫結一個金鑰對,將金鑰繫結到雲主機中,此時雲主機不能以密碼形式登入,繫結金鑰只能在Linux系統中,並且必須是開機狀態下。

請求引數​

引數名引數型別是否必填引數說明
ActionString是操作方法:AttachKeyPair
RegionString是機房標識,取值參見地域列表
KeyPairIdString是金鑰標識
InstanceIdString是雲主機標識

返回引數​

名稱型別說明
ActionString執行的操作
TaskIdString請求標識

請求示例​

https://api.yunpanel.com/v2/?Action=AttachKeyPair
&Region=cn-wuxi1
&AccessKeyId=6792aa42d288422ab8dd4654dfe727c4
&InstanceId=i-8n8hh7mb429o
&KeyPairId=sk-mf8hh7tael45k
&公共引數

返回示例​

{
"code": 10000,
"message": "",
"data": {
"TaskId": "iie8h20170829102905951",
"Action": "AttachKeyPair",
"TotalCount": 0
}
}