添加裸金属服务器
POST
/api/v1/bare_metal/add请求参数
Body 参数application/json
peer_nodes_list
array[string]
必需
additional
object
必需
bare_metal_nodes
array [object {7}]
必需
nonce
string
必需
sign
string
必需
wallet
string
必需
示例
{
"peer_nodes_list": [
"ea585de2402d28664b977cf785becc06a12bc286a12b19d51f306f0734e6df70"
],
"additional": {
"bare_metal_nodes": [
{
"uuid": "3156995b-da18-4268-9734-f8d168e90a7d",
"ip": "175.221.204.110",
"os": "Ubuntu 20.04.3 LTS (Focal Fossa) 5.4.0-121-generic GNU/Linux",
"desc": "在xxx平台租用的裸金属服务器,用于xxx业务,机房id是9f01ca9c-38bd-46a9-9637-dac92b352a63",
"ipmi_hostname": "192.168.0.110",
"ipmi_username": "admin",
"ipmi_password": "dbtu2017",
"ipmi_port":
}
]
},
"nonce":"3Spg7pK2sn4Yes31tVkTwVoBTz3b4Va74ELngmnUqdvYzvYxmNX3qwp",
"sign":"c0ebe39a65260e8debd2877f58299011950b0fefee068a87651a539e3cee5438030e7958db7f79a2ffebab9dbb1ec6904ebcf42272908576137f506040017584",
"wallet":"5G6Bb5Lo9em2wxm2NcSGiV4APxp5Fr9LtvMSLEspRVSq1yUF"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 7 个月前