I have tried with and without quotes, character escaping. No luck. I turned on debug logging for gvmd, but it looks like the XML is parsed/handled by gvm-client. I also tried turning on --log debug with gvm-client. It seems to just echo the xml that is sent in without any additional detail.
Any tips on how to properly format the xml string for SNMPv3?
There is a typo in your command: </auth_algorighm> should be </auth_algorithm>.
You should make sure to use different quotation marks for encapsulating the whole XML string as opposed to individual elements in it. E.g. --xml '<delete_credential credential_id="29543764-abfd-4dc1-9263-9f4676c4ca9b"/>' works.
Thanks for the help with that one. From testing, it appears that I can remove all the inner quotations. This works until a special character (>, <, &, ") is used within one of the values (like a password).
It looks like sending the escaped password string (via xml) doesn’t work? Opening up the webui and entering a password with a < symbol in it works fine though. Any ideas regarding how I can get around this? Not opposed to using python for interacting with GVM if needed, but prefer plain bash/zsh.
Possibly worth noting that if I attempt the same thing in the comment field, it works as expected (showing up properly in the UI and escaped when you request credentials via XML):