- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-16-2019 12:22 AM
Hi all, am having trouble to find the right element value to add in a new patch number under hip objects, the goal is to add '5678' as a new patch number under the following:
below is what i tried without any success with an error msg of "malformed request":
https://fw_ip/api/?key=api_key&type=config&action=set&xpath=/config/shared/profiles/hip-objects&element=<entry name=“patch-mgt”><patch-management><criteria><missing-patches><patches><member>5678</member></patches></missing-patches></criteria></patch-management></entry>
the following is the related xml config:
can anyone advise what webt wrong? thanks!
09-17-2019 09:52 PM
Got it resolved, the xpath is incorrect. The correct one should be
/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/profiles/hip-objects/entry[@name='patch-mgt']
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!