[Fleet] Add a find orphaned integration policies API #129677
Labels
Supportability
Improve our (devs, SREs, support eng, users) ability to troubleshoot/self-service product better.
Team:Fleet
Team label for Observability Data Collection Fleet team
Describe the feature:
Similar to #121887. We've had several reports where the root cause is that somehow an integration policy became orphaned. That is, its parent agent policy does not exist.
Proposal
This would return a list of all orphaned policies - but not delete them yet. I think subsequent deletion should be up to the user as there might be information they want to capture from the policies before they are lost. It would then be trivial to plug in the policy IDs into the deletion API:
Edit: the above curl doesn't actually work, due to #129683. The workaround is to delete the saved objects directly:
The text was updated successfully, but these errors were encountered: