创建虚拟机(ubuntu)
POST
/api/v1/tasks/start请求参数
Body 参数application/json
peer_nodes_list
array[string]
必需
additional
object
必需
image_name
string
必需
operation_system
string
必需
bios_mode
string
必需
ssh_port
string
必需
vnc_port
string
必需
cpu_cores
string
必需
mem_size
string
必需
gpu_count
string
必需
disk_size
string
必需
session_id
string
必需
session_id_sign
string
必需
示例
{
"peer_nodes_list": [
"{{peer_node_id}}"
],
"additional": {
"image_name": "ubuntu.qcow2",
"operation_system": "linux",
"bios_mode": "legacy",
"ssh_port": "5682",
"vnc_port": "5901",
"cpu_cores": "8",
"mem_size": "16",
"gpu_count": "2",
"disk_size": "30"
},
"session_id": "{{session_id}}",
"session_id_sign": "{{session_id_sign}}",
"rent_order": "{{rent_order}}"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{}
最后修改时间: 2 年前