Cloud asset cleanup
Cloud assets are cleaned up automatically during cleanup cycle or manually based on the following criteria:
No active protection plan to cloud asset.
Asset is not discovered in last 30 days (cleanup age).
No recovery points exist.
Asset is marked for deletion (asset is deleted on Snapshot Manager).
User can enhance this cloud asset cleanup criteria by updating cleanup-age and providing specific filter criteria for assets through bp.conf file. Following parameters must be configured in 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'"
}
}
}