- Http 区块链rpc接口
- 打断式租用链上http接口
- GPU节点管理
- 虚拟机操作
- 磁盘管理
- 快照管理
- 镜像管理
- 虚拟机组网
- 监控服务
- 裸金属节点操作
创建虚拟机(windows+组播)
正式环境
正式环境
POST
/api/v1/tasks/start
请求参数
Body 参数application/json
peer_nodes_list
array[string]
必需
additional
object
必需
image_name
string
必需
operation_system
string
必需
bios_mode
string
必需
rdp_port
string
必需
vnc_port
string
必需
cpu_cores
string
必需
mem_size
string
必需
gpu_count
string
必需
disk_size
string
必需
multicast
array[string]
必需
session_id
string
必需
session_id_sign
string
必需
示例
{
"peer_nodes_list": [
"{{peer_node_id}}"
],
"additional": {
"image_name": "windows_1909.qcow2",
"operation_system": "windows",
"bios_mode": "uefi",
"rdp_port": "5682",
"vnc_port": "5901",
"cpu_cores": "8",
"mem_size": "16",
"gpu_count": "2",
"disk_size": "30",
"multicast": [
"230.0.0.1:5558"
]
},
"session_id": "{{session_id}}",
"session_id_sign": "{{session_id_sign}}",
"rent_order": "{{rent_order}}"
}
示例代码
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/tasks/start' \
--header 'Content-Type: application/json' \
--data-raw '{
"peer_nodes_list": [
"{{peer_node_id}}"
],
"additional": {
"image_name": "windows_1909.qcow2",
"operation_system": "windows",
"bios_mode": "uefi",
"rdp_port": "5682",
"vnc_port": "5901",
"cpu_cores": "8",
"mem_size": "16",
"gpu_count": "2",
"disk_size": "30",
"multicast": ["230.0.0.1:5558"]
},
"session_id":"{{session_id}}",
"session_id_sign":"{{session_id_sign}}",
"rent_order":"{{rent_order}}"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-09-05 02:50:56