{
"name": "install-qga-test",
"scriptType": "shell",
"runMode": "qemu_agent",
"targetOs":"auto",
"content": "echo hello > /root/qimen-init.txt",
"linuxContent": "",
"windowsContent": "",
"timeoutSeconds": 300,
"remark": "测试脚本"
}curl --location '/vmInitScript/add' \
--header 'Content-Type: application/json' \
--data '{
"name": "install-qga-test",
"scriptType": "shell",
"runMode": "qemu_agent",
"targetOs":"auto",
"content": "echo hello > /root/qimen-init.txt",
"linuxContent": "",
"windowsContent": "",
"timeoutSeconds": 300,
"remark": "测试脚本"
}'{}