- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-13-2025 08:55 AM
Hello Guys,
Sorry if the location is incorrect. I was looking for a location regarding API.
I'm trying to set up an user with his IP through API. This is for a lab.
I did follow this page:
Despite this and creating the file etc I got the following error:
<uid-message>
<payload>
<login>
<entry name="acme\jparker" ip="10.2.1.23">
</login>
</payload>
<type>update</type>
<version>1.0</version>
</uid-message>
gns3@box:~/Desktop$ curl -kF key=key== --form file=@/home/gns3/Desktop/user "https://192.168.0.250/api/?type=user-id"
<response status="error"><msg><line><uid-response>
<version>2.0</version>
<payload>
<general>
<entry message="Error: tag (/login) is invalid. There may be missing end tag
Error: end tag </login> not found
Error: end tag </payload> not found
Error: end tag </uid-message> not found
"/>
</general>
</payload>
</uid-response>
</line></msg></response>gns3@box:~/Desktop$
gns3@box:~/Desktop$
I don't see what is the error unless the whole api key is not available?
Do I have to create an domain some ldap thing or not ? Because it's a lab I just wanted to see if I could give him some user/ ip and see if it's sync between cluster members.
Thanks for reading me.
05-13-2025 10:02 AM
Hi @Florian_Houis ,
The error says "There may be missing end tag". It looks like your </entry> is missing. In XML, for every opening tag you need a closing tag.
Thanks,
Tom
05-13-2025 10:02 AM
Hi @Florian_Houis ,
The error says "There may be missing end tag". It looks like your </entry> is missing. In XML, for every opening tag you need a closing tag.
Thanks,
Tom
05-14-2025 01:43 AM
Hi @TomYoung ,
You're right I don't understand why in the example they don't show the closing of <entry>
But I got a success this time so it's good for me.
Thank you very much!
Florian
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!