Looking for xml api to add a new patch number to hip-objects

Reply
L2 Linker

Looking for xml api to add a new patch number to hip-objects

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:

Screenshot 2019-09-16 at 3.17.51 PM.png

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:

Screenshot 2019-09-16 at 3.21.06 PM.png

 

can anyone advise what webt wrong? thanks!

 

L2 Linker

Re: Looking for xml api to add a new patch number to hip-objects

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']

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 Live Community as a whole!

The Live Community thanks you for your participation!