Unable to remove SCV policy due to failure to remove related backups
Applies to
SnapCenter Plug-in for VMware vSphere (SCV) 4.x
Issue
Trying to delete a policy via REST API fails due to linked backups.
When trying to delete the, usually old backups listed for that policy in nsm_Backup using the following REST API command:
curl -X DELETE "https://<SCV_IP_OR_FQDN>:8144/api/4.1/backups" -H "accept: application/json" -H "Token: <LOGIN_TOKEN>" -H "Content-Type: application/json" -d "{ \"listOfBackupIds\": [ { \"backupId\": \"<BACKUP_ID>\" } ]}
(visible via the REST API GUI), the following error occurs:
400 Error: Bad Request
Response body
{
"statusMessage": "BAD_REQUETS",
"statusCode": 400,
"responseMessage": [
"Unable to verify backupId <BACKUP_ID>. Please check and specify a valid BackupId."
]
}