I’m trying to add VM in existing VMgroup using REST API.
In the VMgroup there are already many VMs are existing.
Following the rule of sample from “Modify VM Group Details” didn’t work.
‘’’
curl -w -L -k -w "%{http_code}" -o response.txt -X PUT 'https://mycommvault/commandcenter/api/V4/VmGroup/12' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: $Token' \
--data-raw '{
"content": {
"overwrite": false,
"virtualMachines":
{
"name": "vm",
"GUID": "xxxx-xxx-xxx-xxxx",
"type": "VM"
}
],
},
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 319 0 0 100 319 0 6645 --:--:-- --:--:-- --:--:-- 6645
500
‘’’
it worked when “overwrite” is true. but the rest of VMs were deleted from this VMgroup.
Am I missing something?
How can I add VM on top of existing VM and not change anything else?