- Http 区块链rpc接口
- 打断式租用链上http接口
- GPU节点管理
- 虚拟机操作
- 磁盘管理
- 快照管理
- 镜像管理
- 虚拟机组网
- 监控服务
- 裸金属节点操作
修改裸金属服务器
正式环境
正式环境
POST
/api/v1/bare_metal/modify/b68d9b9e52a5435686d7270440bc4f8e51e8bd8abb8242628cb2fc531ff0e40f
请求参数
Body 参数application/json
peer_nodes_list
array[string]
必需
additional
object
必需
uuid
string
必需
ip
string
必需
os
string
必需
desc
string
必需
ipmi_hostname
string
必需
ipmi_username
string
必需
ipmi_password
string
必需
ipmi_port
integer
必需
nonce
string
必需
sign
string
必需
wallet
string
必需
示例
{
"peer_nodes_list": [
"ea585de2402d28664b977cf785becc06a12bc286a12b19d51f306f0734e6df70"
],
"additional": {
"uuid": "3156995b-da18-4268-9734-f8d168e90a7d",
"ip": "175.221.204.110",
"os": "Windows 11 Pro 22H2",
"desc": "云网吧 3060 Windows 机器,中国上海测试机房",
"ipmi_hostname": "192.168.0.110",
"ipmi_username": "admin",
"ipmi_password": "dbtu2017",
"ipmi_port": 623
},
"nonce": "3Spg7pK2sn4Yes31tVkTwVoBTz3b4Va74ELngmnUqdvYzvYxmNX3qwp",
"sign": "c0ebe39a65260e8debd2877f58299011950b0fefee068a87651a539e3cee5438030e7958db7f79a2ffebab9dbb1ec6904ebcf42272908576137f506040017584",
"wallet": "5G6Bb5Lo9em2wxm2NcSGiV4APxp5Fr9LtvMSLEspRVSq1yUF"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://8.219.75.114:5002/api/v1/bare_metal/modify/b68d9b9e52a5435686d7270440bc4f8e51e8bd8abb8242628cb2fc531ff0e40f' \
--header 'Content-Type: application/json' \
--data-raw '{
"peer_nodes_list": [
"ea585de2402d28664b977cf785becc06a12bc286a12b19d51f306f0734e6df70"
],
"additional": {
"uuid": "3156995b-da18-4268-9734-f8d168e90a7d",
"ip": "175.221.204.110",
"os": "Windows 11 Pro 22H2",
"desc": "云网吧 3060 Windows 机器,中国上海测试机房",
"ipmi_hostname": "192.168.0.110",
"ipmi_username": "admin",
"ipmi_password": "dbtu2017",
"ipmi_port": 623
},
"nonce":"3Spg7pK2sn4Yes31tVkTwVoBTz3b4Va74ELngmnUqdvYzvYxmNX3qwp",
"sign":"c0ebe39a65260e8debd2877f58299011950b0fefee068a87651a539e3cee5438030e7958db7f79a2ffebab9dbb1ec6904ebcf42272908576137f506040017584",
"wallet":"5G6Bb5Lo9em2wxm2NcSGiV4APxp5Fr9LtvMSLEspRVSq1yUF"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-06-03 10:15:22