Is there any way to delete a host dependency with a wildcard? In my example, I create a dependency for an access point to the switch, but if I remove the access point I might not know which switch it was connected to so I would want to clear all upstream dependencies.
Example: Create dependency: curl -k -s -u 'root:pass' \ -H 'Accept: application/json' \ -X PUT ' https://localhost:5665/v1/objects/dependencies/burnside-2-ap225!burnside-sw66' \ -d '{ "attrs": { "parent_host_name": "burnside-sw66", "child_host_name": "burnside-2-ap225" } }' \ | python -m json.tool Delete dependency: (DOES NOT WORK??) # delete object curl -k -s -u 'root:pass' \ -H 'Accept: application/json' \ -X DELETE 'https://localhost:5665/v1/objects/dependencies' \ -d '{ "filter": "match(\"burnside-2-ap225\",child_host_name)"}' \ | python -m json.tool - Zac
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users