Friends,
I want to use a script to retire/delete VMs from Commvault when the last backup is at a certain age. As we are a tenant customer, we don’t have options like Workflows.
So I build a Powershell script to collect data, do different checks and fire Rest calls to Commvault.
I can delete via the following command and this works fine:
Invoke-RestMethod -Method 'Delete' -Headers $headers -Uri $($url + "/v4/virtualmachines/$UUID")
But I can’t find the option to Retire the VM !
And important in this case that I only retire the VM backup, not the client, as FS and SQL backups might be still in use.
Anyone who knows how to Retire a VM using Rest-API ?
Thanks in advance, Maurice