i hope this issue has not been written before.
i want to create a target via gvm-cli.
To do so i created a port list, but now i am facing some xml syntax problems.
gvm-cli socket --socketpath /opt/gvm/var/run/gvmd.sock --xml "<create_target><name>Suspect Host</name><hosts>"a.b.c.d"</hosts><port_list id="2c59d819-2a03-4086-9f78-540fac3727b2"></port_list></create_target>"
I simply added the tag <port_list> with the created id to my command.
Can someone give me a hint or some advice?