{
"action": "reinstall(固定值)",
"callback_param": "回调参数,原本带回主控",
"state": "状态默认为字符串1",
"data": {
"vm_name": "ser151702496209",
"name": "ser151702496209",
"password": "JBVHd0i31",
"template_path": "D:\\qzsystem\\template",
"network": [
{
"ip": "主网卡ip 172.16.0.96",
"attachip": [
{
"ip": "附属ip1 x.x.x.x",
"mask": "附属ip1的掩码x.x.x.x"
}
],
"gateway": "主网卡网关 172.16.0.1",
"netmask": "主网卡掩码 255.255.0.0",
"dns1": "主网卡dns1 114.114.114.114",
"dns2": "主网卡dns2 8.8.8.8",
"mac": "主网卡mac地址 00:50:56:07:56:8D"
},
{
"ip": "内网网卡192.168.0.35",
"gateway": "两块网卡只能存在一个网卡,上面传了网关这里为空",
"netmask": "255.255.255.0",
"mac": "00:0C:29:56:2C:E0"
}
]
}
}curl --location --request POST '/api/qzcloud/CreateHyperVTask' \
--header 'apikey;' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "reinstall(固定值)",
"callback_param": "回调参数,原本带回主控",
"state": "状态默认为字符串1",
"data": {
"vm_name": "ser151702496209",
"name": "ser151702496209",
"password": "JBVHd0i31",
"template_path": "D:\\qzsystem\\template",
"network": [
{
"ip": "主网卡ip 172.16.0.96",
"attachip": [
{
"ip": "附属ip1 x.x.x.x",
"mask": "附属ip1的掩码x.x.x.x"
}
],
"gateway": "主网卡网关 172.16.0.1",
"netmask": "主网卡掩码 255.255.0.0",
"dns1": "主网卡dns1 114.114.114.114",
"dns2": "主网卡dns2 8.8.8.8",
"mac": "主网卡mac地址 00:50:56:07:56:8D"
},
{
"ip": "内网网卡192.168.0.35",
"gateway": "两块网卡只能存在一个网卡,上面传了网关这里为空",
"netmask": "255.255.255.0",
"mac": "00:0C:29:56:2C:E0"
}
]
}
}'{}