i thought there was already a patch with a  get document from search  but i cannot find it  in any case  i would be fine with generalising this and moving it into helpers  although i would prefer to file a bp with neutron to ask that the sec group id be included in rule delete notifications because that would be infinitely preferable 