> On 29 Sep 2016, at 20:03, Zachary McGibbon <zachary.mcgib...@gmail.com> wrote: > > 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
I’d try dependency.child_host_name but generally I’m always interested in the error message returned by statements in the first place :) Kind regards, Michael -- Michael Friedrich, DI (FH) Senior Developer NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg Tel: +49 911 92885-0 | Fax: +49 911 92885-77 CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 http://www.netways.de | michael.friedr...@netways.de ** OSMC 2016 - November - netways.de/osmc ** ** OSDC 2017 - Mai – osdc.de ** _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users