Cloud asset cleanup
Cloud assets are cleaned up automatically during the cleanup cycle or manually based on the following criteria:
No active protection plan exists for the cloud asset.
Asset is not discovered in the last 30 days (cleanup age).
No recovery points exist.
Asset is marked for deletion (asset is deleted on Snapshot Manager).
You can enhance this cloud asset cleanup criteria by updating the cleanup age and providing specific filter criteria for assets in the bp.conf file. Following parameters must be configured in the bp.conffile:
CLOUD.CLEANUP_AGE_MINUTES
CLOUD.CLEANUP_FILTER
For example,
/usr/openv/netbackup/bin/nbsetconfig
nbsetconfig> CLOUD.CLEANUP_AGE_MINUTES = 180
nbsetconfig> CLOUD.CLEANUP_FILTER = provider eq 'aws'
nbsetconfig>
User can also manually run the POST query using the cleanup-assets named query with the following request body and then run GET with query ID obtained from the POST response, as described in the following example:
{
"data":{
"type":"query",
"attributes":{
"queryName":"cleanup-assets",
"workloads":["cloud"],
"parameters": {
"cleanup_age_minutes": 180
},
"filter": "provider eq 'aws'"
}
}
}